No-as-a-Service Documentation

repository·main·Indexed 27 days ago

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

A lightweight API that returns random, creative, and humorous rejection reasons. Features a GET /no endpoint returning JSON objects, a rate limit of 120 requests per minute per IP, and support for self-hosting via npm.

Tokens
391
Snippets
1
Records
4
Agent score
43%

What's inside no-as-a-service

  1. Self-host No-as-a-Service

    main

    You can run your own instance of the No-as-a-Service API locally. By default, the server runs on port 3000. You can customize the port using the PORT environment variable.

    Follow these steps to set up the server:

    1. Clone the repository.
    2. Install dependencies using npm.
    3. Start the server using npm.

    The API will be accessible at http://localhost:3000/no (or your custom port).

    # 1. Clone the repository
    git clone https://github.com/hotheadhacker/no-as-a-service.git
    cd no-as-a-service
    
    # 2. Install dependencies
    npm install
    
    # 3. Start the server
    npm start
    
    # To start on a custom port (e.g., 5000)
    PORT=5000 npm start
  2. Use the No-as-a-Service API

    main

    The No-as-a-Service API provides random, creative, and humorous rejection reasons via a simple HTTP GET request.

    Base URL: https://naas.isalman.dev/no
    Method: GET
    Rate Limit: 120 requests per minute per IP

    The API returns a JSON object containing a single reason field.