AI-Verse API is a Node.js + Express server that connects to a MongoDB database to provide a searchable list of AI tools by name and tags. Deployed serverlessly on Vercel.
https://ai-verse-api.vercel.app/search
- π Full-text search on AI tools
- Matches tools by name or tags
- Case-insensitive partial search
- π Live & serverless with Vercel
- ποΈ MongoDB (Atlas) as database
- Node.js + Express.js
- MongoDB + Mongoose
- Vercel for deployment
- dotenv for managing secrets
.
βββ api
β βββ index.js # Entry point for Vercel
βββ config
β βββ db.js # MongoDB connection
βββ models
β βββ ai_tools.js # Mongoose schema
βββ routes
β βββ search.js # POST /search route
βββ server.js # Express app setup
βββ .env # MongoDB credentials
βββ vercel.json # Vercel config
URL: https://ai-verse-api.vercel.app/search
Method: POST
Headers:
Content-Type: application/jsonBody:
{
"query": "music"
}Returns:
[
{
"_id": "...",
"name": "DeepBeat",
"tags": ["music", "lyrics", ...],
...
},
...
]# Clone repo
git clone https://github.com/your-username/ai-verse-api.git
cd ai-verse-api
# Install dependencies
npm install
# Create .env file
echo "MONGODB_URI=your_mongodb_connection_string" > .env
# Run locally
npm startYour vercel.json should look like this:
{
"version": 2,
"builds": [
{
"src": "api/index.js",
"use": "@vercel/node"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "api/index.js"
}
]
}