Git Product home page Git Product logo

api-source's People

Contributors

dependabot[bot] avatar keeshux avatar keeshux12345 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

api-source's Issues

Generate provider JSON in main script

Otherwise scripts must be updated for each provider to update common structure.

E.g. split each provider net.sh into net-pools.sh and net-presets.sh as CSV, to then generate JSON from this main repository.

Store pools in a dictionary

Map pools by identifier. Sorting is done via PoolGroup, there's no need to use an array where search cost is linear.

Requires non-compatible change in infrastructure JSON:

{"pools":[...]}

to:

{"pools":{"us123":{...},"fr456":{...}}

Might also consider mapping by country/area (1:1 with PoolGroup) rather than identifier.

Express pools with variable num by ranges

Infrastructure JSON can be shrinked dramatically by expressing pools having varying num field with just a range (or set of ranges). Doing the following -current behavior- for hundreds of servers is naïve overkill:

Omitting resolved addresses helps the transition. This is not an issue for a massive infra like NordVPN where DNS resolution is in fact skipped.

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.