The Ultimate Free Node.js REST API Starter Kit π
Perfect base template for building powerful APIs with AI integration, canvas generation, and auto-documentation.
β
100% Free & Open Source
β
Production Ready
β
AI Integration Built-in
β
Auto Swagger Documentation
β
Canvas & Image Generation
β
Hot Reload Development
β
Zero Configuration Setup
- π€ AI Integration - Powered by LuminAI for smart responses
- π¨ Canvas Generation - Create beautiful ship cards and graphics
- π οΈ Tools & Utilities - Various helpful tools and generators
- π Auto Documentation - Swagger JSON generation
- π Hot Reload - Automatic updates with nodemon
- π RESTful API - Clean and simple endpoints
- Node.js 18+
- npm or yarn package manager
# Clone the repository
git clone https://github.com/balxz/sh-api-simple.git
# Navigate to project directory
cd sh-api-simple
# Install dependencies
npm install
# Start development server
node index.js # node .# Production mode
npm start
# Development mode with hot reload
npm run devThe API will be available at http://localhost:3000
shiina-api/
βββ π configs.js # Global configuration and setup
βββ π index.js # Main application entry point
βββ π nodemon.json # Nodemon configuration
βββ π package.json # Package dependencies
βββ π route/ # API route definitions
β βββ π ai/ # AI-related endpoints
β β βββ lumini-ai.js # LuminAI integration
β βββ π canvas/ # Image generation endpoints
β β βββ ship.js # Ship card generator
β βββ π ex/ # Example endpoints
β β βββ example.js # API usage examples
β βββ π index.js # Route index
β βββ π user/ # User-related endpoints
β βββ say.js # Text generation tools
βββ π src/ # Source code directory
βββ π lib/ # Library modules
β βββ π loader/ # Dynamic loaders
β β βββ docs.js # Documentation generator
β β βββ router.js # Route loader
β β βββ scrap.js # Scraper loader
β βββ π scraper/ # Web scraping modules
β βββ π ai/
β βββ aites.js # AI scraping utilities
βββ π pages/ # Static pages
βββ π 404/ # 404 error page
βββ π index.html # Landing page
βββ π maintenance/ # Maintenance page
βββ π sh/ # Special pages
- GET
/api/ai- LuminAI chat completion- Parameters:
text(required) - Example:
/api/ai?text=hello ai!
- Parameters:
- GET
/api/canvas/welcome- Generate ship cards- Description: Create beautiful welcome cards
- GET
/api/tools/generate- Text generation tool- Parameters:
text,url,size,nama - Example:
/api/tools/generate?text=hello&nama=shiina
- Parameters:
- GET
/example- Basic API example- Returns sample response structure
The API uses global configuration defined in configs.js:
const SH = () => ({
name: "SH - API",
version: "1.0.0",
description: "SHIINA is a free, simple REST API...",
banner: "https://files.catbox.moe/mbeerk.jpg",
status: "online",
creator: "balxzzy"
})Each route follows this standard format:
module.exports = {
name: "route-name",
path: "/api/endpoint",
type: "get", // or "post",
description: "Route description",
tags: "category",
hidden: false,
isDisable: false,
params: {
// Required parameters
},
code: async (req, res, { axios, scrap }) => {
// Route logic here
}
}The API automatically generates Swagger JSON documentation with:
- Complete endpoint listing
- Parameter specifications
- Response examples
- Category organization
- Real-time status updates
Access the documentation at http://localhost:3000/ endpoint.
- Rate Limiting: Please avoid DDoS attacks
- Free Usage: Available for everyone
- Attribution: Created by balxzzy
- Support: Contact pa424013@gmail.com
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Creator: balxzzy
- Email: pa424013@gmail.com
- GitHub: @balxz
