{"library":"router-http","type":"library","category":null,"description":"router-http is a lightweight (1.3 kB min+gzipped) and performant HTTP router for Node.js, currently at stable version 2.0.6. It aims to provide an Express-like middleware API while offering significantly better and more predictable performance than Express's regex-based router. Unlike Express, router-http utilizes a trie-based routing algorithm, specifically find-my-way, which guarantees near O(1) lookup time regardless of the number of registered routes. This makes it particularly suitable for applications with a large number of routes where consistent performance is critical. The package is actively maintained with frequent dependency updates and recent major version releases, supporting Node.js version 18 and above.","language":"javascript","status":"active","version":"2.0.6","tags":["javascript","app","http","middleware","pathname","rest","route","router"],"install":[{"cmd":"npm install router-http","imports":["const createRouter = require('router-http')","router.get('/', (req, res) => { /* ... */ })","router.use((req, res, next) => { /* ... */ next() })"]},{"cmd":"yarn add router-http","imports":[]},{"cmd":"pnpm add router-http","imports":[]}],"homepage":null,"github":"https://github.com/Kikobeats/router-http","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/router-http","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/router-http/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Tue Jul 21","install_tag":null}}