Contributions, issues and feature requests are welcome.
- Fork the repository
- Clone your fork:
git clone https://github.com/<your-username>/api-analytics - Create a feature branch:
git checkout -b my-feature - Make your changes
- Commit:
git commit -m 'Add my feature' - Push:
git push origin my-feature - Open a Pull Request
api-analytics/
├── analytics/ # Middleware packages (Python, Node.js, Go, Rust, Ruby, PHP, C#)
├── dashboard/ # SvelteKit web dashboard
├── server/ # Go server and self-hosting guide
Each middleware package lives under analytics/<language>/<framework>. When adding or modifying a package:
- Follow the conventions of existing packages in the same language
- Ensure the middleware logs: method, path, user agent, IP address, status code, response time, hostname, and framework name
- Include a
README.mdwith installation and usage instructions - Test against the target framework before submitting
The dashboard is built with SvelteKit 2 and Svelte 5. To run it locally:
cd dashboard
npm install
npm run devPlease use the issue tracker and fill in the appropriate template. Include as much detail as possible - framework, package version, and steps to reproduce.
For general questions, open a GitHub Discussion rather than an issue.