Open-source no-as-a-service (NaaS) API.
GitHub Repo

Open-source no-as-a-service (NaaS) API.

@the_ospsPost Author

Project Description

View on GitHub

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.json file is open for PRs (add your own creative denials!).

How to Try It

  1. Live Demo:
    curl https://naas.isalman.dev/no
    
  2. Self-Host:
    git clone https://github.com/hotheadhacker/no-as-a-service.git
    cd no-as-a-service
    npm install
    npm start
    
    Your local "no" factory will spin up at http://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.

Back to Projects
Project ID: 1949510138617852160Last updated: July 27, 2025 at 04:40 PM