Quickstart: Sypnia Cloud
Create an account and a project, make a table with row-level security, sign up a first user and read their rows from your app.
In ten minutes you have a project with a table, a signed-up user and your app reading that user’s rows.
Create your account
On data.sypnia.com choose Start free, write your name and your e-mail. An e-mail arrives: «Confirm your e-mail and create your password». Open it, choose a password, and you are in.
Create a project
The console asks for an organization name and your first project. Pick Managed database (we create it for you) or My own Postgres (paste a connection string: Any Postgres). When it is ready you see its address and two keys:
- the publishable key
syp_pk_…, for your app; - a secret key
syp_sk_…, for servers only. Keep it out of your code.
- the publishable key
Create a table with row-level security
Open SQL in the console and run:
SQL create table public.notes ( id uuid primary key default gen_random_uuid(), owner uuid not null default auth.uid() references sypnia_auth.users(id) on delete cascade, body text not null, created_at timestamptz not null default now() ); alter table public.notes enable row level security; create policy "own notes" on public.notes for all to authenticated using (owner = auth.uid()) with check (owner = auth.uid());Sign up, then write and read
Sign-up by e-mail sends a confirmation, and Sypnia doesn’t send e-mail for your project: first set your own provider in Auth → E-mail sender (SMTP, Resend, Postmark or SES), or turn on Google or GitHub. Until then
signUpanswersemail_provider_required.TypeScript await sypnia.auth.signUp({ email: 'ana@example.com', password: 'a-long-password' }); // after Ana confirms her e-mail and signs in: await sypnia.auth.signInWithPassword({ email: 'ana@example.com', password: 'a-long-password' }); await sypnia.from('notes').insert({ body: 'Buy flour' }); const { data } = await sypnia.from('notes').select('id, body').order('created_at', { ascending: false });You should seedataholds Ana’s notes only. Another user signed in on another device gets their own, from the same table.
Next: pick how to write the rest of your app (Use any ORM), or let your agent manage the project through the device flow.