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-console

v1.1.2

Published

A Rails-inspired interactive console for Prisma ORM with project-scoped functionality

Readme

Prisma Console

A Rails-inspired interactive console for Prisma ORM that provides a powerful REPL environment for interacting with your database.

Features

Rails-like Experience

  • Direct model access without prisma prefix
  • Interactive query execution
  • Command history support
  • Tab completion

🎨 Beautiful Output

  • Colorized query results
  • Formatted JSON output
  • Clear error messages
  • Null/undefined handling

🔧 Developer Friendly

  • Run any JavaScript code
  • Full async/await support
  • Access to Prisma models and queries
  • Command history persistence

Installation

Add to your Prisma project:

npm install prisma-console

Usage

Start the console:

npx prisma-console

Or add it to your package.json scripts:

{
  "scripts": {
    "console": "prisma-console"
  }
}

Then run:

npm run console

Example Commands

// List all models
models

// Find all users
prisma.user.findMany()

// Create a new user
prisma.user.create({ 
  data: { 
    name: "John",
    email: "[email protected]"
  }
})

// Query with relations
prisma.user.findMany({
  include: {
    posts: true,
    profile: true
  }
})

// Run any JavaScript
const admins = await prisma.user.findMany({ where: { role: "ADMIN" }})
admins.map(a => a.email)

Requirements

  • Node.js >= 14.0.0
  • A Prisma project with:
    • Valid schema.prisma file
    • Generated Prisma Client (npx prisma generate)
    • Configured database connection

Contributing

Contributions are welcome! Here's how you can help:

Areas for Contribution

  • 🐛 Bug fixes
  • ✨ New features
  • 📝 Documentation improvements
  • 🎨 UI/UX enhancements
  • ⚡ Performance optimizations

Getting Started

  1. Fork the repository
  2. Clone your fork:
    git clone https://github.com/zaidzuhaira/prisma-console.git
  3. Install dependencies:
    npm install
  4. Create a branch:
    git checkout -b my-feature
  5. Make your changes
  6. Submit a pull request

Development Guidelines

  • Follow existing code style
  • Add tests for new features
  • Update documentation as needed
  • Keep pull requests focused on single features/fixes

License

ISC

Support

If you find a bug or have a feature request, please open an issue.