{"id":43705,"library":"prisma-repo","title":"prisma-repo","description":"CLI tool that generates repository pattern classes for Prisma ORM models. v0.3.12 is the last version on the original package, which has been moved to @krsbx/prisma-repo (see warnings). The tool creates abstract base repositories with static methods, configurable via repository.setting files (JSON, JS, TS). Supports Express request extension (conflicts with multer/file). This package is now deprecated in favor of the renamed successor. No updates since move.","status":"renamed","version":"0.3.12","language":"javascript","source_language":"en","source_url":"https://github.com/krsbx/prisma-repo","tags":["javascript","typescript","prisma","repository","cli"],"install":[{"cmd":"npm install prisma-repo","lang":"bash","label":"npm"},{"cmd":"yarn add prisma-repo","lang":"bash","label":"yarn"},{"cmd":"pnpm add prisma-repo","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Prisma ORM is required for generated repositories to work","package":"prisma","optional":false}],"imports":[{"note":"TypeScript type import for config file.","wrong":null,"symbol":"PrismaRepoConfig","correct":"import { PrismaRepoConfig } from 'prisma-repo'"},{"note":"BaseRepository is generated by the CLI into the configured repository path.","wrong":"Cannot import from a generated file; BaseRepository is generated inside the project.","symbol":"BaseRepository","correct":"import { BaseRepository } from 'prisma-repo'"},{"note":"CLI usage, not a code import. Generates repository files. Use via npx or as devDependency.","wrong":null,"symbol":"prisma-repo (CLI)","correct":"npx prisma-repo --repositories"}],"quickstart":{"code":"npm install -D prisma-repo\nnpx prisma-repo --repositories\n# Generated files in src/repository/\n# Then in your service:\nimport { PrismaClient } from '@prisma/client';\nimport { UserRepository } from './repository/user.repository';\nconst prisma = new PrismaClient();\nconst userRepo = UserRepository(prisma);\nconst user = await userRepo.findUnique({ where: { id: 1 } });\nconsole.log(user);\n","lang":"typescript","description":"Install prisma-repo, generate repositories, and use the generated UserRepository with PrismaClient."},"warnings":[{"fix":"Use @krsbx/prisma-repo instead. Migrate your config and imports.","message":"Package renamed to @krsbx/prisma-repo. The original package is no longer maintained.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Follow the new abstract class pattern with static methods. Refer to the README for migration.","message":"Breaking change from function-based to class-based API in v0.3.0. Generated code changed significantly.","severity":"breaking","affected_versions":">=0.3.0 <0.3.0"},{"fix":"Avoid extendExpress or restrict include/exclude arrays to only model names that do not conflict.","message":"extendExpress option can conflict with other Express middleware like multer (reserved 'file'/'files'). Also conflicts with Prisma's 'include' option types.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"search_vec":"'abstract':35 'base':36 'class':10 'cli':4,74 'configur':41 'conflict':52 'creat':34 'deprec':59 'express':49 'extens':51 'favor':61 'file':44 'generat':7 'javascript':70 'js':46 'json':45 'krsbx/prisma-repo':29 'last':18 'method':40 'model':14 'move':27,69 'multer/file':54 'origin':22 'orm':13 'packag':23,56 'pattern':9 'prisma':2,12,72 'prisma-repo':1 'renam':64 'repo':3 'repositori':8,37,73 'repository.setting':43 'request':50 'see':30 'sinc':68 'static':39 'successor':65 'support':48 'tool':5,33 'ts':47 'typescript':71 'updat':67 'v0.3.12':15 'version':19 'via':42 'warn':31","created_at":"2026-06-05T17:01:04.976535+00:00","updated_at":"2026-06-05T17:01:04.976535+00:00","problems":[{"fix":"Run 'npm install -D prisma-repo' to install it as a devDependency.","cause":"Package is not installed in node_modules","error":"Cannot find module 'prisma-repo'"},{"fix":"Create the directory before running the CLI, or change repositoryPath to an existing directory.","cause":"Configured path in repository.setting does not exist","error":"The 'repositoryPath' directory does not exist"},{"fix":"Ensure repository.setting.json/js/ts exists in the project root with proper format.","cause":"Invalid or missing config file","error":"Cannot read property 'repositoryPath' of undefined"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/krsbx/prisma-repo#readme","github":"https://github.com/krsbx/prisma-repo","docs":null,"changelog":null,"pypi":null,"npm":"prisma-repo","openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-05","next_check":"2026-09-03","install_tag":null}}