passepartoutvpn / api-source Goto Github PK
View Code? Open in Web Editor NEWSource scripts for API generation.
License: GNU General Public License v3.0
Source scripts for API generation.
License: GNU General Public License v3.0
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.
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.
Running a generic .sh is convenient during development, but absolutely insecure in production. Prefer other means to get a JSON from provider scripts.
They seem one of the more popular providers, and a lot of people seem to switch to them (or Mulvad) with the PIA takeover debacle going on right now.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.