{"id":15663286,"url":"https://github.com/melroy89/fastify-node-ts-swc-demo","last_synced_at":"2026-05-07T19:07:58.574Z","repository":{"id":227907215,"uuid":"772691504","full_name":"melroy89/fastify-node-ts-swc-demo","owner":"melroy89","description":"TypeScript + Fastify + ES modules + Node-TS demo repo","archived":false,"fork":false,"pushed_at":"2024-10-19T10:10:43.000Z","size":193,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T19:11:50.756Z","etag":null,"topics":["es6","es6-modules","esm","esmodules","fastify","fastify-autoload","node-ts","nodejs","swc","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/melroy89.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":"2024-03-15T17:38:07.000Z","updated_at":"2024-10-22T14:10:14.000Z","dependencies_parsed_at":"2024-11-09T14:22:23.462Z","dependency_job_id":"b4e7ec00-a2d0-4caf-8fa3-c37ee62305a5","html_url":"https://github.com/melroy89/fastify-node-ts-swc-demo","commit_stats":null,"previous_names":["melroy89/fastify-node-ts-issue"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melroy89%2Ffastify-node-ts-swc-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melroy89%2Ffastify-node-ts-swc-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melroy89%2Ffastify-node-ts-swc-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/melroy89%2Ffastify-node-ts-swc-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/melroy89","download_url":"https://codeload.github.com/melroy89/fastify-node-ts-swc-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240292366,"owners_count":19778311,"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":["es6","es6-modules","esm","esmodules","fastify","fastify-autoload","node-ts","nodejs","swc","typescript"],"created_at":"2024-10-03T13:36:21.008Z","updated_at":"2026-05-07T19:07:53.537Z","avatar_url":"https://github.com/melroy89.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript + Fastify ESM + Node-TS Demo\n\nWorking [TypeScript](https://www.typescriptlang.org/) + [SWC](https://swc.rs/) + [Fastify](https://fastify.dev/) + ES Modules + [Node-TS](https://www.npmjs.com/ts-node) demo. See workaround below.\n\nFirst install deps via: `npm install`\n\nTry to excute: `npm run dev` (this will use Node-TS + SWC)\n\nOr run: `npm start`\n\nFinally, go to: http://localhost:3000\n\nA fast build using [SWC](https://swc.rs/), run: `npm run build`. If you want to use TSC compiler use: `npm run build:prod`, which does validate types.\n\n---\n\n_WORKAROUND:_ We currently apply a workaround by setting `VITEST=true` to force ESM in [Fastify-autoloader](https://github.com/fastify/fastify-autoload). So `npm run dev` is using:\n\n```sh\nFASTIFY_AUTOLOAD_TYPESCRIPT=1 VITEST=true node --no-warnings=ExperimentalWarning --loader ts-node/esm src/index.ts\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelroy89%2Ffastify-node-ts-swc-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmelroy89%2Ffastify-node-ts-swc-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmelroy89%2Ffastify-node-ts-swc-demo/lists"}