Titanium Network's web proxy.
Project is still in development! Pull requests that contribute a lot will be accepted :)
Notable websites that work
- Youtube
- Twitch
- Discord
- Disney Plus
- Tik Tok
npm i corrosion
const Corrosion = require('corrosion');
const proxy = new Corrosion();
const http = require('http')
http.createServer((req, res) => proxy.request(req, res)).on('upgrade', proxy.upgrade).listen(80);
Much more in depth one is in the demo folder.
-
config
prefix
String - URL Prefixtitle
(Boolean / String) - Title used for HTML documentsws
Boolean - WebSocket rewritingcookie
Boolean - Request Cookiescodec
String - URL encoding (base64, plain, xor).requestMiddleware
Array - Array of middleware functions for proxy request.responseMiddleware
Array - Array of middleware functions for proxy response.standardMiddleware
Boolean - Use the prebuilt middleware used by default.
-
Properties
- [url][1]
val
Stringconfig
Configurationbase
WHATWG URLorigin
Location origin - Adds a location origin before the proxy urlflags
Array - ['xhr'] => /service/xhr_/https%3A%2F%2Fexample.org/
-
val
String -
config
Configurationorigin
Location origin - Required if a location origin starts before the proxy urlflags
Boolean - Returns with both the URL and flags found { value: 'https://example.org', flags: ['xhr'], })leftovers
Boolean - Use any leftovers if any after the encoded proxy url
-
Properties
-
regex
Regex used to determine to rewrite the URL or not. -
prefix
URL Prefix -
codec
(base64, plain, xor)
-
source
JS scripturl
URL for heading
ast
JS ASTCallback
Handler initated on AST node
url
URL for heading
callee
Acorn.js Nodeargs
Array
elements
Array
name
Identifier namepreventRewrite
Prevent further rewrites
value
Literal value
source
CSSconfig
Configurationbase
WHATWG URLorigin
Location origincontext
CSS-Tree context
source
HTML Sourceconfig
Configurationdocument
Determines of its a document or fragment for parsingbase
WHATWG URLorigin
Location origin
processed
Rewritten HTMLconfig
Configurationdocument
Determines of its a document or fragment for parsing
map
Map for attribute rewriting
input
New (Cookie / Cookies)config
Configurationurl
WHATWG URLdomain
Cookie Domainsecure
Cookie Secure
store
Encoded Cookiesconfig
Configurationurl
WHATWG URL
str
String