A minimal Backend-as-a-Service you own. Auth, database, REST API — all managed from your terminal. Self-hosted on any VPS.
# Set up Based on your VPS
$ based init <your-vps-ip> --domain based.yourdomain.com
Based is running!
# Create a project
$ based new my-app
Project created!
URL: https://my-app.based.yourdomain.com
# Log in (auto-creates account)
$ based login my-app -e you@email.com
# Create tables — CRUD is instant
$ based table create posts \
title:text:required \
content:text \
status:text:default=draft
Table 'posts' created (6 columns).
CRUD endpoints available at /api/postsWhat you get
Use it in React
import { createClient, BasedProvider }
from "@weirdscience/based-client";
const based = createClient({
url: process.env.NEXT_PUBLIC_BASED_URL!,
anonKey: process.env.NEXT_PUBLIC_BASED_ANON_KEY!,
});
export default function App({ children }) {
return (
<BasedProvider client={based}>
{children}
</BasedProvider>
);
}What's inside
Based sets up in under a minute. One VPS, one command, all your projects.
Read the docs