Projects
Projects is the included, persisted application domain you can build on after signing in. Your dashboard can create and open a Project without first writing a migration, API route, or permission check.
Every Project belongs to one Organization. Your private Personal Organization is created automatically; Projects you make there are personal because that Organization owns them. Shared Organizations hold their own Projects. Switching Organizations changes which Projects the dashboard lists, but the server checks your current membership on every Project request.
Create and manage a Project
Start with the app running locally and
sign in with a non-anonymous account. On a clean installation,
bunx supabase start applies the normal migrations, including Organizations
and Projects. If an older custom public.projects table already exists, the
migration stops rather than adopting or deleting it; resolve that collision
before continuing.
- In the dashboard, select Personal or a shared Organization, then open Projects from the sidebar.
- Choose New project, enter a Project name, and select
Create Project. The new Project opens at
/dashboard/projects/[projectId]. - Change Project name and select Save name, or select Archive Project. Open the Archived filter and select Restore Project to make it active again. An archived Project cannot be renamed until it is restored.
The Project ID, not its display name, identifies the row. Two Projects can have the same name. Archive is reversible; there is no hard-delete action.
Who can access a Project?
| Organization role | Project access |
|---|---|
| Owner | View, create, rename, archive, restore |
| Admin | View, create, rename, archive, restore |
| Member | View only |
| Nonmember | No access |
The owner sets admin or member on the Organization members screen. Those
roles apply to every Project in that Organization; there is no viewer role
or per-Project grant. A Personal Organization cannot invite another member.
For shared access, use the Organization invitation and role
flow—not a Project invite.
The browser calls the same-origin /api/projects routes. The service verifies
the Supabase Auth user and reloads the Organization role; the repository scopes
the write to both organization_id and the Project ID. A selected Organization
in the browser is presentation state, not permission. The public demo supplies
fixed sample Projects to the same dashboard components and does not save them.
Keep, hide, or remove the included domain
You do not need a shared workspace to use the included ownership model. Keep the automatically created Personal Organization and do not create another Organization; Projects in that Organization remain private to its owner.
If your product does not expose Projects yet, remove its sidebar entry and routes while leaving the schema in place. This is the smallest opt-out: auth and the private ownership boundary keep working, and you do not carry a partial database customization.
There is no runtime feature flag that fully uninstalls both domains. Removing them is a source customization because the migration, signup trigger, dashboard and demo compositions, API, services, repositories, models, and tests share the contract. If you want that smaller product shape, remove those consumers together in a new source fork before applying , then use TypeScript, a clean local database reset, and the Auth checks to find and prove the complete dependency cut.
Do not delete an already-applied migration from an existing installation. It does not remove deployed tables or data. Export anything you need, then create a new forward migration for the exact destructive cleanup your product requires.
Extend the included domain
The shipped Project is deliberately small: ID, Organization owner, name, timestamps, and archive time. Start at the boundary that matches your change:
| You want to change | Start in the purchased repository |
|---|---|
| Stored Project fields | and |
| Reads and writes | |
| Authorization or lifecycle behavior | and |
| Request validation and responses | |
| Dashboard interaction | and |
For example, to add a product-specific Project field, create a new SQL
migration, update the Drizzle model, then carry the value through the repository,
service, route validator, and dashboard reader. Do not recreate
public.projects or trust an organizationId or role supplied by the browser
as authority. Change Database Schema and
Query Application Data explain those edit
boundaries; Add Business Logic and
Create API Endpoint cover the server
path.
Verify the local path
With local Supabase and the app running, run this from the purchased repository root:
./coremvp e2e projectsExpect the named Projects Playwright suite to pass. It uses local users and
Postgres to check the browser/API lifecycle, cross-account denial, direct Data
API denial, sample-only demo, and custom-table migration collision. Run
./coremvp e2e organizations when you change shared membership or role
behavior. These are local checks; they do not prove a hosted migration,
production deployment, real usage metering, or Project-specific permissions.
What's next
Change Database Schema
Add Business Logic
Members and Permissions
Was this page helpful?