{"id":26583137,"url":"https://github.com/maximemoreillon/auto-crud","last_synced_at":"2025-07-27T19:11:18.084Z","repository":{"id":87273644,"uuid":"573670228","full_name":"maximemoreillon/auto-crud","owner":"maximemoreillon","description":"An express middleware that generates routes and CRUD controllers for every table defined in a prisma schema.","archived":false,"fork":false,"pushed_at":"2025-03-21T03:13:02.000Z","size":786,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-20T03:38:30.640Z","etag":null,"topics":["express","expressjs","nodejs","prisma"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maximemoreillon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-03T03:40:51.000Z","updated_at":"2025-06-15T08:54:33.000Z","dependencies_parsed_at":"2024-03-10T01:26:21.569Z","dependency_job_id":"9d349175-2c4a-4766-97f2-a9307300db67","html_url":"https://github.com/maximemoreillon/auto-crud","commit_stats":null,"previous_names":["maximemoreillon/auto-crud"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/maximemoreillon/auto-crud","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fauto-crud","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fauto-crud/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fauto-crud/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fauto-crud/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maximemoreillon","download_url":"https://codeload.github.com/maximemoreillon/auto-crud/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maximemoreillon%2Fauto-crud/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267408917,"owners_count":24082528,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["express","expressjs","nodejs","prisma"],"created_at":"2025-03-23T08:28:34.310Z","updated_at":"2025-07-27T19:11:18.064Z","avatar_url":"https://github.com/maximemoreillon.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Auto CRUD\n\n[![coverage report](https://gitlab.com/moreillon_ci/moreillon_npm/prisma-auto-crud/badges/master/coverage.svg)](https://gitlab.com/moreillon_ci/moreillon_npm/prisma-auto-crud/-/commits/master)\n\nAt its core, Auto CRUD is an express middleware that generates routes and CRUD controllers for every table defined in a Prisma schema.\nAs such, it can be integrated in an existing Express app to kickstart a project involving CRUD.\nOn the other hand, if the functionalities of Auto CRUD can be used as is, it is also provided as a Docker container.\n\n## Usage as a module\n\n### Install\n\nThis module can be installed using NPM:\n\n```\nnpm install @moreillon/prisma-auto-crud\n```\n\n### Usage\n\nThis module is intended to be used as an Express middleware.\n\n```typescript\nimport express from \"express\"\nimport { PrismaClient } from \"@prisma/client\"\nimport autoCrud from \"@moreillon/prisma-auto-crud\"\n\nconst prismaClient = new PrismaClient()\n\nconst { PORT = 7070 } = process.env\n\nconst app = express()\napp.use(express.json())\n\napp.use(autoCrud(prismaClient))\n\napp.listen(PORT, () =\u003e {\n  console.log(`[Express] Listening on port ${PORT}`)\n})\n```\n\n## Usage as a Docker container\n\nIf Auto CRUD does not need any additional customization, it can be deployed as a Docker container.\n\n```bash\ndocker run \\\n-e DATABASE_URL=\"postgresql://user:pass@localhost:5432/db?schema=public\" \\\n-p 8080:80 \\\nmoreillon/auto-crud\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximemoreillon%2Fauto-crud","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximemoreillon%2Fauto-crud","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximemoreillon%2Fauto-crud/lists"}