{"_id":"@accountsystem/proxy","name":"@accountsystem/proxy","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@accountsystem/proxy","version":"1.0.0","description":"A powerful, configurable TypeScript proxy server designed for microservices architectures with JSON configuration, WebSocket support, and flexible routing.","main":"dist/cli.js","types":"dist/index.d.ts","bin":{"accountsystem-proxy":"dist/cli.js","asp":"dist/cli.js"},"scripts":{"build":"npm run clean && npm run build:types && npm run build:cli","build:types":"tsc --emitDeclarationOnly","build:cli":"esbuild src/cli.ts --bundle --platform=node --target=node18 --format=cjs --outfile=dist/cli.js --external:express --external:http-proxy-middleware --external:cors --external:https --external:http --external:fs --external:path","dev":"npm run build --watch","clean":"node -e \"const fs = require('fs'); if (fs.existsSync('dist')) fs.rmSync('dist', { recursive: true });\"","prepublishOnly":"npm run build","test":"echo \"Tests not implemented yet\" && exit 0","start":"node dist/cli.js -h","link":"npm run build && npm link"},"repository":{"type":"git","url":"git+https://github.com/0-kodiya-0/AccountSystem.git","directory":"packages/proxy"},"keywords":["proxy","microservices","typescript","express","websocket","load-balancer","gateway","reverse-proxy","api-gateway","cli"],"bugs":{"url":"https://github.com/0-kodiya-0/AccountSystem/issues"},"homepage":"https://github.com/0-kodiya-0/AccountSystem/tree/main/packages/proxy#readme","author":{"name":"0-kodiya-0"},"license":"MIT","engines":{"node":">=18.0.0"},"publishConfig":{"access":"public"},"devDependencies":{"@eslint/js":"^9.28.0","@types/cors":"^2.8.18","@types/express":"^5.0.2","esbuild":"0.25.5","eslint":"^9.28.0","nodemon":"^3.1.10","tsx":"^4.19.4","typescript":"^5.8.3"},"dependencies":{"cors":"^2.8.5","express":"^5.1.0","http-proxy-middleware":"^3.0.5"},"_id":"@accountsystem/proxy@1.0.0","gitHead":"29619e6a97fb3f2feea5ee9053bdb7552fb6f8f1","_nodeVersion":"23.9.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-ZzFSMs9hiX9l89UQl+lRRd8XowhBVGw/eQlWzlq7dDILI3bG6AWAzf3M1+PUlkqd5L9MKS4KxNATZcUEtqXOng==","shasum":"82720036da7b304be00bb0cba1a919fd7db598ff","tarball":"https://registry.npmjs.org/@accountsystem/proxy/-/proxy-1.0.0.tgz","fileCount":12,"unpackedSize":46047,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDhME78Puw/YJiesMXQRQC/6NSC8mjV3df9GILQgCLvCwIhAJA+06hxxq+FpxWA2w1XEEiuLmD2Ep1WygjocGwkceWt"}]},"_npmUser":{"name":"0-kodiya-0","email":"sanithujayafiverr@gmail.com"},"directories":{},"maintainers":[{"name":"0-kodiya-0","email":"sanithujayafiverr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/proxy_1.0.0_1749064635945_0.7567570586970769"},"_hasShrinkwrap":false}},"time":{"created":"2025-06-04T19:17:15.838Z","1.0.0":"2025-06-04T19:17:16.149Z","modified":"2025-06-04T19:17:16.459Z"},"maintainers":[{"name":"0-kodiya-0","email":"sanithujayafiverr@gmail.com"}],"description":"A powerful, configurable TypeScript proxy server designed for microservices architectures with JSON configuration, WebSocket support, and flexible routing.","homepage":"https://github.com/0-kodiya-0/AccountSystem/tree/main/packages/proxy#readme","keywords":["proxy","microservices","typescript","express","websocket","load-balancer","gateway","reverse-proxy","api-gateway","cli"],"repository":{"type":"git","url":"git+https://github.com/0-kodiya-0/AccountSystem.git","directory":"packages/proxy"},"author":{"name":"0-kodiya-0"},"bugs":{"url":"https://github.com/0-kodiya-0/AccountSystem/issues"},"license":"MIT","readme":"# AccountSystem Proxy\r\n\r\nA configurable TypeScript proxy server for microservices architectures. Features JSON-based configuration, WebSocket support, flexible routing, and a simple CLI.\r\n\r\n## Quick Start\r\n\r\nInstall globally:\r\n\r\n```bash\r\nnpm install -g @accountsystem/proxy\r\n```\r\n\r\nCreate a configuration file `proxy-config.json`:\r\n\r\n```json\r\n{\r\n  \"port\": 8080,\r\n  \"services\": {\r\n    \"backend\": {\r\n      \"target\": \"http://localhost:3000\",\r\n      \"pathPrefix\": \"/api\"\r\n    },\r\n    \"frontend\": {\r\n      \"target\": \"http://localhost:5173\",\r\n      \"pathPrefix\": \"/\"\r\n    }\r\n  },\r\n  \"defaultService\": \"frontend\"\r\n}\r\n```\r\n\r\nStart the proxy:\r\n\r\n```bash\r\naccountsystem-proxy proxy-config.json\r\n```\r\n\r\nYour proxy server is now running on `http://localhost:8080`.\r\n\r\n## Installation\r\n\r\n### Global Installation (Recommended)\r\n\r\n```bash\r\nnpm install -g @accountsystem/proxy\r\n```\r\n\r\n### Local Installation\r\n\r\n```bash\r\nnpm install @accountsystem/proxy\r\n```\r\n\r\n### Use without installation\r\n\r\n```bash\r\nnpx @accountsystem/proxy proxy-config.json\r\n```\r\n\r\n## Features\r\n\r\n- Simple command line interface\r\n- JSON-based configuration\r\n- Multiple service support\r\n- Flexible routing (exact, prefix, regex)\r\n- WebSocket proxying\r\n- Cookie path and domain rewriting\r\n- HTTPS/SSL support\r\n- Request and response logging\r\n- CORS handling\r\n- Custom headers\r\n- Production ready\r\n\r\n## CLI Usage\r\n\r\n```bash\r\n# Start proxy with configuration file\r\naccountsystem-proxy <config-file>\r\n\r\n# Short alias\r\nasp <config-file>\r\n\r\n# Show help\r\naccountsystem-proxy --help\r\n\r\n# Show version\r\naccountsystem-proxy --version\r\n```\r\n\r\n## Configuration\r\n\r\nFor complete configuration options, see [Configuration.md](/docs/Configuration.md).\r\n\r\n## Common Use Cases\r\n\r\n- Development Environment - Proxy multiple local services\r\n- Microservices Gateway - Route requests to different backend services\r\n- WebSocket Support - Enable real-time communication proxying\r\n\r\n## Documentation\r\n\r\n[Configuration Reference](/docs/Configuration.md) - Complete configuration options\r\n\r\n## Contributing\r\n\r\nContributions are welcome! Please submit a Pull Request.\r\n\r\n## License\r\n\r\nMIT License - see [LICENSE](LICENSE) file for details.\r\n\r\n## Links\r\n\r\n- [Repository](https://github.com/0-kodiya-0/AccountSystem)\r\n- [Issues](https://github.com/0-kodiya-0/AccountSystem/issues)\r\n- [NPM Package](https://www.npmjs.com/package/@accountsystem/proxy)\r\n","readmeFilename":"README.md","_rev":"1-29a509a3838cb1edc14f5ec0b51e719a"}