@azzamcodex/vexo
v1.0.3
Published
The official Node.js SDK for Vexo API Gateway. Connect to 200+ high-performance REST endpoints effortlessly.
Maintainers
Readme
🌟 Why Vexo SDK?
Building applications shouldn't be bogged down by complex API integrations. The Vexo SDK wraps 200+ premium endpoints into a clean, strictly-typed, and highly performant Javascript class.
- 🚀 Zero Dependencies: Built on top of native Node.js
fetch. Noaxios, no bloat. Extremely fast and lightweight. - 🧠 Smart Auto-Parsing: Automatically detects JSON or Binary (Buffer) responses. Image manipulation endpoints (Canvas) return Buffers seamlessly.
- 🪄 TypeScript Ready: Ships with native
.d.tsdefinitions. Enjoy full IDE Autocomplete (IntelliSense) for all 200+ endpoints. - 🛡️ Robust Error Handling: Automatically formats and handles rate limits and HTTP errors gracefully.
📦 Installation
npm install @azzamcodex/vexoRequires Node.js 18.0.0 or newer.
🔑 Quick Start
First, grab your free API Key from the Vexo API Dashboard.
CommonJS (CJS)
const Vexo = require('@azzamcodex/vexo');
const vexo = new Vexo('YOUR_API_KEY');
async function run() {
// 🤖 1. Chat with Gemini AI
const aiResponse = await vexo.ai.gemini('Hello, who are you?');
console.log(aiResponse.data);
// 📥 2. Download TikTok Video (No Watermark)
const tiktok = await vexo.downloader.tiktokHd('https://tiktok.com/@username/video/123');
console.log(tiktok.data.url);
}
run();ECMAScript Modules (ESM)
import Vexo from '@azzamcodex/vexo';
const vexo = new Vexo('YOUR_API_KEY');
// 🕌 Fetch Islamic Prayer Times
const jadwal = await vexo.islamic.jadwalSholat('Jakarta');
console.log(jadwal.data);📚 Available Modules
Vexo SDK categorizes its 200+ endpoints logically so you can find what you need instantly:
vexo.ai- LLMs (Gemini, Llama, DeepSeek), Image Generation, etc.vexo.downloader- TikTok, YouTube, Spotify, Instagram, Facebook, etc.vexo.canvas- 30+ Image manipulation effects (Batslap, Blur, Wasted, etc.)vexo.berita- Scrape news from Kompas, CNN, Tribun, etc.vexo.islamic- Quran, Hadits, Prayer Times.vexo.tools- Subdomain Scanner, Auto Translate, TTS, Temp Mail.vexo.search- Playstore, Google, YouTube Search.vexo.games- Word games, trivia, quizzes.vexo.random- Random anime quotes, waifu images, etc.vexo.maker- TextPro & PhotoOxy generation.
Need an unlisted endpoint?
You can use the universal custom method for any beta or undocumented endpoints:
const result = await vexo.custom('/api/beta/new-feature', { param1: 'value' });🖼️ Handling Image Buffers (Canvas)
When calling endpoints that generate images, the SDK automatically returns a Node.js Buffer.
const fs = require('fs');
const Vexo = require('@azzamcodex/vexo');
const vexo = new Vexo('YOUR_API_KEY');
async function createMeme() {
// Generates a "Batslap" meme image
const imageBuffer = await vexo.canvas.batslap(
'https://example.com/avatar1.png',
'https://example.com/avatar2.png'
);
// Save directly to your file system
fs.writeFileSync('./meme.png', imageBuffer);
console.log('Meme saved successfully!');
}🤝 Support & Contributing
If you encounter any issues or have feature requests, please check out the Official GitHub Repository or contact Azzam Codex.
