Skip to content

Public Cloudflare Worker API that generates UUID v4 with a simple GET/POST interface.

License

Notifications You must be signed in to change notification settings

AiratTop/uuid.api.airat.top

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

uuid.api.airat.top

uuid

Tiny Cloudflare Worker that generates UUID v4.

Live endpoint: https://uuid.api.airat.top

You can use my Open Source password and UUID generator to generate a strong password or UUID in the browser (GitHub repo).

API

GET

GET /

Example:

curl 'https://uuid.api.airat.top/'

Response:

{"uuid":"2f5b0b6b-2b54-4a2c-93c3-8e5f9a8e1a5c"}

Test in browser: https://uuid.api.airat.top/

Plain response:

curl 'https://uuid.api.airat.top/?plain=1'

Response:

2f5b0b6b-2b54-4a2c-93c3-8e5f9a8e1a5c

Test in browser: https://uuid.api.airat.top/?plain=1

POST

POST also returns a fresh UUID.

curl -X POST 'https://uuid.api.airat.top/'

Response:

{"uuid":"2f5b0b6b-2b54-4a2c-93c3-8e5f9a8e1a5c"}

CORS

CORS is enabled for all origins (*).

Privacy

No analytics or request logs are collected by this project.

Monitoring

Health check endpoint:

GET /health

Response:

{"status":"ok"}

Test in browser: https://uuid.api.airat.top/health

Project structure

  • worker.js - Cloudflare Worker script.

Deployment

Deploy with Wrangler (the repo already includes wrangler.toml):

npx wrangler deploy

If you use Cloudflare Workers Builds (GitHub integration), set the deploy command to npx wrangler deploy and keep the root path at /.

To serve it on a custom domain, add the domain in Workers & Pages → Domains & Routes. Cloudflare will create the DNS record and issue SSL automatically.

License

This project is licensed under the MIT License - see the LICENSE file for details.


Author

AiratTop

About

Public Cloudflare Worker API that generates UUID v4 with a simple GET/POST interface.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project