How dikay0310/locket-vip works
This repository contains Locket request/response rewrite scripts for a proxy client, not the Locket app itself. The visible workflow is a client forwarding an app request to a service and the proxy applying a matching rewrite. The excerpts show response-body rewriting for subscription and remote configuration, plus a request-header edit. The large configuration file is partial, so its full set of configured capabilities is not inferable; edges below represent only relationships visible in the supplied excerpts.
Main entry points: locket_gold.js Gold response rewrite · deleteheader.js Header rewrite · locket_config.js Remote config rewrite
Components 6
Proxy rewrites
- Gold response rewrite
locket_gold.js - Header rewrite
deleteheader.js
Remote configuration
- Remote config rewrite
locket_config.js
Other components
- Locket client
- Remote API
- Rewrite proxy
Connections 9
- Locket client → Rewrite proxy: sends request
README.md - Rewrite proxy → Remote API: forwards request
- Rewrite proxy → Header rewrite: runs rewrite
- Rewrite proxy → Gold response rewrite: runs rewrite
- Rewrite proxy → Remote config rewrite: runs rewrite
- Gold response rewrite → Rewrite proxy: returns body
locket_gold.js - Remote config rewrite → Rewrite proxy: rewrites body
locket_config.js - Header rewrite → Rewrite proxy: returns headers
deleteheader.js - Remote API → Rewrite proxy: returns response