{"_id":"@ankit-1204/sylph","name":"@ankit-1204/sylph","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ankit-1204/sylph","version":"1.0.0","description":"Sylph is a lightweight, modular reverse proxy server built using Node.js. It is designed to be extensible, with support for routing, caching, and middleware — all configurable for different use cases like load balancing or request inspection.","main":"index.js","scripts":{"start":"node index.js"},"author":{"name":"Ankit"},"license":"ISC","dependencies":{"lru-cache":"^11.1.0","ws":"^8.18.3"},"_id":"@ankit-1204/sylph@1.0.0","gitHead":"e7ffb9fdbe2010426f42d06c31d5a5a2239c2341","_nodeVersion":"18.17.1","_npmVersion":"10.2.5","dist":{"integrity":"sha512-3aVoz4osBS7XO/oTcxF9UtOK1yPuu1WZCvQBNWXvfssc/WT6oCSvJEX3u5wixuqZTdsM0kE22fqVPD2UVo7yWQ==","shasum":"2b4b4d9c5997137c829a23dc090b4eaa500147c2","tarball":"https://registry.npmjs.org/@ankit-1204/sylph/-/sylph-1.0.0.tgz","fileCount":13,"unpackedSize":22602,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIGaGZ/uPqmMiuEO2ZEaB3Bx989I/95hqAbd1xTUuqwOgAiEAn0P8FFiFJEeukyLw+oJvfSG7aAWwmqoZnwzOvu7oRQI="}]},"_npmUser":{"name":"ankit-1204","email":"ankit2003upadhyay@gmail.com","actor":{"name":"ankit-1204","email":"ankit2003upadhyay@gmail.com","type":"user"}},"directories":{},"maintainers":[{"name":"ankit-1204","email":"ankit2003upadhyay@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sylph_1.0.0_1751751832760_0.2891013024309348"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-05T21:43:52.668Z","1.0.0":"2025-07-05T21:43:52.936Z","modified":"2025-07-05T21:43:53.198Z"},"maintainers":[{"name":"ankit-1204","email":"ankit2003upadhyay@gmail.com"}],"description":"Sylph is a lightweight, modular reverse proxy server built using Node.js. It is designed to be extensible, with support for routing, caching, and middleware — all configurable for different use cases like load balancing or request inspection.","author":{"name":"Ankit"},"license":"ISC","readme":"# Sylph\r\n\r\nSylph is a lightweight, modular reverse proxy server built using Node.js. It is designed to be extensible, with support for routing, caching, and middleware — all configurable for different use cases like load balancing or request inspection.\r\n\r\nThis project is primarily aimed at developers looking to integrate a custom proxy into their server-side infrastructure or development workflows.\r\n\r\n---\r\n\r\n## Features\r\n\r\n- 🛣️ **Routing** – Define and manage custom routes using a Trie-based router.\r\n- 💾 **Caching** – In-memory caching to reduce duplicate network requests.\r\n- 🧩 **Middleware Support** – Add request/response middlewares for inspection, logging, etc.\r\n- ⚖️ **Load Balancing (optional)** – Configurable support for balancing across multiple targets.\r\n- 🔧 **Simple Setup** – Small footprint and minimal configuration needed.\r\n\r\n---\r\n\r\n## Use Cases\r\n\r\n- Proxy API requests during frontend development\r\n- Add caching or auth to upstream services\r\n- Debug and inspect HTTP traffic\r\n- Load balance across multiple internal services\r\n\r\n---\r\n\r\n## Getting Started\r\n\r\nTo use Sylph in your project:\r\n\r\n```bash\r\nnpm install @ankit-1204/sylph\r\n```\r\n```js\r\nconst { proxy } = require('@ankit-1204/sylph');\r\n\r\nconst app = proxy({ port: 8080 });\r\n\r\napp.addRoute('/api', 'GET', () => 'http://localhost:3001');\r\n\r\napp.start();\r\n```","readmeFilename":"README.md","_rev":"1-6d6525f99eeb1b7a74d31ddb0a8fe44a"}