{"id":15770731,"url":"https://github.com/c-ehrlich/prisma-fastify-api","last_synced_at":"2025-09-03T20:38:09.880Z","repository":{"id":134327083,"uuid":"471019444","full_name":"c-ehrlich/prisma-fastify-api","owner":"c-ehrlich","description":"testing Fastify and Prisma","archived":false,"fork":false,"pushed_at":"2022-03-17T15:47:30.000Z","size":86,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-05T14:43:42.682Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-ehrlich.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-17T14:16:22.000Z","updated_at":"2022-03-17T14:51:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"f61be981-25d7-449b-97d1-91a574ce2b86","html_url":"https://github.com/c-ehrlich/prisma-fastify-api","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/c-ehrlich%2Fprisma-fastify-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fprisma-fastify-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fprisma-fastify-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fprisma-fastify-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-ehrlich","download_url":"https://codeload.github.com/c-ehrlich/prisma-fastify-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465220,"owners_count":20781919,"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-10-04T14:43:46.134Z","updated_at":"2025-03-31T11:44:27.911Z","avatar_url":"https://github.com/c-ehrlich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prisma Fastify API\n\n## What is this?\nA basic CRUD API created with Postgres/Prisma and Fastify, plus Zod and Fastify-Zod for schema validation and automatic swagger docs.\n\n## What is the purpose?\nI hadn't used Prisma or Fastify before so I wanted to try both.\n\n## What are the conclusions?\nPrisma is great, and other than the benefit of easily hosting databases for free on MongoDB Atlas I don't think there are many situations where I wouldn't use Prisma/Postgres over Mongoose/Mongo.\n\nFastify is also quite nice, with some great benefits over Express such as:\n- Much easier to define types for Request and Response/Reply\n- Better Zod integration\n- Create swagger docs for free with fastify-zod\n- Significantly better performance (about 4x)\n\nThe main downside of Fastify is that it has WAY fewer users than Express, which means fewer people who will have run into the same bugs, so I think for many types of projects I would continue to use Express for the time being.\n\nAlso for Next.js projects, it is currently possible to [use Next.js SSR with Fastify](https://github.com/fastify/fastify-nextjs), but not to replace Next.js's internal Express server with Fastify.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-ehrlich%2Fprisma-fastify-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-ehrlich%2Fprisma-fastify-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-ehrlich%2Fprisma-fastify-api/lists"}