npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@llodev/django-schema-design

v0.2.0

Published

Design robust Django database schemas: model conventions, primary-key strategy (incremental, UUIDv4, UUIDv7 with insert-locality trade-offs), indexes (composite/covering/partial), constraints (unique/check/exclusion), and safe migrations. A knowledge skil

Readme

@llodev/django-schema-design

Design production-ready Django database schemas — primary-key strategy, indexes, constraints, and safe migrations — with the non-obvious trade-offs an expert learned the hard way, not basic ORM syntax.

npm License: MIT Node.js >= 20 Agent Skills spec

Part of the @llodev/django-* family.

What you get:

  • PK strategy that names the real axis — not "unique vs not" (all are unique) but random placement (UUIDv4) vs sequential placement (UUIDv7 / incremental), and why v4 as a hot-table PK fragments the index while v7 keeps insert locality.
  • A domain-interrogation frame — identity, cardinality/ownership, lifecycle, access paths — to settle before any field exists.
  • An indexes & constraints expert layer — composite column ordering, covering (include) and partial indexes, Unique/Check/Exclusion constraints, B-tree/GIN/GiST/BRIN selection, and when to denormalize instead of adding another index.
  • Migration safety — batched backfills, concurrent index creation on live tables, reversibility, and the staged PK-swap procedure.
  • A NEVER list with the reasons experience teaches (FloatField money drift, sequential PK → IDOR, v4-on-hot-tables, in-place PK swaps, implicit on_delete).

Install

# npm (with skillpm or Claude Code marketplace)
npm i @llodev/django-schema-design

# Vercel CLI
npx skills add llodev/skills/skills/django-schema-design

No MCP, no config, no init — it's a pure knowledge skill. Once installed it activates on prompts like the ones below.

Use

| Prompt example | What the agent does | | ------------------------------------------------------- | --------------------------------------------------------------------------- | | "design Django models for invoices and line items" | Runs the domain frame + PK decision flow, emits models.py with rationale | | "should this event table use UUID or auto increment?" | Applies the exposure + insert-locality axes → UUIDv7 with the reasoning | | "migration to switch users to a UUID PK" | Staged, reversible add→backfill→repoint→swap procedure | | "review this schema" | Checks PK choice, on_delete, constraints, index ordering against the list |

Contents

| File | Content | | ---------------------------------------- | ----------------------------------------------------------------------- | | SKILL.md | Domain frame, PK decision flow, NEVER list, and verification checklist. | | references/pk-strategy.md | Incremental vs UUIDv4 vs UUIDv7, storage/collation, and PK migration. | | references/indexing-and-constraints.md | Composite/covering/partial indexes, constraints, index types, EXPLAIN. |

License

MIT — see LICENSE.