vtemian/django-server-timing
Django middleware and utils that add `Server-Timing` header
What's novel
Django middleware and utils that add `Server-Timing` header
Code Analysis
0 files read · 1 roundsA Django middleware that automatically generates Server-Timing HTTP headers by instrumenting view rendering and database query execution times.
Strengths
Excellent code quality with clear separation of concerns, comprehensive test coverage including edge cases like disabled middleware, and a well-structured project using modern tooling (Hatch, ruff). The implementation is robust, handles errors gracefully, and provides optional integration with Django Silk without breaking existing setups.
Weaknesses
The novelty is limited as Server-Timing headers are a standard feature in many web frameworks; the core logic is straightforward instrumentation rather than a novel algorithm. Some advanced use cases (e.g., custom metric tagging) may require manual extension beyond the provided middleware.
Score Breakdown
Signal breakdown
Innovation
Craft
Traction
Scope
Evidence
Commits
13
Contributors
4
Files
38
Active weeks
3
Repository
Language
Python
Stars
45
Forks
4
License
GPL-3.0