Quick Start
Prerequisites
Section titled “Prerequisites”- Node.js 18+
- A running PostgreSQL database
Scaffold a New Project
Section titled “Scaffold a New Project”pnpm create @mabulu-inc/simplicity-admin my-admincd my-adminSet your database connection string:
DATABASE_URL=postgres://user:password@localhost:5432/mydbStart the development server:
npm run devOpen http://localhost:3000/admin in your browser. SIMPLICITY-ADMIN introspects your database and generates an admin panel with CRUD views for every table.
Three Consumption Modes
Section titled “Three Consumption Modes”1. CLI Scaffold (Standalone Project)
Section titled “1. CLI Scaffold (Standalone Project)”The quickest path. The init command creates a full project with configuration, scripts, and starter files.
pnpm create @mabulu-inc/simplicity-admin my-admincd my-adminnpm run dev2. npm Install (Existing Project)
Section titled “2. npm Install (Existing Project)”Add SIMPLICITY-ADMIN to an existing Node.js project as a dependency.
npm install @mabulu-inc/simplicity-admin-core @mabulu-inc/simplicity-admin-db @mabulu-inc/simplicity-admin-api @mabulu-inc/simplicity-admin-auth @mabulu-inc/simplicity-admin-uiCreate a simplicity-admin.config.ts at your project root:
import { defineConfig } from '@mabulu-inc/simplicity-admin-core';
export default defineConfig({ database: process.env.DATABASE_URL,});3. Embeddable Middleware
Section titled “3. Embeddable Middleware”Mount SIMPLICITY-ADMIN inside an existing Express (or any Node.js HTTP framework) application.
import express from 'express';import { createAdmin } from '@mabulu-inc/simplicity-admin-core';
const app = express();
app.use('/admin', createAdmin({ database: process.env.DATABASE_URL,}));
app.get('/', (req, res) => { res.send('Your app lives here');});
app.listen(3000);The admin panel is now available at /admin alongside your existing routes.
What Happens on Startup
Section titled “What Happens on Startup”- SIMPLICITY-ADMIN connects to your PostgreSQL database
- Introspects the schema (tables, columns, foreign keys, enums)
- Creates a system schema (
_simplicity) for internal state - Generates a GraphQL API via PostGraphile V5
- Serves the SvelteKit admin UI
Next Steps
Section titled “Next Steps”- Configuration — Customize behavior via
simplicity-admin.config.ts - Architecture — Understand the provider pattern and package structure