{"id":14969134,"url":"https://github.com/fastify/fastify-snippet","last_synced_at":"2025-10-27T03:04:45.477Z","repository":{"id":48960128,"uuid":"358985658","full_name":"fastify/fastify-snippet","owner":"fastify","description":"Some VSCode snippet about Fastify","archived":false,"fork":false,"pushed_at":"2024-01-15T08:12:37.000Z","size":30,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":17,"default_branch":"main","last_synced_at":"2024-09-28T11:20:49.559Z","etag":null,"topics":["fastify","fastify-tool","snippets","vscode-snippets"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/fastify.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},"funding":{"open_collective":"fastify"}},"created_at":"2021-04-17T21:26:29.000Z","updated_at":"2024-04-17T20:02:46.000Z","dependencies_parsed_at":"2023-02-12T14:15:43.678Z","dependency_job_id":"5a911d1a-78b8-40f1-8554-a165d0fd3354","html_url":"https://github.com/fastify/fastify-snippet","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/fastify%2Ffastify-snippet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Ffastify-snippet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Ffastify-snippet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Ffastify-snippet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastify","download_url":"https://codeload.github.com/fastify/fastify-snippet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869246,"owners_count":16555572,"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":["fastify","fastify-tool","snippets","vscode-snippets"],"created_at":"2024-09-24T13:41:11.456Z","updated_at":"2025-10-19T09:32:14.647Z","avatar_url":"https://github.com/fastify.png","language":"JavaScript","readme":"# fastify-snippets\n\nThe official [Fastify](https://fastify.dev/) [VSCode](https://code.visualstudio.com/) snippets! \n\nInstall it from the [VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=fastify.fastify-snippets)!\n\nFor more information, take a look a the [VSCode documentation](https://code.visualstudio.com/docs/editor/userdefinedsnippets)\n\n## Snippet list\n\n\u003c!-- ##TOC-BUILDER## --\u003e\nSnippet|Description|Type\n---|---|---\nfastify hello server|Create an hello world server|ffhello\nfastify register|Add an empty plugin|ffregister, ffplugin\nfastify print routes|Print to stdout the routes tree|ffprintroutes\nfastify error handler|Add a custom error handler|fferrorhandler\nfastify decorate server|Add a server decorator|ffdecorateserver\nfastify decorate request|Add a request decorator|ffdecoraterequest\nfastify decorate reply|Add a reply decorator|ffdecoratereply\nfastify hook onRequest|Add an instance fastify onRequest hook|ffonrequest, hookonrequest\nfastify hook preParsing|Add an instance fastify preParsing hook|ffpreparsing, hookpreparsing\nfastify hook preValidation|Add an instance fastify preValidation hook|ffprevalidation, hookprevalidation\nfastify hook preHandler|Add an instance fastify preHandler hook|ffprehandler, hookprehandler\nfastify hook preSerialization|Add an instance fastify preSerialization hook|ffpreserialization, hookpreserialization\nfastify hook onError|Add an instance fastify onError hook|ffonerror, hookonerror\nfastify hook onRequestAbort|Add an instance fastify onRequestAbort hook|ffonrequestabort, hookonrequestabort\nfastify hook onSend|Add an instance fastify onSend hook|ffonsend, hookonsend\nfastify hook onResponse|Add an instance fastify onResponse hook|ffonresponse, hookonresponse\nfastify hook onTimeout|Add an instance fastify onTimeout hook|ffontimeout, hookontimeout\nfastify application hook onReady|Add the fastify onReady application hook|ffonready, hookonready\nfastify application hook onListen|Add the fastify onListen application hook|ffonlisten, hookonlisten\nfastify application hook preClose|Add the fastify preClose application hook|ffpreclose, hookpreclose\nfastify application hook onClose|Add the fastify onClose application hook|ffonclose, hookonclose\nfastify application hook onRoute|Add the fastify onRoute application hook|ffonroute, hookonroute\nfastify application hook onRegister|Add the fastify onRegister application hook|ffonregister, hookonregister\nfastify add schema|Add a shared JSON schema to fastify|ffaddschema, ffsharedschema, ffjsonschema, ffschema\nfastify not found handler|Add the default 404 not found handler|ffnotfound, ff404\n\u003c!-- ##TOC-BUILDER-END## --\u003e\n\n## Contribute\n\nFeel free to open an issue if you have suggestion o new ideas to improve this snippet!\n\n\n## How to test\n\nFrom VSCODE you can run the `Extension` launcher to test your snippet inside an headless VSCODE instance.\n\n## How to release\n\nFirst, you must be added into the [Fastify publisher](https://marketplace.visualstudio.com/manage/publishers/fastify) to complete succesfully these steps.\n\n- Access to the [Fastify org on Azure](https://dev.azure.com/fastify/)\n- Generate a [personal access token](https://code.visualstudio.com/api/working-with-extensions/publishing-extension#get-a-personal-access-token) (_check the `show all scope` small button-link_)\n- Run `npm run vscode:login`\n- Manually bump the version in the `package.json`\n- Run `npm run vscode:pack`\n- Run `npm run vscode:publish`\n- Commit\u0026Push the new version to the `main` branch\n","funding_links":["https://opencollective.com/fastify"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastify%2Ffastify-snippet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastify%2Ffastify-snippet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastify%2Ffastify-snippet/lists"}