Gathering detailed insights and metrics for itty-router
Gathering detailed insights and metrics for itty-router
Gathering detailed insights and metrics for itty-router
Gathering detailed insights and metrics for itty-router
npm install itty-router
99.3
Supply Chain
88.3
Quality
87.7
Maintenance
100
Vulnerability
100
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
1,804 Stars
707 Commits
79 Forks
14 Watching
37 Branches
31 Contributors
Updated on 28 Nov 2024
TypeScript (97.85%)
JavaScript (2.15%)
Cumulative downloads
Total Downloads
Last day
-8.4%
10,645
Compared to previous day
Last week
4.7%
62,795
Compared to previous week
Last month
9.4%
255,193
Compared to previous month
Last year
49.3%
2,010,123
Compared to previous year
26
An ultra-tiny API microrouter, for use when size matters (e.g. Cloudflare Workers).
1import { AutoRouter } from 'itty-router' // ~1kB 2 3const router = AutoRouter() 4 5router 6 .get('/hello/:name', ({ name }) => `Hello, ${name}!`) 7 .get('/json', () => [1,2,3]) 8 .get('/promises', () => Promise.resolve('foo')) 9 10export default router 11 12// that's it ^-^
Complete API documentation is available on itty.dev, or join our Discord channel to chat with community members for quick help!
Have a question? Suggestion? Idea? Complaint? Want to send a gift basket? Join us on Discord!
As the community and contributor list has grown (and thus an individualized list here is no longer easily maintainable), I'd like to thank each and every one of you for making itty far greater than its humble origins. The robustness you see today, the careful consideration of every byte spent on features, the API choices, the code-golfing itself... are all thanks to the efforts and feedback from the community. I'd especially like to thank the core contributors and PR-authors, as well as the fantastic folks on the itty Discord group, for their tireless work refining this little beast and answering community questions.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
7 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 2/27 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More