{"id":23461182,"url":"https://github.com/hightemp/wapp_simple_stats_rust","last_synced_at":"2026-05-04T05:31:41.883Z","repository":{"id":145892475,"uuid":"597483463","full_name":"hightemp/wapp_simple_stats_rust","owner":"hightemp","description":"CGI счетчик посетителей на rust в базу sqlite3. ","archived":false,"fork":false,"pushed_at":"2023-08-12T07:49:47.000Z","size":203,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T00:42:55.025Z","etag":null,"topics":["counter","http-server","rust","sqlite"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hightemp.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2023-02-04T17:35:49.000Z","updated_at":"2023-03-08T01:42:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"fa6569df-671f-4478-b53d-18df7e7c789d","html_url":"https://github.com/hightemp/wapp_simple_stats_rust","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/hightemp%2Fwapp_simple_stats_rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hightemp%2Fwapp_simple_stats_rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hightemp%2Fwapp_simple_stats_rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hightemp%2Fwapp_simple_stats_rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hightemp","download_url":"https://codeload.github.com/hightemp/wapp_simple_stats_rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248514324,"owners_count":21116930,"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":["counter","http-server","rust","sqlite"],"created_at":"2024-12-24T07:29:44.194Z","updated_at":"2026-05-04T05:31:41.855Z","avatar_url":"https://github.com/hightemp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wapp_simple_stats_rust\n\nLightweight web counter written in Rust. It stores hits in SQLite and exposes:\n- a badge endpoint you can embed anywhere to increment and display a named counter\n- a protected statistics dashboard with charts and tables\n\nUI is rendered with Tera templates and styled via bootstrap.css (CDN). Charts are rendered with Chart.js (CDN). Supports automatic light/dark theme selection.\n\n## Features\n\n- Named counters via `/counter/\u003cpath\u003e` (returns an SVG badge)\n- Statistics dashboard:\n  - Index page: grouped counts by path\n  - Path page: daily counts for last 30 entries + last 10 raw visits\n- Basic Auth (configurable)\n- SQLite storage (file on disk)\n- Auto light/dark theme, responsive layout\n\n## Endpoints\n\n- `GET /counter/\u003cpath\u003e`\n  - Increments counter for `\u003cpath\u003e` and returns a small SVG badge\n  - Example: `\u003cimg src=\"/counter/example\" alt=\"statistics badge\" /\u003e`\n- `GET /statistics`\n  - Protected by Basic Auth (if enabled)\n  - Summary table of all paths\n- `GET /statistics/__all__`\n  - Protected by Basic Auth (if enabled)\n  - Daily counts (last 30 rows) aggregated for all paths + last 10 recent visits\n- `GET /statistics/\u003cpath\u003e`\n  - Protected by Basic Auth (if enabled)\n  - Daily counts (last 30 rows) for specific path + last 10 recent visits\n- `GET /statistics_self_full_json`\n  - Full dataset as JSON (not protected by default)\n  - Useful for tooling/integrations\n\n## Usage Examples\n\nEmbed a counter badge:\n```html\n\u003cimg src=\"https://your-host/counter/my-page\" alt=\"statistics\" /\u003e\n```\n\n## Screenshots\n\n![](images/2025-09-27_13-30.png)\n\n## License\n\nMIT\n\n![](https://asdertasd.site/counter/wapp_simple_stats_rust)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhightemp%2Fwapp_simple_stats_rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhightemp%2Fwapp_simple_stats_rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhightemp%2Fwapp_simple_stats_rust/lists"}