{"id":13836130,"url":"https://github.com/PavelPolyakov/fastify-blipp","last_synced_at":"2025-07-10T13:31:43.774Z","repository":{"id":28466871,"uuid":"118134896","full_name":"PavelPolyakov/fastify-blipp","owner":"PavelPolyakov","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-14T12:37:49.000Z","size":1160,"stargazers_count":33,"open_issues_count":8,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T23:47:13.752Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/PavelPolyakov.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-01-19T14:27:55.000Z","updated_at":"2025-05-14T18:15:53.000Z","dependencies_parsed_at":"2024-04-12T11:01:52.829Z","dependency_job_id":null,"html_url":"https://github.com/PavelPolyakov/fastify-blipp","commit_stats":{"total_commits":40,"total_committers":7,"mean_commits":5.714285714285714,"dds":"0.42500000000000004","last_synced_commit":"197425afc332872d1851fa52032641ff7ee02e25"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/PavelPolyakov/fastify-blipp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PavelPolyakov%2Ffastify-blipp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PavelPolyakov%2Ffastify-blipp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PavelPolyakov%2Ffastify-blipp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PavelPolyakov%2Ffastify-blipp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PavelPolyakov","download_url":"https://codeload.github.com/PavelPolyakov/fastify-blipp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PavelPolyakov%2Ffastify-blipp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264585372,"owners_count":23632646,"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-08-04T15:00:36.336Z","updated_at":"2025-07-10T13:31:43.382Z","avatar_url":"https://github.com/PavelPolyakov.png","language":"JavaScript","readme":"`fastify-blipp` prints your routes to the console. So each time your server starts, you know which endpoints are available.\n\n(inspired by [blipp](https://github.com/danielb2/blipp) hapijs plugin)\n\n## install\n```\nnpm i fastify-blipp\n```\n\n## usage\nIt is important to register the plugin as soon as possible, so it starts to listen for the new routes.\n\n```javascript\nimport { fastify as fastifyInstance} from \"fastify\";\nimport blippPlugin from \"fastify-blipp\";\n\nconst fastify = fastifyInstance();\n\n// register it as early as possible\nfastify.register(blippPlugin);\n//or if you wan't custom log function\n// fastify.register(require(\"fastify-blipp\"), {blippLog: (msg) =\u003e console.log(msg)});\n\nfastify.register(\n    (fastify, {}, done) =\u003e {\n        fastify.get(\"/hello/:username\", async (req, reply) =\u003e ({\n            greeting: `Hello, ${req.params.username}`\n          }));\n          fastify.get(\"/hello/:username/CAPS\", async (req, reply) =\u003e ({\n            greeting: `Hello, ${req.params.username.toUpperCase()}`\n          }));\n          fastify.post(\"/hello\", async (req, reply) =\u003e ({\n            greeting: `Hello, ${req.body.username}`\n          }));\n          fastify.get(\n            \"/example/at/:hour(^\\\\d{2})h:minute(^\\\\d{2})m\",\n            async (req, reply) =\u003e ({\n              hour: req.params.hour,\n              minute: req.params.minute\n            })\n          );\n        done();\n    }\n)\n\nconst start = async () =\u003e {\n  try {\n    await fastify.listen({port:3000});\n\n    fastify.blipp();\n\n    console.log(`server listening on ${fastify.server.address().port}`);\n  } catch (err) {\n    console.error(err);\n    process.exit(1);\n  }\n};\n\nstart();\n```\n\n## result\n\n![image](var/images/output_example.png)\n\n","funding_links":[],"categories":["\u003ch2 align=\"center\"\u003eAwesome Fastify\u003c/h2\u003e"],"sub_categories":["\u003ch2 align=\"center\"\u003eEcosystem\u003c/h2\u003e"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPavelPolyakov%2Ffastify-blipp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPavelPolyakov%2Ffastify-blipp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPavelPolyakov%2Ffastify-blipp/lists"}