← All libraries

Prisma

JavaScript
↗ Official site

Database & backend

A tool that connects your app to a database so you don't have to write SQL by hand.

What it does

Prisma is an ORM (Object-Relational Mapper) — it lets you define your database structure in a readable schema file and then query the database using JavaScript instead of raw SQL. It generates TypeScript types automatically.

When to use it

Use this when building a Node.js backend and you want a type-safe way to work with your database.

Real example

You're building a blog and want to save posts with title, content, and author to a PostgreSQL database. Prompt: 'Define a Post model in schema.prisma with id, title, content, authorId, and createdAt. Run prisma migrate dev. Use prisma.post.create() to save new posts and prisma.post.findMany() to list them.'

Good to know

Works with PostgreSQL, MySQL, SQLite, and MongoDB. Often used with Supabase or PlanetScale.

Alternatives

Install

$ npm install prisma @prisma/client

Use cases

databaseORMSQLTypeScriptbackend

Language

JavaScript

Category

Database & backend

More in Database & backend

Other tools in the same category