# @powerduck/datamodel

> Browser-safe relational modeling core for OpenAPI: extract entities and foreign keys from an OpenAPI document, derive many-to-many link tables with composite keys from array references, generate dialect-aware DDL/indexes/seed SQL, diff a model against a l

Latest version **0.1.0** (published 2026-09-22) · MIT license · 0 weekly downloads

_The full health report (score, vulnerabilities, README, dependency tree, version history) is being computed; this document will grow once it lands._

## Install

```sh
npm install @powerduck/datamodel
pnpm add @powerduck/datamodel
yarn add @powerduck/datamodel
bun add @powerduck/datamodel
```

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2026-09-22 |
| First published | 2026-09-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Dependencies | 0 |
| Author | POWERDUCK LIMITED |
| Maintainers | powerduckie |
| Keywords | openapi, data-model, entity-relationship, er-diagram, ddl, schema-diff, database, mysql, sqlserver, oracle, foreign-key, many-to-many, join-table, composite-primary-key, migration, mermaid, ai-context, mcp |

## Links

- npm: https://www.npmjs.com/package/@powerduck/datamodel
- Repository: https://github.com/powerducklab/datamodel
- Homepage: https://www.powerduck.com/
- npm.io page: https://npm.io/package/@powerduck/datamodel

---
_Source: https://npm.io/package/@powerduck/datamodel · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
