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

@waiyanmt/next-prisma

v1.0.4

Published

Create a Next.js app with Prisma ORM and Tailwind CSS

Readme

Create Next Prisma

A modern Next.js template with Prisma ORM, PostgreSQL, Tailwind CSS, and TypeScript. Perfect for building full-stack applications with a robust database layer.

Quick Start

Create a new Next.js + Prisma project:

npx @waiyanmt/next-prisma my-app
# or if installed globally
create-next-prisma my-app
cd my-app

What's Included

  • Next.js 16 with App Router
  • Prisma ORM with PostgreSQL adapter
  • Tailwind CSS v4 for styling
  • TypeScript for type safety
  • ESLint for code quality
  • Pre-configured User and Post models
  • Database connection setup
  • API routes example

Setup

  1. Install dependencies (already done by the CLI):

    npm install
  2. Set up your database: Copy .env.example to .env and update your database URL:

    cp .env.example .env

    Edit .env with your PostgreSQL connection string:

    DATABASE_URL="postgresql://username:password@localhost:5432/myapp?schema=public"
  3. Run database migrations:

    npx prisma migrate dev --name init
  4. Generate Prisma client:

    npx prisma generate
  5. Start the development server:

    npm run dev

Open http://localhost:3000 to see your app.

Available Scripts

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run start - Start production server
  • npm run lint - Run ESLint
  • npx prisma studio - Open Prisma Studio
  • npx prisma migrate dev - Create and apply migrations

Project Structure

├── app/                 # Next.js App Router pages
│   ├── api/            # API routes
│   ├── layout.tsx      # Root layout
│   └── page.tsx        # Home page
├── lib/                # Utility functions
│   ├── prisma.ts       # Prisma client
│   └── utils.ts        # Helper functions
├── prisma/             # Database schema and migrations
│   └── schema.prisma   # Prisma schema
├── public/             # Static assets
└── tests/              # Test files

Database Schema

The template includes two basic models:

  • User: id, email, name, posts, timestamps
  • Post: id, title, content, published, author, timestamps

Customization

  • Modify prisma/schema.prisma to add your own models
  • Update the UI in app/page.tsx to match your design
  • Add authentication, API routes, or other features as needed

Learn More

Contributing

This is a template repository. To modify the template:

  1. Make your changes
  2. Test with: npm run dev
  3. Update this README if needed
  4. Publish to npm: npm publish

License

MIT