Giter VIP home page Giter VIP logo

diode's Introduction

Hey there ๐Ÿ‘‹
I'm

About ๐ŸŒ

  • I build innovative and useful products on the web with great user experience.
  • I'm curious about how things work and often try to learn by breaking them apart.

Work ๐Ÿ”ญ

Current Interests ๐ŸŒฑ

Love taking about ๐Ÿ’ฌ

  • Frontend development
  • Building products
  • Open source

Get in touch ๐Ÿ“ซ

Fun facts โšก

  • I occasionally work on 3D graphics with Blender
  • I enjoy playing Tennis ๐ŸŽพ

Amazing folks who sponsor my work ๐Ÿ’š


Shivay Lamba

Aniruddha Mysore

diode's People

Contributors

blenderskool avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

diode's Issues

Enrich proxy URL with more context

Proxy URLs generated in Diode right now are not human-readable and don't have any context about what the API endpoint actually does.
This can be improved by updating the proxy URL id to include the route name entered by the user.

Example:
{route-name encoded in a URL friendly way}-{nanoid of a shorter length}
In this case, the route name cannot be changed once it's created.

Option to disable query params and headers forwarding

This can help in preventing public Diode URLs from being used to access unintended data from the origin endpoint.
In this case, only those query params and headers specified in the Diode dashboard will be forwarded, the rest ignored.

Error while project setup

  • nvm run dev/start doesn't work gives error:
digital envelope routines::unsupported  

use node v16.19.1 to run npm-script

  • npx prisma db push doesn't work giving error
Unknown binaryTarget debian-openssl-3.0.x and no custom binaries were provided error Command failed with exit code 1

need to update the dependency for prisma-cli and @prisma/client to above v3.13.0.

Ability to duplicate an existing API Route

A duplicate option can be added to API Route which would open a modal with an input field to take the name for the new API route being created.
This input field can have a default value of {name of API route being duplicated} Duplicate.
Complete configuration should be duplicated.

Calls fail to invalid endpoints

Calls to endpoints that don't exist on the database fail with status code 500.
The issue is that results from findUnique queries are not checked for null values.

Additional areas to check:

  • Invalid Project page
  • Invalid API route page

Show final alert dialog before dangerous action

Dangerous actions that involve deletion of some stuff should show a confirmation dialog to the user before the deletion operation is performed.

While Chakra-UI already has Alert dialog components that can be used, it's not very ergonomic to use out of the box.
Since this will be a fairly consistent component used in many places, we can maybe abstract the implementation details into something as simple as window.confirm style call.

Partial query middleware for json responses

Middleware that provides basic partial querying and filtering capabilities for APIs that respond with JSON data.
There isn't any popular standard for this, json-mask package seems like a good start.
Instead of using fields query parameter for this, maybe something else can be used to prevent any conflict with origin endpoint.

A point to note is that this middleware does consume the data that is received by the origin endpoint, unlike the existing middlewares.
So it definitely would be slower to use this approach instead of using partial query on the origin endpoint itself(i.e. if origin endpoint supports it)

Potential flow with this and other middlewares:

  • Receive request
  • Restriction
  • Rate Limiter
  • Cache GET
  • Origin hit
  • Partial JSON query
  • Cache PUT
  • Send response

Add user authentication

Users should be able to create accounts and create projects associated with that account.

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.