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 dev
The 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