Coder Social home page Coder Social logo

nguyenhainam24082000 / rlp-proxy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dhaiwat10/rlp-proxy

0.0 1.0 0.0 107 KB

The proxy used by @dhaiwat10/react-link-preview to fetch metadata for URLs.

Home Page: https://www.npmjs.com/package/@dhaiwat10/react-link-preview

TypeScript 98.82% Shell 1.18%

rlp-proxy's Introduction

rlp-proxy

This is the source code for the proxy used in react-link-preview.

Feel free to fork both the main package and this proxy and deploy your own copy of the project.

Deploy

Important note

The master branch version of the proxy requires Redis & Supabase for rate-limiting & caching purposes. If you don't want these features, please switch to the no-redis-caching branch and use the code residing there.

Environment variables & pre-requisites

  1. SERVER_URL: The URL where your server is runnning (used for serving static files). For example, if you are running the server locally it will be localhost:3000 and if your server is live at abc.xyz, the value for this variable will be abc.xyz. This variable is necessary to serve static files correctly.
  2. SUPABASE_KEY: Your Supabase project's anon key. This proxy uses Supabase to cache query results. You will need to (i) Create a new project on Supabase, (ii) Create a new table called meta-cache and create the following columns: url (text), title (text), description (text), siteName (text), image (text), hostname (text).
  3. Redis. If you're deploying to Heroku, you can use the Redis To Go add-on.

rlp-proxy's People

Contributors

dhaiwat10 avatar

Watchers

James Cloos avatar

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.