|
3 | 3 | > **Bidirectional ORM schema converter** — convert between SQL DDL, Prisma, Drizzle, TypeORM, Django, SQLAlchemy, Alembic migrations, JSON Schema, GraphQL SDL, EF Core (C#), and Scala case classes. **11 formats, 110 direction pairs.** |
4 | 4 |
|
5 | 5 | [](https://github.com/Coding-Dev-Tools/schemaforge/stargazers) |
6 | | -[](https://pypi.org/project/schemaforge/) |
7 | | -[](https://pypi.org/project/schemaforge/) |
8 | | -[](https://github.com/Coding-Dev-Tools/schemaforge/blob/main/LICENSE) |
| 6 | +[](https://pypi.org/project/schemaforge-cli/) |
| 7 | +[](https://pypi.org/project/schemaforge-cli/) |
| 8 | +[](https://github.com/Coding-Dev-Tools/schemaforge/blob/main/LICENSE) |
9 | 9 | [](https://github.com/Coding-Dev-Tools/schemaforge/actions/workflows/ci.yml) |
10 | | -[](https://github.com/Coding-Dev-Tools/schemaforge) |
11 | | -[](https://marketplace.visualstudio.com/items?itemName=devforge.vscode-schemaforge) |
| 10 | +[](https://github.com/Coding-Dev-Tools/schemaforge) |
| 11 | +[](https://marketplace.visualstudio.com/items?itemName=revenue-holdings.vscode-schemaforge) |
12 | 12 | [](https://www.opensourcealternative.to/project/schemaforge) |
13 | 13 | [](https://www.libhunt.com/r/Coding-Dev-Tools/schemaforge) |
14 | | -[](https://github.com/uhub/awesome-python) |
15 | 14 |
|
16 | | -> ⭐ **Star this repo** |
17 | | -
|
18 | | -**Why SchemaForge?** Every major ORM migration is a one-way street. Prisma introspects SQL but can't export back. Drizzle users manually rewrite schemas when switching ORMs. TypeORM developers are locked into decorator syntax. SchemaForge is the first tool to do **bidirectional, lossless conversion** between 11 schema formats — with a shared internal representation that guarantees roundtrip fidelity. |
| 15 | +**Why SchemaForge?** |
19 | 16 |
|
20 | 17 | Convert any schema to any format, verify equivalence with the diff command, generate Alembic migrations, produce JSON Schema definitions, create GraphQL SDL types, convert Entity Framework (C#) entities, generate Scala case classes, and batch-process entire directories. Whether you're migrating from Prisma to Drizzle, sharing a schema with a Django backend, exposing your data model as GraphQL, translating C# entities to Scala, or working with the SchemaForge VS Code extension for live preview — SchemaForge handles it. |
21 | 18 |
|
@@ -63,7 +60,7 @@ Requires Python 3.10+. |
63 | 60 |
|
64 | 61 | ### `schemaforge convert` |
65 | 62 |
|
66 | | -Convert a schema from one format to another. All 9 formats support conversion to and from every other format (72 direction pairs). |
| 63 | +Convert a schema from one format to another. All 11 formats support conversion to and from every other format (110 direction pairs). |
67 | 64 |
|
68 | 65 | ```bash |
69 | 66 | # Format-specific examples |
@@ -210,7 +207,7 @@ SchemaForge maps types intelligently between ORM systems. The core `ColumnType` |
210 | 207 |
|
211 | 208 | ## Demo Fixtures |
212 | 209 |
|
213 | | -Try SchemaForge immediately with our example blog schema. The `fixtures/` directory contains an equivalent schema (users, posts, categories with enums and various data types) in all 9 formats: |
| 210 | +Try SchemaForge immediately with our example blog schema. The `fixtures/` directory contains an equivalent schema (users, posts, categories with enums and various data types) in all 11 formats: |
214 | 211 |
|
215 | 212 | ```bash |
216 | 213 | # List all fixtures |
@@ -403,18 +400,18 @@ SchemaForge is one of 11 tools in the DevForge suite. One license covers all CLI |
403 | 400 |
|
404 | 401 | | Feature | Free | Individual | Suite | Team | Enterprise | |
405 | 402 | |---------|:----:|:----------:|:-----:|:----:|:----------:| |
406 | | -| CLI: convert, diff | ✓ | ✓ | ✓ | ✓ | ✓ | |
407 | | -| All 9 format directions | — | ✓ | ✓ | ✓ | ✓ | |
408 | | -| Alembic migration generation | — | ✓ | ✓ | ✓ | ✓ | |
409 | | -| JSON Schema import/export | — | ✓ | ✓ | ✓ | ✓ | |
410 | | -| GraphQL SDL import/export | — | ✓ | ✓ | ✓ | ✓ | |
411 | | -| MCP server (AI agent tools) | ✓ | ✓ | ✓ | ✓ | ✓ | |
412 | | -| Custom type mappings | — | ✓ | ✓ | ✓ | ✓ | |
413 | | -| Batch directory conversion | — | ✓ | ✓ | ✓ | ✓ | |
414 | | -| Team shared type mappings | — | — | — | ✓ | ✓ | |
415 | | -| Dashboard & analytics | — | — | — | ✓ | ✓ | |
416 | | -| Compliance reports | — | — | — | — | ✓ | |
417 | | -| RBAC / SSO / SAML / OIDC | — | — | — | — | ✓ | |
| 403 | +|| CLI: convert, diff | ✓ | ✓ | ✓ | ✓ | ✓ | |
| 404 | +|| All 11 format directions | — | ✓ | ✓ | ✓ | ✓ | |
| 405 | +|| Alembic migration generation | — | ✓ | ✓ | ✓ | ✓ | |
| 406 | +|| JSON Schema import/export | — | ✓ | ✓ | ✓ | ✓ | |
| 407 | +|| GraphQL SDL import/export | — | ✓ | ✓ | ✓ | ✓ | |
| 408 | +|| MCP server (AI agent tools) | ✓ | ✓ | ✓ | ✓ | ✓ | |
| 409 | +|| Custom type mappings | — | ✓ | ✓ | ✓ | ✓ | |
| 410 | +|| Batch directory conversion | — | ✓ | ✓ | ✓ | ✓ | |
| 411 | +|| Team shared type mappings | — | — | — | ✓ | ✓ | |
| 412 | +|| Dashboard & analytics | — | — | — | ✓ | ✓ | |
| 413 | +|| Compliance reports | — | — | — | — | ✓ | |
| 414 | +|| RBAC / SSO / SAML / OIDC | — | — | — | — | ✓ | |
418 | 415 | | Priority support | Community | 24h | 24h | 8h | Dedicated | |
419 | 416 |
|
420 | 417 | ## Development |
@@ -450,5 +447,5 @@ MIT — see [LICENSE](LICENSE) |
450 | 447 |
|
451 | 448 | --- |
452 | 449 |
|
453 | | -<sub>Part of [DevForge](https://coding-dev-tools.github.io/devforge.dev/) — a suite of 10 developer CLI tools built by autonomous AI agents. Also check out the [SchemaForge VS Code extension](https://github.com/Coding-Dev-Tools/vscode-schemaforge), [API Contract Guardian](https://github.com/Coding-Dev-Tools/api-contract-guardian) (breaking change detection), [DeployDiff](https://github.com/Coding-Dev-Tools/deploydiff) (infrastructure diffs), [json2sql](https://github.com/Coding-Dev-Tools/json2sql) (JSON → SQL), [ConfigDrift](https://github.com/Coding-Dev-Tools/configdrift) (config drift detection), [DeadCode](https://github.com/Coding-Dev-Tools/deadcode) (dead code cleanup), [APIAuth](https://github.com/Coding-Dev-Tools/apiauth) (API key management), [APIGhost](https://github.com/Coding-Dev-Tools/apighost) (mock API server), [Envault](https://github.com/Coding-Dev-Tools/envault) (env sync), and [click-to-mcp](https://github.com/Coding-Dev-Tools/click-to-mcp) (CLI → MCP server).</sub> |
| 450 | +<sub>Part of [Revenue Holdings](https://coding-dev-tools.github.io/revenueholdings.dev/) — a suite of 11 developer CLI tools built by autonomous AI agents. Also check out the [SchemaForge VS Code extension](https://github.com/Coding-Dev-Tools/vscode-schemaforge), [ConfigDrift](https://github.com/Coding-Dev-Tools/configdrift) (config drift detection), [DataMorph](https://github.com/Coding-Dev-Tools/datamorph) (data format conversion), [DeadCode](https://github.com/Coding-Dev-Tools/deadcode) (dead code cleanup), [DeployDiff](https://github.com/Coding-Dev-Tools/deploydiff) (infrastructure diffs), [Envault](https://github.com/Coding-Dev-Tools/envault) (env sync), [APIAuth](https://github.com/Coding-Dev-Tools/apiauth) (API key management), [APIGhost](https://github.com/Coding-Dev-Tools/apighost) (mock API server), [json2sql](https://github.com/Coding-Dev-Tools/json2sql) (JSON → SQL), [API Contract Guardian](https://github.com/Coding-Dev-Tools/api-contract-guardian) (breaking change detection), and [click-to-mcp](https://github.com/Coding-Dev-Tools/click-to-mcp) (CLI → MCP server).</sub> |
454 | 451 |
|
0 commit comments