Skip to content

No-as-a-Service (NAAS) Rust is a simple API that returns a random rejection reason. Use it when you need a realistic excuse, a fun “no,” or want to simulate being turned down in style.

License

Notifications You must be signed in to change notification settings

ZAZPRO/no-as-a-service-rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❌ No-as-a-Service Rust 🦀

Faster port with more rejection reasons and own non limited instance

No-as-a-Service Banner

Ever needed a graceful way to say “no”?
This tiny API returns random, generic, creative, and sometimes hilarious rejection reasons — perfectly suited for any scenario: personal, professional, student life, dev life, or just because.

Built for humans, excuses, and humor.


🚀 API Usage

Base URL

https://naas.daniilmira.com/no

Method: GET
Rate Limit: None

🔄 Example Request

GET /no

✅ Example Response

{
  "reason": "This feels like something Future Me would yell at Present Me for agreeing to."
}

Use it in apps, bots, landing pages, Slack integrations, rejection letters, or wherever you need a polite (or witty) no.


🛠️ Self-Hosting

Want to run it yourself? It’s lightweight and simple.

1. Clone this repository

git clone https://github.com/hotheadhacker/no-as-a-service.git
cd no-as-a-service

2. Run

cargo run --release

The API will be live at:

http://localhost:3000/no

You can also change the port and ip using an environment variable:

NAAS_PORT=5000 NAAS_IP=0.0.0.0 npm start

📁 Project Structure

└── no-as-a-service-rust
    ├── README.md
    ├── reasons.json # 200+ reasons
    └── src
        └── main.rs # Axum API


👤 Author

Created with creative stubbornness by hotheadhacker

Ported to rust by ZAZPRO


📄 License

MIT - as original project.

About

No-as-a-Service (NAAS) Rust is a simple API that returns a random rejection reason. Use it when you need a realistic excuse, a fun “no,” or want to simulate being turned down in style.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Rust 69.3%
  • Nix 30.7%