Open source API proxy server with an easy-to-use dashboard for configuring middlewares and secrets.
Third party APIs make it easy to integrate functionalities across apps. But using them on a purely front-end project is a hassle. Most of the time, the API endpoints require an API key which cannot be exposed on the frontend. Hence, most of us setup a proxy backend server that makes the request to the third party API with the API keys and make the frontend request this proxy server instead. While it might be a trivial solution that shouldn't take a lot of time to implement, it can get very repeatable and tedious over time.
Diode solves this problem by abstracting this proxy server and allowing you to add and configure as many API routes and consume them directly on the frontend without having to worry about exposing any API keys! Since Diode sits in between all the requests going to the third-party server, it also makes it easy to add commonly used middlewares to the API route with just a click!
Fun fact: All of this happens without you having to write a single line of code.
Note: Deploying on Heroku free plan may cause higher latencies
git clone https://github.com/blenderskool/diode.git
cd diode
npm install
Create a .env file and provide values for all the variables listed in .env.example file.
In the root of this project, run the following command to setup the database schema
npx prisma db push
npm run build
npm run start
Diode will start running at port 3000.
Prisma Studio makes it easy to explore and edit the data in the database. You can start it by running
npx prisma studio
Prisma Studio will be running at port 5555.
Diode is MIT Licensed
Content type
Image
Digest
Size
312.5 MB
Last updated
over 4 years ago
docker pull akashhamirwasia/diode