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

prisma-template

v0.2.1

Published

CLI to compose Prisma schemas using modular templates and an interactive wizard.

Readme

Prisma Template CLI

🇬🇧 Merge modular Prisma templates to produce production-ready schema.prisma files. (Default language: English)

🇪🇸 Traducción completa disponible en docs/es.md.

📚 Documentation

Reading this on npm? Use the CDN links below because relative GitHub paths are not available here.

Each guide covers the interactive flow, CLI flags, and detailed examples. Both files also ship inside the npm tarball under docs/ if you prefer local reading.

🧱 Categorías de plantillas / Template categories

| Category | Quick summary (ES en paréntesis) | | ------------- | --------------------------------------------------------------------------------------------------------------------------- | | core/ | Identity, auth, RBAC, multitenancy, auditing, feature flags (Identidad, autenticación, RBAC, multitenancy, auditoría...) | | business/ | Organizations, CRM, sales pipelines, projects, tasks (Organizaciones, CRM, pipeline de ventas, proyectos y tareas) | | content/ | CMS, blog, docs, knowledge base, LMS, media library (CMS, blog, documentación, knowledge base, LMS y media library) | | commerce/ | eCommerce, marketplace, payments, billing/subscriptions, invoicing, credits (eCommerce, marketplace, pagos...) | | engagement/ | Social graph, comments, reactions, notifications, moderation, analytics, A/B testing (Social, comentarios, reacciones...) | | operations/ | Booking engines and support/ticketing (Booking y soporte/ticketing) | | infra/ | API keys, webhooks, rate limiting, IoT devices, telemetry (API keys, webhooks, rate limiting, IoT, telemetry) | | streaming/ | OTT catalog, playlists, progress, entitlements, ads (OTT catalog, playlists, progress, entitlements y ads) |

Browse these folders under templates/ to inspect every .prisma file or drop in new ones—the CLI picks them up automatically.

🚀 Quick peek

# Interactive wizard
npx prisma-template

# Generate directly from a preset
npx prisma-template --db mysql --preset ott-platform --output ./prisma/schema.prisma

# Direct CLI example
npx prisma-template --db mysql --add auth billing ott --output ./prisma/schema.prisma

📦 Install

# Global install
npm install -g prisma-template

# Or run ad-hoc without installing globally
npx prisma-template

🧭 Template vs Custom

After picking the database provider you can choose between:

  • Template: ten curated stacks (e.g. OTT Platform, B2B SaaS Suite, Marketplace Hub, Creator Economy, Knowledge Hub, Support Ops, Booking Platform, IoT Fleet, Social Community, Education LMS) spanning multiple categories that you can accept or tweak.
  • Custom: the original browser where you hop across categories and toggle exactly the modules you need.

Every preset is documented in detail (EN/ES). Pick whichever mode matches the speed you need.

Skip the wizard entirely with --preset <id> (IDs: ott-platform, b2b-saas, content-network, marketplace-hub, creator-economy, knowledge-hub, support-ops, booking-platform, iot-fleet, social-community, education-lms).