This repository uses CFlair-Counter to collect anonymous view stats and expose a badge for project usage.
https://counter.vkrishna04.me
POST /api/views/:projectName- Increment view count for a project.GET /api/views/:projectName- Fetch counts for a project.GET /api/views/:projectName/badge- Render an SVG badge.GET /api/stats- Global statistics across projects.POST /api/admin/stats- Admin statistics endpoint.GET /health- Health check.
- Add the badge or counter call in your project.
- Keep the project name stable, for example
sign-language-detector. - Use the POST endpoint on page load or other meaningful events.
- Keep telemetry non-blocking so it never affects the app.
fetch("https://counter.vkrishna04.me/api/views/sign-language-detector", {
method: "POST",
});DISABLE_ANONYMOUS_TELEMETRY- Preferred toggle to disable telemetry.DISABLE_ANONYMOUS_TELMETRY- Legacy compatibility toggle.TELEMETRY_COUNTER_BASE_URL- Counter base URL.TELEMETRY_PROJECT_NAME- Project key sent to the counter.
- Keep admin credentials out of source control.
- Telemetry should remain anonymous.
- UI behavior must not depend on telemetry success.