My APIs based on Cloudflare Workers.
Overview
/db
- a simple database based on KV./mail
- send emails using MailChannels./cors
- CORS for any website./hook
- some webhook handlers.
For details, please check the document.md
.
The following APIs are public. You can use them without authentication.
I do not guarantee or assume any responsibility for the reliability of the following APIs or the correctness of the returned results, nor do I guarantee that these APIs will always be public.If you use these APIs, you agree to take full responsibility for the risks.
You should not use these APIs for any illegal or malicious purposes.
Request to https://api.caomingjun.com/cors?target=<url>
will be proxy to <url>
with same method, body and headers.
Use query parameter follow=false
to disable following redirects.
The response will be returned as is, except CORS headers.
- Clone this repo.
- Run
npm install
. - Run
wrangler login
. - [Optional]Add your own KV namespace and update
wrangler.toml
. mv src/config.example.ts src/config.ts
and fill in your own config.- Other customizations (project name in
wrangler.toml
, HTML for/
insrc/index.ts
, etc). - Run
npm run deploy
.
- Add more APIs.
-
/cors
CORS for any website. - More ideas are welcome.
-
- Allow setting public access routes in config.
- Count the number of API calls by different users.
- More friendly documentation.