
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
@prisma/extension-accelerate
Advanced tools
This is the package for the Prisma Client extension that enables usage of Prisma Accelerate.
Prisma Accelerate provides an external connection pool and global caching layer that you can use to speed up your database queries.
It is part of the Prisma ecosystem, alongside other tools such as:
Prisma is leading Data DX, a philosophy that promotes simplicity in data-driven application development. Learn more on the Data DX manifesto.
You can explore Accelerate with the following resources:
Log into Prisma Data Platform and enable Accelerate for your project.
Replace the database connection string with the Accelerate connection string you generated in Prisma Data Platform (assuming you store your database connection string in the DATABASE_URL in the .env file):
DATABASE_URL="prisma://accelerate.prisma-data.net/?api_key=__API_KEY__"
import "dotenv/config";
import { defineConfig, env } from "prisma/config";
export default defineConfig({
schema: "prisma/schema.prisma",
datasource: {
url: env("DATABASE_URL"),
},
});
DATABASE_URL="prisma://accelerate.prisma-data.net/?api_key=__API_KEY__"
Finally, configure your Prisma Client instance with the accelerateUrl to enable Accelerate’s connection pool:
import "dotenv/config";
import { PrismaClient } from "./generated/client";
const prisma = new PrismaClient({
accelerateUrl: process.env.DATABASE_URL,
});
And in your schema.prisma
generator client {
provider = "prisma-client"
output = "./generated"
}
You can optionally configure caching on a per-query level using the ttl (Time-To-Live) and swl (Stale-While-Revalidate) options:
await prisma.user.findMany({
cacheStrategy: {
ttl: 3_600,
swr: 500,
},
});
FAQs
Prisma Client extension for Accelerate
The npm package @prisma/extension-accelerate receives a total of 60,943 weekly downloads. As such, @prisma/extension-accelerate popularity was classified as popular.
We found that @prisma/extension-accelerate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.