No-as-a-Service (NaaS): The API That Says "No" So You Don’t Have To
Ever needed a polite (or hilarious) way to reject something without the awkwardness? Enter No-as-a-Service (NaaS), an open-source API that serves up random rejection reasons—perfect for bots, apps, or just saving your social stamina.
Built by hotheadhacker, this tiny project packs over 1,000 creative "no" excuses, from professional brush-offs to absurdist humor.
What It Does
NaaS is a dead-simple API that returns a JSON response with a randomized rejection reason. Hit the endpoint, and you’ll get gems like:
{ "reason": "This feels like something Future Me would yell at Present Me for agreeing to." }
Use it to:
- Simulate API failures in testing
- Power a "rejection generator" for fun
- Auto-respond to spammy requests
- Teach APIs how to say no gracefully
Why It’s Cool
- Lightweight: A single Express.js endpoint with no fluff.
- Self-hostable: Clone,
npm install, and run—done. - Rate-limited: 120 requests/minute/IP (so no one abuses your "no"s).
- Community-driven: The
reasons.jsonfile is open for PRs (add your own creative denials!).
How to Try It
- Live Demo:
curl https://naas.isalman.dev/no - Self-Host:
Your local "no" factory will spin up atgit clone https://github.com/hotheadhacker/no-as-a-service.git cd no-as-a-service npm install npm starthttp://localhost:3000/no.
Final Thoughts
NaaS is the kind of project that reminds us coding can be playful. Whether you’re mocking an API, building a cheeky Slack bot, or just need a laugh, it’s a clever tool to keep in your back pocket.
And hey—if you do say yes to contributing? The repo’s waiting.
Repo: github.com/hotheadhacker/no-as-a-service
Follow @githubprojects for more quirky dev tools.