Skip to content

Steem Proxy Node via CloudFlare Snippet

License

Notifications You must be signed in to change notification settings

DoctorLai/steem-proxy-cloudflare

Steem Proxy Cloudflare Snippet

Steem Proxy CI Steem Proxy Lint & Format Run Tests with Coverage

A lightweight Cloudflare Snippet that automatically selects the healthiest Steem RPC node, ensuring stable, low-latency JSON-RPC access.

It has been deployed live to https://api2.steemyy.com.

Features

  • Auto health-check and version validation
  • CORS enabled
  • Compatible with fetch API
  • Instant failover using Promise.any
  • 100% Serveless - Just need a DNS record and a Snippet (JS) in CloudFlare
  • Unlimited Requests, compared to CloudFlare Workers which have a daily 100K quota for free plans.

Development

npm install
npm run dev

Disable Cloudflare Web Access Firewall

You would need a Pro cloudflare account. Also you would need to disable WAF (Web Access Firewall) see this post Bypassing WAF for API/RPC Node: api2.steemyy.com

image

DNS Record

Add a DNS record that points to ip 192.0.2.1 indicating no server will be routed to.

image

Testing

# or: npm run test
npm test

Test Coverage

npm run coverage

Deploy

npm run deploy

Alternatively, a quick deploy would be just to copy the index.js to the CloudFlare snippet. You would also need to add the DNS record (see above), configure the Snippet Rule e.g. (http.host eq "api2.steemyy.com") and Disable WAF (see above).

image

Sibling Projects

License

MIT

Contribution

See CONTRIBUTING and CODE OF CONDUCT

Support me

If you like this and want to support me in continuous development, you can do the following:

Buy me a Coffee

About

Steem Proxy Node via CloudFlare Snippet

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •