Quickstart
From nothing to a working database API in a few minutes: create a project, add a table, then read and write it from your app.
1. Create a project
Sign up, then choose New project in the dashboard. Every project gets its own database, auth realm, storage and API keys.
The form asks for:
- Organization — where the project lives; its plan is shown next to the name.
- GitHub (optional) — connect the organization's GitHub account to link a repository later.
- Project name — 2–64 characters.
- Compute size — Shared runs your database on a shared PostgreSQL server; dedicated sizes reserve CPU and memory for the project where your plan and the region allow it.
- Database password — type one or press Generate; left empty, one is generated for you.
- Region — EU (Germany); your data stays in the EU.
- Data access — whether the Data API is on, whether new tables are granted to the API keys automatically, and whether new tables start with row-level security on. You can change these later under Settings.
- Advanced configuration — an optional description and the database type you picked.
2. Add a table
Open Database in your project and create a table (for example posts with id, title and statuscolumns), or run SQL in the SQL editor.
3. Get your keys
The Connection page shows the project ID, the anon key (safe in a browser) and the connection strings. From a terminal, basefyio login and basefyio link --project-id <uuid> write them to a .env for you — see the CLI page.
4. Query it
npm install basefyio-jsimport { createClient } from 'basefyio-js'
const bf = createClient({
apiUrl: 'https://api.basefyio.com',
projectId: 'your-project-id',
apiKey: 'your-anon-key',
})
await bf.from('posts').insert({ title: 'Hello', status: 'published' })
const { data, error } = await bf.from('posts').select().eq('status', 'published')The same table is available over plain HTTP:
curl "https://api.basefyio.com/api/rest/v1/posts?select=*" \
-H "apikey: <anon-key>"Row Level Security applies to the anon key: turn it on and add policies before you expose a table to the browser (see Security & RLS).
Next steps
- Authentication — sign up and sign in your own users.
- Storage — buckets and file uploads.
- Realtime — subscribe to inserts, updates and deletes.
- Backups & point-in-time recovery — know how to undo a mistake.