# Protobase > Config-driven admin panel framework for existing Postgres databases. Every page below is Markdown at its address plus `.md`. The protobase agent skill is the everyday workflow, the checks before calling a change done, and these pages as files it points to; in a project, `npx protobase skill install` writes the skill of the installed version. ## Agent skill - [protobase skill](https://docs.protobase.net/skills/protobase/SKILL.md): Build, check and ship a Protobase admin app on Postgres. ## Getting started - [Getting started](https://docs.protobase.net/getting-started.md): Start an app with npm create protobase, on a new database or one you have, install the repository, run the ERP, real estate and property portal examples and learn the development commands. ## Features - [Features](https://docs.protobase.net/features.md): Every feature of Protobase, grouped by area, with whether it is stable. - [Start a project](https://docs.protobase.net/features/start-a-project.md): Start a new app, or an admin over an existing Postgres database, and keep the config in step with it. - [Data model](https://docs.protobase.net/features/data-model.md): Describe the tables of an existing Postgres database as resources, with their fields, keys and rules. - [Tables users add](https://docs.protobase.net/features/user-tables.md): Tables an app's users add from the admin UI, by hand or from a file, and how a developer takes them over as code. - [Access](https://docs.protobase.net/features/access.md): Decide who may read and change which records and fields. - [Lists](https://docs.protobase.net/features/lists.md): The list page of each resource, with its columns, filters, charts, search, exports and imports. - [List displays](https://docs.protobase.net/features/list-displays.md): Show a list as cards, a map, a board, a calendar or a timeline, and reorder records by hand. - [Record pages](https://docs.protobase.net/features/record-pages.md): The page of one record, with its sections, related records, galleries, charts and editing. - [Actions](https://docs.protobase.net/features/actions.md): Buttons that change records, ask for input or run your own code, per role. - [Composed pages](https://docs.protobase.net/features/composed-pages.md): Pages of your own, built from blocks in a JSX layout. - [Your own code](https://docs.protobase.net/features/your-own-code.md): React components, field types, pages and handlers of your own, loaded as plugins. - [Look and language](https://docs.protobase.net/features/look-and-language.md): The app's colours, name, icon, language and installation. - [Navigation](https://docs.protobase.net/features/navigation.md): The sidebar, the user menu, the bottom bar on phones and the global search. - [REST API](https://docs.protobase.net/features/rest-api.md): The API every resource gets, with filters, writes, errors and the typed client. - [API functions](https://docs.protobase.net/features/api-functions.md): Endpoints of your own beside the REST API. - [Sign-in and accounts](https://docs.protobase.net/features/sign-in-and-accounts.md): Sign-in methods, users, roles, organizations and tokens. - [Files and images](https://docs.protobase.net/features/files-and-images.md): Uploaded files and images, where they are kept and how they are served. - [History, comments and live updates](https://docs.protobase.net/features/history-comments-and-live-updates.md): The changes of each record, comments on it, and pages that refresh as records change. - [Events, webhooks and jobs](https://docs.protobase.net/features/events-webhooks-and-jobs.md): React to changes, deliver them to other systems, and run work in the background. - [Workflows](https://docs.protobase.net/features/workflows.md): Graphs of steps the server runs along their edges, written in a language a model writes well, with every step kept in a trace. - [Notifications](https://docs.protobase.net/features/notifications.md): A bell in the top bar and push to browsers and phones, for what your app tells its users. - [Calls](https://docs.protobase.net/features/calls.md): Audio and video calls between an app's users, through LiveKit or peer to peer, with Protobase deciding who is in a call and who hears whom. - [Email and public forms](https://docs.protobase.net/features/email-and-public-forms.md): Mail the app sends, the PDF documents it makes, and forms for people without an account. - [AI](https://docs.protobase.net/features/ai.md): Fields and actions filled by a model, the assistant beside the admin, and MCP. - [Compatibility and moving from other systems](https://docs.protobase.net/features/compatibility.md): Apps written for other systems that keep working on Protobase, and moving their data and code over. - [Several apps](https://docs.protobase.net/features/several-apps.md): Show another Protobase app's records and accept its users. - [Build and run](https://docs.protobase.net/features/build-and-run.md): Develop, build and run an app, on servers, in containers and on phones. - [Releases](https://docs.protobase.net/features/releases.md): How Protobase is released and versioned, and what a release keeps working. ## Guides - [Admin over an existing database](https://docs.protobase.net/guides/existing-database.md): Put an admin on a Postgres database you already have, in six steps, from install to signing in, with every file sign-in needs. - [From a table to an admin](https://docs.protobase.net/guides/table-to-admin.md): Pip's bike shop goes from a repairs table to an admin the front desk and the workshop both like, in five steps. - [Your first composed page](https://docs.protobase.net/guides/first-composed-page.md): Build the sales team's start page in four steps, from four numbers to a row of leads you can add to. - [A billing page](https://docs.protobase.net/guides/billing-page.md): Give your customers one page for their plan, billing details, cards and invoices, with forms, actions and a component of your own. - [Your own API functions](https://docs.protobase.net/guides/api-functions.md): Endpoints of your own beside the generated REST API, one file each in functions/, acting as the signed-in caller or open to a webhook. - [Your first plugin](https://docs.protobase.net/guides/first-plugin.md): Build a plugin, serve it, load it into an app and change it without rebuilding the app. - [Theming an app](https://docs.protobase.net/guides/theme-an-app.md): Give an app its own colors, corners and font with protobase.theme.css, in light and dark, and keep them through every release. - [Adding a field type](https://docs.protobase.net/guides/field-type.md): Show and edit a field your own way everywhere the app shows it, with a field type a plugin registers and a view picks. - [A custom record card](https://docs.protobase.net/guides/record-card.md): Draw each card of a cards display with a component of your own, and keep the built-in card as its fallback. - [Moving onto the plugin build](https://docs.protobase.net/guides/plugin-build.md): What changes for a project whose protobase.ui.tsx was built into the admin app, now that protobase build makes it a plugin beside a prebuilt app. - [Showing another app's records](https://docs.protobase.net/guides/remote-resources.md): Two Protobase apps, where the shop's admin app shows the service desk's tickets with its own pages, sidebar and links. - [Exporting a list](https://docs.protobase.net/guides/export-a-list.md): Let users save a list as an Excel or CSV file, limit how many rows a file holds, or take Export off a list. - [Importing records from a spreadsheet](https://docs.protobase.net/guides/import-records.md): Bring a spreadsheet of companies into the admin app with the list's Import, update them from another, make a new table from a file, and turn Import off where it does not belong. - [Charts over millions of events](https://docs.protobase.net/guides/event-charts.md): Give a large events table an hourly rollup and chart months of it on a dashboard in milliseconds. - [Send notifications](https://docs.protobase.net/guides/push-notifications.md): Turn notifications on, send one when a record changes, and see it in the bell and as push on the user's browser. - [Send mail from Gmail](https://docs.protobase.net/guides/send-from-gmail.md): Set up a Google OAuth client so people link their Gmail on the account page, and send mail with attachments from it in an API function. - [A create page of your own](https://docs.protobase.net/guides/create-page.md): Replace a resource's create form with a page of the app's own, built from the app's form parts, that creates records through an API function. - [Add a personal setting](https://docs.protobase.net/guides/personal-setting.md): A choice each person makes for themselves, such as which emails they get, in a tab of the account page, from a table, a resource and roles, with no UI code. - [A mobile app](https://docs.protobase.net/guides/mobile-app.md): Run a Protobase app on iOS and Android and build signed store releases from a mobile section in its config, without setting up Capacitor yourself. - [Deploy](https://docs.protobase.net/guides/deploy.md): Ship a project as one bundle folder and run it with the serve runtime, on a host of your own or on Protobase Cloud from a push to GitHub. ## Reference - [Configuring Protobase](https://docs.protobase.net/reference/config.md): The project's config file, protobase.config.ts or protobase.config.json, as one object of data; defineConfig and its function form, $env values, where the project's code is found and how extensions merge. - [App options](https://docs.protobase.net/reference/config/app.md): The config keys of the app itself, its name, public URL, secret, language, time zone, install colours, mobile build and whether it has resources, with their types, defaults and environment variables. - [Sign-in options](https://docs.protobase.net/reference/config/sign-in.md): The config keys of sign-in, auth and authenticate, each with its type, default and environment variable, and the files where sign-in's hooks, mailer, mail templates and an authenticator of the project's own go. - [API options](https://docs.protobase.net/reference/config/api.md): The config keys of the REST API, its path, keys, CORS, access defaults, query limits, error reporting, write hooks, MCP tools, remote resources, runtime updates and Realtime across processes, and the files of the API's own hooks. - [Admin app options](https://docs.protobase.net/reference/config/admin-app.md): The config keys of what the admin app draws besides the resources, the assistant, the maps and the plugins, with their types, defaults and environment variables, and the file of the assistant's own tools. - [Jobs and events options](https://docs.protobase.net/reference/config/jobs-and-events.md): The config keys of what the app does in the background and records as it changes, jobs, events, history, webhooks, workflows, notifications and status, with their types and defaults, and the files where a job's run and the stores of its own go. - [Files options](https://docs.protobase.net/reference/config/files.md): The config key files, where file fields keep their bytes, with each provider kind, retention, signing, trusted hosts, the app's own media types, the Storage API and the image library, their types, defaults and environment variables. - [Data config](https://docs.protobase.net/reference/data-config.md): Resources in data.ts, every field type and option, keys and relations, soft delete, tenants, search, validation and access. - [User tables](https://docs.protobase.net/reference/user-tables.md): The switch that keeps tables users add in the app's own database, the two schemas they live in, the migration that adds them, how each one is served, and how a developer takes one over as code. - [Files](https://docs.protobase.net/reference/files.md): File fields, uploads with types detected from the content, downloads, derived fields, image variants and placeholders, external URLs, image referrers, and how stored files are deleted. - [Record history](https://docs.protobase.net/reference/history.md): Every change of a resource's records kept with who made it, through the API or not, shown on the record page and listed for admins as Activity. - [Record comments](https://docs.protobase.net/reference/comments.md): Comments on a resource's records by anyone who may read them, with @mentions that email the people named, shown on the record page and listed for admins. - [Live updates](https://docs.protobase.net/reference/live.md): Open lists and record pages refresh as soon as a record of a live resource changes, through the API or not, each reader seeing only what they may read. - [Channels](https://docs.protobase.net/reference/channels.md): Every record has a channel, where the pages that have it open see who else is there and send each other short-lived events, for whoever may read the record. - [Realtime relay](https://docs.protobase.net/reference/realtime-relay.md): Hand the app's realtime connections to a relay, so the app and its database can sleep while people stay connected. - [AI fields and actions](https://docs.protobase.net/reference/ai.md): Fields a model fills from a prompt after each write, and buttons that have the model write a field of the record, as the user, on the assistant's model settings. - [Access](https://docs.protobase.net/reference/access.md): Roles, capabilities with field lists and row filters, field rules, anonymous access, and what they default to. - [Login with Better Auth](https://docs.protobase.net/reference/auth.md): Sign-in with Better Auth, with the admin store, sign-in methods and policy, sign-in providers, staff sign-in, roles, tokens and the public endpoints. - [Personal access tokens](https://docs.protobase.net/reference/personal-access-tokens.md): Long-lived tokens people make on their account page, so a script calls the app's API as them. - [REST API](https://docs.protobase.net/reference/api.md): The REST API that @protobase/server generates, with its routes, access, filters, writes, batches and errors. - [Client and live UI](https://docs.protobase.net/reference/client.md): The typed fetch client, the TanStack Query hooks and the admin app that runs on them. - [MCP](https://docs.protobase.net/reference/mcp.md): The app's MCP endpoint, through which a person's AI client lists resources, finds and reads records and their comments, and, when turned on, creates and updates them with that person's access and approval, besides the app's own tools. - [Calls](https://docs.protobase.net/reference/calls.md): Audio and video calls on any record of an app, through a LiveKit server or straight between browsers, with Protobase deciding who is in a call, who may send and who hears whom. - [TCP bridges](https://docs.protobase.net/reference/tcp-bridges.md): A signed-in user's browser reaches a TCP service only the app's server can reach, such as one on the workspace's private network, over an ordinary WebSocket. - [Events](https://docs.protobase.net/reference/events.md): Events a resource declares, and how the database captures every change they are raised from, through the API or not. - [Webhooks](https://docs.protobase.net/reference/webhooks.md): Subscriptions that deliver resource events to URLs, API functions and code, signed with Standard Webhooks, retried and shaped for who receives them. - [Jobs](https://docs.protobase.net/reference/jobs.md): Background jobs in the app's own database, enqueued with its writes, retried with backoff, run in order per group, and checked at startup. - [Derived values](https://docs.protobase.net/reference/derived.md): A TypeScript function's result kept current by itself, recomputed when what it read changes or when a time rule flips. - [Workflows](https://docs.protobase.net/reference/workflows.md): Workflows written as state machines in the States Language with JSONata, checked on every save, run step by step on the app's jobs, with every step kept in a trace. - [Workflow plugins](https://docs.protobase.net/reference/workflow-plugins.md): Add trigger and step types to workflows from a file of the app or a package, through the same public interface the built-in types use. - [Email](https://docs.protobase.net/reference/email.md): The SMTP server and sender an app's mail goes out through, and emails of the app's own, written as React components with typed data and sent from jobs, hooks and API functions. - [PDF documents](https://docs.protobase.net/reference/pdf.md): PDF files an app makes, such as invoices, quotes and reports, written as React components with typed data and rendered from jobs, hooks and API functions. - [Notifications](https://docs.protobase.net/reference/notifications.md): Turn on notifications, send them to users or devices, show each signed-in user their inbox in the bell, let them register their browsers and phones, deliver to browsers with Web Push, and keep devices and history in Postgres or stores of your own. - [Status](https://docs.protobase.net/reference/status.md): People set their own status, busy, do not disturb or a text such as "Having lunch", which the people they share an organization with see beside their name, and do not disturb holds their push notifications. - [Public forms](https://docs.protobase.net/reference/forms.md): A form that creates a record for people without an account, such as a contact form, at its own address, behind a rate limit and a bot check. - [UI config](https://docs.protobase.net/reference/ui-config.md): Views in ui.ts, with names, list columns, editing in the list, sorting records by hand (also an invoice's items), filters, charts (graphs of records per day or per value), exports to Excel and CSV, record layouts, related records (in a section or as dots in a list column), field hints, actions (with a dialog of inputs when they ask for some) and views per role. - [Layouts](https://docs.protobase.net/reference/layouts.md): Composed pages from JSX layouts, the element tree they compile to, what they may hold, and how data, conditions, actions and access work in them. - [Blocks](https://docs.protobase.net/reference/blocks.md): Every built-in layout block, its props and what it does, with examples from the ERP's sales overview. - [Custom components](https://docs.protobase.net/reference/custom-components.md): React components and action handlers of your own in protobase.ui.tsx, used by name from layouts. - [Plugins](https://docs.protobase.net/reference/plugins.md): React code the admin app loads when it starts instead of building it in, so it keeps working while Protobase moves on. - [Remote resources](https://docs.protobase.net/reference/remote-resources.md): Resources another Protobase API serves, drawn in an app with its own list pages, record pages, sidebar and links, at their own addresses. - [Assistant](https://docs.protobase.net/reference/assistant.md): The chat beside the admin, who sees it, and its built-in backend on OpenRouter or another OpenAI-compatible endpoint. - [Sidebar](https://docs.protobase.net/reference/sidebar.md): How sidebar entries are grouped and which icon each shows, how an entry lists recent records, with status dots or without, and how it links to its create form. - [User menu](https://docs.protobase.net/reference/user-menu.md): The user menu at the bottom of the sidebar, with the app's own account pages and links. - [Bottom bar](https://docs.protobase.net/reference/bottom-bar.md): Tabs along the bottom of a phone, as on iOS, for the roles that work from one. - [Theme](https://docs.protobase.net/reference/theme.md): protobase.theme.css sets the values of the app's tokens, colors, radius and fonts, for light and dark, and keeps working on every release. - [App identity](https://docs.protobase.net/reference/app-identity.md): The app's name, icon and colours, which its sidebar logo, sign-in page, browser tabs, API docs, home-screen icon, web manifest and mail all follow. - [Languages](https://docs.protobase.net/reference/languages.md): The admin app's built-in screens come in English and Dutch, chosen by the app or by each user's browser, with numbers and dates written to match, and the app's own texts in any language it has translations for. - [Installable app](https://docs.protobase.net/reference/installable-app.md): The admin app installs as an app of its own on phones and computers, named for the app, and opens without a network to say the server is out of reach. - [Supabase client API](https://docs.protobase.net/reference/supabase-rest.md): The PostgREST-compatible /api/sb/rest/v1 that supabase-js's from() and rpc() call, under the tables' RLS policies. - [Supabase Storage API](https://docs.protobase.net/reference/supabase-storage.md): The Storage-compatible /api/sb/storage/v1 that supabase-js's storage calls, over the app's file provider, under the restored storage policies. - [Supabase Realtime](https://docs.protobase.net/reference/supabase-realtime.md): The Realtime-compatible /api/sb/realtime/v1 that supabase-js's channel() joins, for postgres_changes checked under the subscriber's RLS policies, broadcasts and presence, on public and private channels, and broadcasts from the database. - [CLI](https://docs.protobase.net/reference/cli.md): Every protobase command, from scaffold, doctor, dev, build, build-plugin, build-serve and serve to users, organizations, token and skill. ## Architecture - [Architecture](https://docs.protobase.net/reference/architecture.md): How the packages are laid out, which package may import which, and where tests and stories live. - [Versioning](https://docs.protobase.net/reference/versioning.md): How Protobase is versioned and released, the commit convention behind it, bundled and locked projects, and which bundles a serve runtime runs.