@vanmoose/sdk
v1.0.0
Published
Official JavaScript/TypeScript SDK for Van Moose APIs - 70+ production-ready APIs for developers
Maintainers
Readme
Van Moose SDK
Official JavaScript/TypeScript SDK for Van Moose APIs - 70+ production-ready APIs for developers.
Installation
npm install @vanmoose/sdk
# or
yarn add @vanmoose/sdk
# or
pnpm add @vanmoose/sdkQuick Start
import { createClient } from '@vanmoose/sdk'
// Create a client with your RapidAPI key
const vanmoose = createClient({
apiKey: process.env.RAPIDAPI_KEY
})
// Capture a screenshot
const screenshot = await vanmoose.screenshot({
url: 'https://example.com',
width: 1280,
height: 800
})Get Your API Key
- Sign up at RapidAPI
- Subscribe to any Van Moose API
- Copy your RapidAPI key from the dashboard
Available APIs
Image Generation
// Screenshot - Capture any website
const screenshot = await vanmoose.screenshot({
url: 'https://github.com',
fullPage: true,
format: 'png'
})
// QR Code - Generate QR codes
const qr = await vanmoose.generateQRCode({
data: 'https://vanmoose.cc',
size: 300,
color: '#000000'
})Email Validation
// Verify email addresses with MX, disposable, and syntax checks
const result = await vanmoose.verifyEmail({
email: '[email protected]'
})
console.log(result.valid) // true/false
console.log(result.disposable) // Is it a disposable email?
console.log(result.score) // Quality score 0-100Web Intelligence
// Detect website tech stack
const tech = await vanmoose.detectTechStack({
url: 'https://github.com'
})
console.log(tech.technologies)
// [{ name: 'React', confidence: 100 }, { name: 'Node.js', ... }]
// Extract link preview data
const preview = await vanmoose.unfurl({
url: 'https://dev.to'
})
console.log(preview.title, preview.description, preview.image)NLP & Text Analysis
// Sentiment analysis
const sentiment = await vanmoose.analyzeSentiment({
text: 'I love using Van Moose APIs!'
})
console.log(sentiment.sentiment) // 'positive'
console.log(sentiment.score) // 0.95
// Language detection
const language = await vanmoose.detectLanguage({
text: 'Bonjour le monde'
})
console.log(language.language) // 'French'
console.log(language.languageCode) // 'fr'
// Keyword extraction
const keywords = await vanmoose.extractKeywords({
text: 'Van Moose provides developer APIs for screenshots and email validation',
limit: 5
})Developer Utilities
// Generate UUIDs
const uuids = await vanmoose.generateUUID({
version: 'v4',
count: 5
})
// Generate secure passwords
const passwords = await vanmoose.generatePassword({
length: 20,
symbols: true
})
// Hash data
const hash = await vanmoose.hash({
data: 'hello world',
algorithm: 'sha256'
})TypeScript Support
This SDK is written in TypeScript and provides full type definitions for all APIs.
import { createClient, ScreenshotOptions, ScreenshotResponse } from '@vanmoose/sdk'
const options: ScreenshotOptions = {
url: 'https://example.com',
fullPage: true
}
const result: ScreenshotResponse = await vanmoose.screenshot(options)Error Handling
try {
const result = await vanmoose.screenshot({ url: 'invalid-url' })
} catch (error) {
console.error('API Error:', error.message)
}All 70+ APIs
Van Moose provides APIs across 10 categories:
| Category | APIs | |----------|------| | Image Generation | Screenshot, Social Card, Placeholder, Favicon, QR Code, Barcode, Avatar, Gradient, Pattern | | Image Processing | Image Compress, Image Resize | | Web Scraping | Tech Stack, Metadata, Unfurl, Readable, PriceWatch, RSS Feed, Sitemap, Link Checker, PDF Generate | | Validation | Email Verify, NameCheck, WHOIS, Brand Intel, ForgeScore, Phone Validate, VAT Validate, Address Verify, Disposable Email | | Security | Breach Check, VPN Detect | | Text Processing | NLP Tools, Markdown, Markup, Diff Tools, TextTools, Lorem, Slugify, Email Template, Profanity, Language Detect, Readability | | Network Tools | IP Geolocation, Network Tools, User Agent, URL Shortener, URL Parser | | Developer Utils | JWT, Hash Tools, Crypto Tools, UUID Generator, Password Generator, Regex Tester, Cron Parser, MIME Lookup | | Data & Reference | Company Lookup, Country Info, Holiday API, Fake Data | | Converters | Data Converter, Color Converter, Unit Converter, Timezone |
Links
License
MIT License - see LICENSE for details.
Made with love by Van Moose in Amsterdam
