A high-performance, production-ready Node.js and TypeScript library designed to check Instagram username availability. Unlike simple fetch scripts, this SDK implements professional-grade networking features including HTTP/1.1 Connection Pooling, Parallel Concurrency Control, and Memory Caching.
- 📦 Dual-Mode Support: Native ESM and CommonJS (CJS) support. Works perfectly with
importorrequire(). - ⚡ High Performance: Uses a Persistent HTTPS Agent to reuse sockets, significantly reducing latency for batch checks.
- 🛡️ Robust Error Handling: Built-in exponential backoff retries for network flakiness.
- 💾 Smart Caching: Integrated TTL-based memory cache to prevent redundant API hits.
- 🚦 Concurrency Control: Process thousands of usernames without hitting rate limits or crashing your event loop.
- 🔷 TypeScript Native: Written in TS with full type definitions exported for a 10/10 developer experience.
# Using npm
npm install insta-checker-sdk
# Using bun
bun add insta-checker-sdk
# Using yarn
yarn add insta-checker-sdk
import InstaChecker from 'insta-checker-sdk';
const checker = new InstaChecker();
const { available, cached } = await checker.checkUsername('creative_name');
console.log(`Username is ${available ? 'FREE' : 'TAKEN'}`);const { InstaChecker } = require('insta-checker-sdk');
const checker = new InstaChecker({ timeout: 3000 });
checker.checkUsername('google').then(result => {
console.log(result.available); // false
});MIT © Abdou-da0wew