{"id":13990781,"url":"https://github.com/prisma/prisma-client-extensions","last_synced_at":"2025-04-04T09:07:40.779Z","repository":{"id":66108817,"uuid":"575100641","full_name":"prisma/prisma-client-extensions","owner":"prisma","description":"Examples of Prisma Client extensions.","archived":false,"fork":false,"pushed_at":"2025-04-02T18:46:47.000Z","size":292,"stargazers_count":196,"open_issues_count":17,"forks_count":17,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-02T21:18:23.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions/extension-examples","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prisma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":"audit-log-context/.env.example","citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-06T18:58:50.000Z","updated_at":"2025-04-01T08:01:51.000Z","dependencies_parsed_at":"2023-12-21T02:25:05.878Z","dependency_job_id":"6f84bc1c-109f-4ec5-80b7-f108a2c35f93","html_url":"https://github.com/prisma/prisma-client-extensions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-client-extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-client-extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-client-extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fprisma-client-extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/prisma-client-extensions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149500,"owners_count":20891954,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-09T13:03:14.165Z","updated_at":"2025-04-04T09:07:40.758Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003ePrisma Client Extension Examples\u003c/h1\u003e\n\u003c/div\u003e\n\nThis repository contains a number of examples of [Prisma Client extensions](https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions).\n\n\u003e The extensions in this repository are provided as examples only, and without warranty. They are not intended to be used in production environments.\n\n## Examples\n\n| Example | Description |\n|---|---|\n| [`audit-log-context`](audit-log-context) | Provides the current user's ID as context to Postgres audit log triggers |\n| [`callback-free-itx`](callback-free-itx) | Adds a method to start interactive transactions without callbacks |\n| [`computed-fields`](computed-fields) | Adds virtual / computed fields to result objects |\n| [`input-transformation`](input-transformation) | Transforms the input arguments passed to Prisma Client queries to filter the result set |\n| [`input-validation`](input-validation) | Runs custom validation logic on input arguments passed to mutation methods |\n| [`instance-methods`](instance-methods) | Adds Active Record-like methods like `save()` and `delete()` to result objects |\n| [`json-field-types`](json-field-types) | Uses strongly-typed runtime parsing for data stored in JSON columns |\n| [`model-filters`](model-filters) | Adds reusable filters that can composed into complex `where` conditions for a model |\n| [`obfuscated-fields`](obfuscated-fields) | Prevents sensitive data (e.g. `password` fields) from being included in results |\n| [`query-logging`](query-logging) | Wraps Prisma Client queries with simple query timing and logging |\n| [`readonly-client`](readonly-client) | Creates a client that only allows read operations |\n| [`retry-transactions`](retry-transactions) | Adds a retry mechanism to transactions with exponential backoff and jitter |\n| [`row-level-security`](row-level-security) | Uses Postgres row-level security policies to isolate data in a multi-tenant application |\n| [`static-methods`](static-methods) | Adds custom query methods to Prisma Client models |\n| [`transformed-fields`](transformed-fields) | Demonstrates how to use result extensions to transform query results and add i18n to an app |\n| [`exists-fn`](exists-fn) | Adds an `exists` function to all your models |\n| [`update-delete-ignore-not-found`](./update-delete-ignore-not-found/) | Adds `updateIgnoreOnNotFound` and `deleteIgnoreOnNotFound` function to all your models |\n\n\n## Authoring extensions\n\nIf you're interested in building an extension you want to share as a package, we recommend using the following [starter repository](https://github.com/prisma/prisma-client-extension-starter).\n\nRefer to our [documentation](https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions/shared-extensions) to learn more about how to create and publish extensions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fprisma-client-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Fprisma-client-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fprisma-client-extensions/lists"}