Giter Site home page Giter Site logo

local-traffic's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar libetl avatar mdbell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mdbell

local-traffic's Issues

Data capture

I would love to be able to connect my proxy to some kind of streaming cloud service such as kinesis or kafka. Does it make sense do that on the proxy level or rather should i consume the log files ?

quickStatus clean up

The status lines in the console render differently depending on the terminal, because the emojis sometimes are larger than their allocated size, causing some status lines to print irregularly

I should try to display the quickStatus in two steps : firstly only the table cells, then each individual column

import { stdout } from 'process'

(async () => {
    console.log('\u001b[48;5;52m           ' +
        '▐\u001b[48;5;53m           ' +
        '▐\u001b[48;5;54m           ' +
        '▐\u001b[48;5;55m       ' +
        '▐\u001b[48;5;56m    ' +
        '▐\u001b[48;5;57m    ' +
        '▐\u001b[48;5;93m    ' +
        '▐\u001b[0m');
    await new Promise(resolve =>
        stdout.moveCursor(-80, -1, () => resolve(void 0)));
    stdout.write('\u001b[48;5;52m☎️ 443\u001b[0m')
    await new Promise(resolve =>
        stdout.moveCursor(-80, 0, () =>
            stdout.moveCursor(12, 0, () => resolve(void 0))));
    stdout.write('\u001b[48;5;53m↗️ H/2 ✒️\u001b[0m')
    await new Promise(resolve =>
        stdout.moveCursor(-80, 0, () =>
            stdout.moveCursor(24, 0, () => resolve(void 0))));
    stdout.write('\u001b[48;5;54m↘️ H/2 ✒️\u001b[0m')
    await new Promise(resolve =>
        stdout.moveCursor(-80, 0, () =>
            stdout.moveCursor(36, 0, () => resolve(void 0))));
    stdout.write('\u001b[48;5;55m🔗 52\u001b[0m')
    await new Promise(resolve =>
        stdout.moveCursor(-80, 0, () =>
            stdout.moveCursor(45, 0, () => resolve(void 0))));
    stdout.write('\u001b[48;5;56m☄️\u001b[0m')
    await new Promise(resolve =>
        stdout.moveCursor(-80, 0, () =>
            stdout.moveCursor(50, 0, () => resolve(void 0))));
    stdout.write('\u001b[48;5;57m✨\u001b[0m')
    await new Promise(resolve =>
    stdout.moveCursor(-80, 0, () =>
        stdout.moveCursor(55, 0, () => resolve(void 0))));
    stdout.write('\u001b[48;5;93m🛡️\u001b[0m')
    console.log()
})()

AWS4 signed requests

re-implement aws4 signing method to automatically add signature headers when proxying aws.
sigV4-auth-header-chunked-seed-signature

SOCKS5 protocol

Investigate injecting traffic using a SOCKS5 protocol.
So that users can continue to navigate to downstreamURLs while using the proxy.

Monitoring UI

Is the goal of the proxy to be in local environment only ? How will it behave if for example I use it in front of an app on a server ?

If that is possible, it could be cool to have some kind of UI with real time data to monitor the traffic. Or have the capacity to plus it to monitoring tool through open telemetry for example.

port forwarding

Use local-traffic to route traffic through remote containers (if it is possible without external dependency)

Traffic mirroring

Might be something non-feasible but I would love to be able mirror my traffic when targeting a specific endpoint ?

Let's say I redirect my traffic to my-service/v1, in addition to forwarding to the configured endpoint, could you duplicate the request and send it to my-service/v2 and log the result ?

Route to default url in case the configured url is not reachable

Given this mapping:
{
"mapping": {
"/a-path":": "http://localhost:8080/a-path/",
"": "https://www.a-domain.com/"
}
}

Current behaviour:
Any path that is on localhost will be proxied to "https://www.a-domain.com/". But in case of https:localhost/a-path it will be proxied to http://localhost:8080/a-path/, however when http://localhost:8080/a-path is not running local-traffic will display an error.

Could be nice to add a config to fall back to default in case the mapped url is not healthy.

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.