---
title: "Prisma Client Just Became a Lot More Flexible: Prisma Client Extensions (Preview)"
url: https://daily.dev/posts/prisma-client-just-became-a-lot-more-flexible-prisma-client-extensions-preview--4bgc5xvmm
source_url: https://www.prisma.io/blog/client-extensions-preview-8t3w27xkrxxn
type: article
source: "Prisma Blog"
published: 2026-05-31T07:44:48.336Z
updated: 2026-05-31T08:57:51.883Z
tags: ["backend", "typescript", "prisma"]
reading_time: 9
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Prisma Client Just Became a Lot More Flexible: Prisma Client Extensions (Preview)

**[Prisma Blog](https://daily.dev/sources/prisma-blog)** · 9 min read · 0 upvotes · 0 comments

## Summary

Prisma Client extensions are now available in Preview, enabling developers to add custom functionality to Prisma Client in a type-safe way. Extensions support four component types: Model (add methods to models), Client (add top-level methods), Query (hook into query lifecycle), and Result (add computed fields/methods to results). The post walks through 15 practical use cases including computed fields, field obfuscation, input validation with Zod, query logging, retry transactions with exponential backoff, callback-free interactive transactions, audit log context, and row-level security for multi-tenant apps. Extensions can be composed, applied to separate client instances, and published to npm using the prisma-extension-* naming convention.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.prisma.io/blog/client-extensions-preview-8t3w27xkrxxn>

---

Tags: [#backend](https://daily.dev/tags/backend), [#typescript](https://daily.dev/tags/typescript), [#prisma](https://daily.dev/tags/prisma)

[View this post on daily.dev](https://daily.dev/posts/prisma-client-just-became-a-lot-more-flexible-prisma-client-extensions-preview--4bgc5xvmm)
