Proxy for react-link-preview.
Written from scratch to reimplement rlp-proxy, which is all rights reserved.
- this proxy is based on puppeteer, therefore it is able to work with most sites, including react apps such as metahkg.org.
- more sites can be accessed with puppeteer-extra-plugin-stealth.
- uses fastify (instead of express)
- caching with mongodb, also caches null metadata
- auto delete successful caches after 30 days, null caches after 1 day
- 4 seconds timeout
/v2is highly compatible with the originalrlp-proxy, however it DOES NOT give an error code when the site is not found / the site gives out any errors, simply returns{ metadata: null }- this proxy does not support v1,
/is an alias of/v2
- rate limit:
- cached: 200 / 30 seconds
- uncached: 5 / 30 seconds
- Warning: slower since it uses puppeteer
- the querystring
urlshould be UTF-8 encoded, or some urls may not be supported
cp docker/template.env docker/.envThen config variables in docker/.env, after that either follow prebuilt or from source.
yarn dockeryarn docker:source- mongodb
cp template.env .envThen config variables in .env, after that:
yarn build
yarn start