
Deploy No-as-a-Service
A simple API that returns a random rejection reason.
No-as-a-Service
Just deployed
Deploy and Host No-as-a-Service on Railway

No-as-a-Service (NaaS) is a lightweight HTTP API that returns a random rejection reason in JSON format. It provides generic, creative, and often humorous ways to say “no,” making it useful for demos, bots, developer tools, landing pages, and playful integrations that need a realistic or witty refusal.
About Hosting No-as-a-Service
Hosting No-as-a-Service is intentionally minimal. The project is a small Express-based Node.js server that exposes a single /no endpoint backed by a static JSON file containing over 1,000 curated rejection reasons. Deployment involves running a single process with no external state, databases, or background workers. Railway handles process orchestration, port management, and scaling automatically, allowing you to deploy the service with near-zero configuration. Optional rate limiting is already built into the app, making it safe to expose publicly without additional infrastructure.
Common Use Cases
- Providing humorous or polite rejection responses in chatbots, Slack bots, or Discord bots
- Powering demo applications, landing pages, or mock APIs that need realistic negative responses
- Adding playful “no” responses to developer tools, internal dashboards, or testing environments
Dependencies for No-as-a-Service Hosting
- Node.js (runtime)
- Express.js (HTTP server)
Deployment Dependencies
- Source repository: https://github.com/hotheadhacker/no-as-a-service
- Public API reference: https://naas.isalman.dev/no
Implementation Details
The service exposes a single GET endpoint:
GET /no
which responds with JSON in the following shape:
{ "reason": "This feels like something Future Me would regret agreeing to." }
The server reads from a static reasons.json file and selects a random entry per request.
Why Deploy No-as-a-Service on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying No-as-a-Service on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
No-as-a-Service
hotheadhacker/no-as-a-service