
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
schemaforge-cli
Advanced tools
Visual database schema designer with PostgreSQL, MongoDB, Prisma, and TypeORM export
A production-quality visual database schema designer for developers.
npx schemaforge-cli
This builds the app (if needed) and serves it at http://localhost:4173,
opening your browser automatically. All data is stored locally in the
browser — no backend, no account, no AI APIs.
npx schemaforge-cli # Build and serve on port 4173
npx schemaforge-cli --port 8080 # Use a custom port
npx schemaforge-cli --dev # Dev mode with hot reload
npx schemaforge-cli --help # Show help
git clone https://github.com/rostislaw9/schema-forge.git
cd schema-forge
pnpm install
pnpm dev # development with hot reload
pnpm build # production build to dist/
pnpm preview # preview the production build
SchemaForge lets developers visually model database schemas on an interactive canvas and export them to multiple targets:
The app is local-first, requires no AI APIs, and uses no paid services. All state persists to localStorage. Projects can be exported/imported as JSON.
GENERATED ALWAYS AS ... STOREDCOMMENT ON TABLE / COMMENT ON COLUMNWHERE clause filteringtype[] syntax for array columnsCREATE TYPE ... AS ENUM (data model only, no UI editor yet)db.createCollection() with $jsonSchema{ target }_id as objectId, many-to-many generates { target }_ids as
array of objectId, embedded generates nested objectcreateIndex() automatically (skips fields already indexed)isEmbedded toggle for nested document fieldscorepack enable or npm install -g pnpm)git clone https://github.com/rostislaw9/schema-forge.git
cd schema-forge
pnpm install
| Command | Description |
|---|---|
pnpm dev | Start the Vite dev server |
pnpm build | Type-check and build for production |
pnpm preview | Preview the production build |
pnpm typecheck | Run TypeScript type checking |
pnpm test | Run unit tests once |
pnpm test:watch | Run unit tests in watch mode |
pnpm lint | Run ESLint |
pnpm lint:fix | Run ESLint and auto-fix issues |
pnpm format | Format all files with Prettier |
pnpm format:check | Check formatting without writing |
Before submitting changes, verify all checks pass:
pnpm typecheck && pnpm lint && pnpm format:check && pnpm test && pnpm build
src/
types/
schema.ts # Internal domain model types + Zod schemas
schema.test.ts
store/
projectStore.ts # Zustand store with localStorage persistence
projectStore.test.ts
lib/
id.ts # ID generation helper
typePresets.ts # PostgreSQL/MongoDB type presets
validation.ts # Field/entity name validation helpers
validation.test.ts
warnings.ts # Compatibility warning engine (multi-target)
warnings.test.ts
sampleProject.ts # Sample project generators (PostgreSQL + MongoDB)
sampleProject.test.ts
exporters/
postgres.ts # PostgreSQL DDL exporter
postgres.test.ts
prisma.ts # Prisma schema exporter
prisma.test.ts
mongodb.ts # MongoDB shell command exporter (with relations)
mongodb.test.ts
typeorm.ts # TypeORM entity class exporter
typeorm.test.ts
components/
Sidebar.tsx # Dialect selector, entity list, project actions
SchemaCanvas.tsx # React Flow canvas with field-to-field handles
EntityNode.tsx # Custom React Flow node with per-field handles
Inspector.tsx # Entity/field/relation/index editor
FieldEditor.tsx # Reusable field property editor
ExportPanel.tsx # Tabbed export preview with warnings
App.tsx # Root layout
main.tsx # Entry point
index.css # Tailwind + global styles
Project and returns a
string. No side effects, fully testable.| Export | PostgreSQL | MongoDB | Features |
|---|---|---|---|
| PostgreSQL | Yes | — | Full DDL with all PG features |
| Prisma | Yes | Yes | Models, enums, relations, composite unique |
| TypeORM | Yes | — | Entity classes with all PG features |
| MongoDB | — | Yes | Validators with ObjectId refs + indexes |
| Feature | PostgreSQL | MongoDB | Prisma | TypeORM |
|---|---|---|---|---|
| Tables/collections | Yes | Yes | Yes | Yes |
| Primary keys | Yes | — | Yes | Yes |
| Unique constraints | Yes | — | Yes | Yes |
| Composite unique | Yes | — | Yes | Yes |
| Foreign keys / relations | Yes | Refs | Yes | Yes |
| Referential actions | Yes | — | — | — |
| CHECK constraints | Yes | — | — | Yes |
| Generated columns | Yes | — | — | Yes |
| Comments | Yes | — | — | Yes |
| Index methods | Yes | — | — | Yes |
| Partial indexes (WHERE) | Yes | — | — | Yes |
| Index sort orders | Yes | — | Yes | — |
| Array types | Yes | Yes | Yes | Yes |
| Embedded objects | — | Yes | — | — |
| Enums | Yes | — | Yes | — |
The project has 205 unit tests across 9 test files:
schema.test.ts — Zod schema validation (8 tests)projectStore.test.ts — store actions: entities, fields, relations,
indexes, unique constraints, dialect conversion, array round-trip (37 tests)validation.test.ts — name validation helpers (21 tests)warnings.test.ts — compatibility warning engine, multi-target grouping,
many_to_many awareness (17 tests)sampleProject.test.ts — both sample projects (PostgreSQL + MongoDB),
generation and JSON round-trip (29 tests)postgres.test.ts — PostgreSQL DDL exporter: all PG features (23 tests)prisma.test.ts — Prisma schema exporter (16 tests)mongodb.test.ts — MongoDB exporter: validators, relations, indexes
(23 tests)typeorm.test.ts — TypeORM exporter: all PG features (31 tests)The app is a static SPA built with Vite. Deploy the dist/ directory to any
static host:
pnpm build
# Deploy dist/ via Vercel CLI or connect the repo
pnpm build
# Publish directory: dist
# Build command: pnpm build
pnpm build
# Upload the contents of dist/ to your web server
SchemaForge does not use any AI APIs, paid services, or external intelligence. All logic is local and deterministic.
MIT
FAQs
Visual database schema designer with PostgreSQL, MongoDB, Prisma, and TypeORM export
We found that schemaforge-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.