
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
drizzle-erd
Advanced tools
A super-simple way to generate Entity-Relationship Diagrams (ERDs) from your Drizzle schema. Use case (CLI or in-code) and dialect (PG, MySQL, SQLite) agnostic!
[!IMPORTANT] Drizzle ERD is in pre-release and is not ready for production-reliant use cases.
If you'd like to use this package right now, in lieu of any proper documentation, here's how to get started.
Call drizzle-erd directly from npm or pnpm from a script in your package.json like so:
{
//...Rest of package.json
"scripts": {
//...Other scripts
"db:generate-erd": "drizzle-erd --in ./src/or/path/to/schema.ts --out erd.svg"
}
}
The following CLI flags are available to be used with drizzle-erd.
| Name | Flag | Description |
|---|---|---|
| [Required] Schema source | --in | The path to your Drizzle schema.ts file. |
| [Required] SVG output | --out | The destination path (and filename) of the output SVG. (Overwrites if already exists) |
| Debug logs | --verbose | Provide this flag to print the status of the schema generation with debug-level logging. |
Add your ERD to your readme like this:
<img src="./erd.svg" width=720 />
Call the db:generate-erd script you defined earlier from a Git pre-commit hook to make sure your generated ERD is always up-to-date (especially if you're printing it out to your README as above).
FAQs
Entity-relationship diagram (ERD) generator for Drizzle.
The npm package drizzle-erd receives a total of 988 weekly downloads. As such, drizzle-erd popularity was classified as not popular.
We found that drizzle-erd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.