{"id":16371707,"url":"https://github.com/inaiat/fastify-sample","last_synced_at":"2026-01-31T19:33:19.610Z","repository":{"id":45694566,"uuid":"438459065","full_name":"inaiat/fastify-sample","owner":"inaiat","description":"Fastify example with funcional and typesafe approach","archived":false,"fork":false,"pushed_at":"2022-08-15T13:47:47.000Z","size":870,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-01T06:07:07.198Z","etag":null,"topics":["ava","awilix","dependency-injection","esm","esmodules","fastify","fastify-plugin","functional-programming","mongodb","mongodb-driver","mongodb-native-driver","neverthrow","papr","plugins","test"],"latest_commit_sha":null,"homepage":"","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/inaiat.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}},"created_at":"2021-12-15T01:43:13.000Z","updated_at":"2024-11-23T09:39:07.000Z","dependencies_parsed_at":"2022-07-15T11:18:48.081Z","dependency_job_id":null,"html_url":"https://github.com/inaiat/fastify-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/inaiat/fastify-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaiat%2Ffastify-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaiat%2Ffastify-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaiat%2Ffastify-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaiat%2Ffastify-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inaiat","download_url":"https://codeload.github.com/inaiat/fastify-sample/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaiat%2Ffastify-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273688271,"owners_count":25150300,"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-09-04T02:00:08.968Z","response_time":61,"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":["ava","awilix","dependency-injection","esm","esmodules","fastify","fastify-plugin","functional-programming","mongodb","mongodb-driver","mongodb-native-driver","neverthrow","papr","plugins","test"],"created_at":"2024-10-11T03:09:21.707Z","updated_at":"2026-01-31T19:33:14.561Z","avatar_url":"https://github.com/inaiat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastify-sample\n| ![Statements](https://img.shields.io/badge/statements-76.38%25-red.svg?style=flat) | ![Branches](https://img.shields.io/badge/branches-84%25-yellow.svg?style=flat) | ![Functions](https://img.shields.io/badge/functions-68.75%25-red.svg?style=flat) | ![Lines](https://img.shields.io/badge/lines-76.38%25-red.svg?style=flat) | ![jscpd](https://raw.githubusercontent.com/inaiat/fastify-sample/main/assets/jscpd-badge.svg?sanitize=true)\n\n**Fastify version 4 sample with functional approach**\n\nThis project is a small but feature complete application build with Fastify, native mongodb driver and papr (typesafe models for mongodb),\nand it aims to show functional approach, dependency injection and type safe programming.\n\n* Update 2022-07-14 -\u003e This project is pure native ESM! :D\n\nUseful links of libs that we use on this project:\n\n1. NeverThrow (avoid throwing exceptions) -\u003e https://github.com/supermacro/neverthrow\n1. Papr (Typesafe schemas for mongodb ) -\u003e https://plexinc.github.io/papr/#/\n1. Awilix (Dependency Inejection) -\u003e https://github.com/jeffijoe/awilix\n1. Ava (Test Runner) -\u003e https://github.com/avajs/ava\n1. Fastify -\u003e https://github.com/fastify/fastify\n\n\nHow to run:\n\n```\ngit clone git@github.com:inaiat/fastify-sample.git\ncd fastify-sample\ndocker run -d -p 27017:27017 mongo\nyarn dev\n```\n\nIf everything went well you can play here -\u003e http://localhost:3000/docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaiat%2Ffastify-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finaiat%2Ffastify-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaiat%2Ffastify-sample/lists"}