JSPM

@vanmoose/sdk

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q30117F
  • License MIT

Official JavaScript/TypeScript SDK for Van Moose APIs - 70+ production-ready APIs for developers

Package Exports

  • @vanmoose/sdk

Readme

Van Moose SDK

Official JavaScript/TypeScript SDK for Van Moose APIs - 70+ production-ready APIs for developers.

npm version License: MIT

Installation

npm install @vanmoose/sdk
# or
yarn add @vanmoose/sdk
# or
pnpm add @vanmoose/sdk

Quick 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

  1. Sign up at RapidAPI
  2. Subscribe to any Van Moose API
  3. 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: 'test@example.com'
})

console.log(result.valid) // true/false
console.log(result.disposable) // Is it a disposable email?
console.log(result.score) // Quality score 0-100

Web 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

License

MIT License - see LICENSE for details.


Made with love by Van Moose in Amsterdam