Giter VIP home page Giter VIP logo

muffin's Introduction

Muffin

Muffin provides a new approach to the HTTP proxy. Instead of forwarding all internet traffic, HTML documents returned from the server are parsed, and any attributes that point to a URL (such as src, href, etc) are prefixed with Muffin's hostname in order to be proxied.

Muffin is not going to provide any privacy or functionality guarantee. Any requests performed from JavaScript will not be proxied, as Muffin only performs a basic check of HTML attributes. This means that some functionality on more complex sites may be broken if the site is blocked by the client or network firewall.

Usage

To run, simply download the latest artifact for your platform from GitHub Actions and run:

./muffin-x86_64-unknown-linux-gnu [(--port || -p) <port>] [(--host || -h) <host>] [(--scheme || -s) <scheme>]

You can also clone this repository and run with Deno:

deno run --allow-net index.ts [options]

You can also produce a native executable:

deno compile --allow-net index.ts

Navigate to <scheme>://<host>:<port>/muffin_init to configure the desired origin, and you're good to go!

License

This work is licensed under the MIT license.

Copyright © 2023 ninjadev64

muffin's People

Contributors

ninjadev64 avatar

Stargazers

James Hughes avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.