{"id":20111151,"url":"https://github.com/devtography/typescript-fastify-backend-boilerplate","last_synced_at":"2026-05-04T17:35:13.762Z","repository":{"id":98488991,"uuid":"373492989","full_name":"Devtography/typescript-fastify-backend-boilerplate","owner":"Devtography","description":"A boilerplate for Node.js Fastify apps with TypeScript and test/build pipeline. Tailored for backend services.","archived":false,"fork":false,"pushed_at":"2021-07-11T22:31:00.000Z","size":367,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T18:50:32.953Z","etag":null,"topics":["backend","boilerplate","fastify","nodejs","typescript"],"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/Devtography.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["iamWing"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://paypal.me/iamWing0w0"]}},"created_at":"2021-06-03T12:05:51.000Z","updated_at":"2025-01-19T11:29:52.000Z","dependencies_parsed_at":"2023-06-02T01:15:33.543Z","dependency_job_id":null,"html_url":"https://github.com/Devtography/typescript-fastify-backend-boilerplate","commit_stats":null,"previous_names":[],"tags_count":1,"template":true,"template_full_name":null,"purl":"pkg:github/Devtography/typescript-fastify-backend-boilerplate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devtography%2Ftypescript-fastify-backend-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devtography%2Ftypescript-fastify-backend-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devtography%2Ftypescript-fastify-backend-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devtography%2Ftypescript-fastify-backend-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devtography","download_url":"https://codeload.github.com/Devtography/typescript-fastify-backend-boilerplate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devtography%2Ftypescript-fastify-backend-boilerplate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32618058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["backend","boilerplate","fastify","nodejs","typescript"],"created_at":"2024-11-13T18:14:38.288Z","updated_at":"2026-05-04T17:35:13.757Z","avatar_url":"https://github.com/Devtography.png","language":"TypeScript","funding_links":["https://github.com/sponsors/iamWing","https://paypal.me/iamWing0w0"],"categories":[],"sub_categories":[],"readme":"# TypeScript Fastify Backend Boilerplate\n\nOpinionated TypeScript based backend service boilerplate with Fastify.\n\n## Getting started\n```sh\n# clone this repo\ngit clone https://github.com/Devtography/typescript-fastify-backend-boilerplate.git\n```\nOr generate a new repo on GitHub using this template [here](https://github.com/Devtography/typescript-fastify-backend-boilerplate/generate)\n\n```json\n// edit the following fields in package.json for your own project\n{\n  \"name\": your-project-name,\n  \"version\": whatever-you-like,\n  \"description\": your-own-description,\n  \"author\": who's-the-author?,\n  \"license\": if-you-don't-want-to-use-MIT,\n  \"repository\": type-and-link-of-your-repo,\n  \"keywords\": keywords-of-your-project,\n  \"bugs\": issue-page-of-your-repo,\n  \"homepage\": homepage-of-your-repo\n}\n```\n\nThen install all the `node_modules` needed by executing the following command:\n```sh\ncd folder-containing-the-cloned-boilerplate\nnpm install --also-dev\n```\n\nManually create folders `src/models` \u0026 `src/utils` (folder structure shown\nbelow) as Git doesn't include empty folders.\n\nThat's it. You're ready to rock.\n\n## Usage\nThere're currently 4 NPM commands preconfigured in `package.json`, they are:\n\n`npm run build` - Removes everything from `dist/`, then compile your `.ts` files\ninto `JavaScript` with `tsc`, and use `babel` to correct the module require\npaths.\n\n`npm run debug` - runs the `fastify` server with `ts-node-dev` with `NODE_ENV`\nset as `development` for debug. The `fastify` server will respawn on file saved\nunder this mode.\n\n`npm run test` - runs your `Jest` tests under `tests/` with coverage reports.\n\n`npm run watch-test` - same as `npm run test` but execute on file saved\nautomatically.\n\nFor `vscode` users, 2 launch configs - `Debug` \u0026 `Jest tests` are included in\nthis boilerplate. Use those launch configs to run your app / `Jest` tests if\nyou need the breakpoints to work.\n\n## Folder structure\n```\ntypescript-fastify-backend-boilerplate/\n| - .vscode/\n| | - launch.json               //- Preconfigured vscode debug settings\n| - node_modules/\n| - dist/                       //- Generated by `tsc` automatically\n| - src/\n| | - apis/                     //- Folder which `fastify-autoload` looks for\n| | | - {routes}/               //- Create folders for your routes\n| | | - index.ts                //- APIs on `/`\n| | - models/\n| | - utils/\n| | - app.ts                    //- Module where Fastify is initialled\n| | - server.ts                 //- Entry point\n| - tests/                      //- Unit tests\n| | - apis/\n| | | - index.test.ts\n| | | - {routes}.test.ts\n| | - app.test.ts\n| | - tsconfig.json             //- tsconfig to stop TypeScript \u0026 ESLint complaining\n| - .babelrc                    //- To correct import paths in `tsc` compiled files\n| - .eslintignore\n| - .eslintrc\n| - .gitignore\n| - jest.config.js\n| - LICENSE\n| - package-lock.json\n| - package.json\n| - README.md\n| - tsconfig.json\n```\n\n## Author\n[Wing Chau](https://github.com/iamWing) [@Devtography]\n\n## Support the project\nContributions via pull requests are welcome and encouraged. If there's anything\nyou consider essential that should be included in this boilerplate, please don't\nhesitate to implement yourself and make a pull request :)\n\nSame as the other open sources projects in [@Devtography], I maintain \u0026 further\ndevelop this boilerplate with my free time. If you found my work useful and\nwanna support me keep on doing all these, please consider\n[donate/sponsor](https://github.com/sponsors/iamWing) me.\n\n## License\nTypeScript Fastify Backend Boilerplate is open source software \n[licensed as MIT](LICENSE).\n\n[@Devtography]: https://github.com/Devtography\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtography%2Ftypescript-fastify-backend-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevtography%2Ftypescript-fastify-backend-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevtography%2Ftypescript-fastify-backend-boilerplate/lists"}