{"id":16847489,"url":"https://github.com/fabiosantoscode/magicproxy","last_synced_at":"2025-09-15T20:35:26.328Z","repository":{"id":10451027,"uuid":"12620438","full_name":"fabiosantoscode/magicProxy","owner":"fabiosantoscode","description":"A proxy for front-end web development. It changes responses from remote websites","archived":false,"fork":false,"pushed_at":"2014-11-24T15:49:32.000Z","size":310,"stargazers_count":12,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T04:26:51.984Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabiosantoscode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-05T14:51:09.000Z","updated_at":"2019-09-25T11:10:14.000Z","dependencies_parsed_at":"2022-09-04T23:13:36.274Z","dependency_job_id":null,"html_url":"https://github.com/fabiosantoscode/magicProxy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2FmagicProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2FmagicProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2FmagicProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabiosantoscode%2FmagicProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabiosantoscode","download_url":"https://codeload.github.com/fabiosantoscode/magicProxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248356534,"owners_count":21090235,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:08:08.678Z","updated_at":"2025-09-15T20:35:21.224Z","avatar_url":"https://github.com/fabiosantoscode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# magicProxy\n\n\nA proxy for front-end web development. It changes responses from remote websites.\n\n\nUsing this, you can forget about having your local HTTP server or using `rsync`/`wget` to sync your computer with the remote site, broken URLs and ajax APIs, cross-domain problems, and just access the website you are changing and activate the `replace.js` or `fakeDir.js` plugins.\n\nYou can also access websites only accessible to your computer (E.G. in your local server and/or with a hostname only you have in `/etc/hosts`) from the outside, by accessing through your proxy.\n\n\n## Installation\n\n1. Clone this repository\n\n        git clone git@github.com:fabiosantoscode/magicProxy.git\n        cd magicProxy\n\n2. Npm install the dependencies\n\n        npm install\n      \n3. Run the proxy\n\n        node index.js -c magicproxyrc.example\n\n4. Access your system's network configuration, and set up your proxy to `localhost`, port `8080`. Check that everything works.\n\n5. Access http://www.example.com/, see the changes made by the proxy, and play around with magicproxyrc.example (the configurations are reloaded on the fly).\n\n\n## Included plug-ins.\n\n - replace.js: Intercepts requests for key files and responds with local files instead.\n - fakeDir.js: Pretend a local folder is actually on the server.\n - markup.js: Uses [cheerio](https://github.com/MatthewMueller/cheerio) for changing HTML markup. You can insert or remove chunks.\n - empty.js: Empty some HTTP responses. Useful for annoying tracking scripts.\n - log.js: Log HTTP verbs, status codes and URLS for every response.\n\nConfiguration instructions are written in the plugins' `.js` files.\n\n\n## Usage examples:\n\n - Work on the JS code of a remote website on its true environment without tripping on cross-domain policy\n - Change the living, working HTML on a remote website without worrying about using relative URLs\n - Stop scripts which jam your debugger from loading\n - Remove some elements from remote sites you are working on, such as video players, canvases, etc.\n\n## Roadmap:\n\n - A plug-in interface with a unified configuration system\n - HTTPS support, WS support\n - A simple command line interface (execute on a folder, looks for .magicproxyrc configuration files and load them)\n - Run as a web application for showing others your local work\n - Split plugins into several projects\n - Verbose mode, which shows what requests were changed, and by which plugin\n - Automatic rebuild plugin, which watches directory for changes and executes a script when necessary\n\nBe happy!\n\n-- Fábio\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiosantoscode%2Fmagicproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabiosantoscode%2Fmagicproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabiosantoscode%2Fmagicproxy/lists"}