npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

reelscribe

v1.0.3

Published

Official Node.js/TypeScript SDK for the ReelScribe API — transcribe Instagram Reels, TikTok videos, and YouTube shorts programmatically.

Downloads

76

Readme

ReelScribe Node.js SDK

Official Node.js/TypeScript client for the ReelScribe API — transcribe Instagram Reels, TikTok videos, and YouTube Shorts programmatically.

npm version License: MIT

Installation

npm install reelscribe

Quick Start

import { ReelScribe } from 'reelscribe'

const rs = new ReelScribe('rs_your_api_key')

// Submit a video for transcription
const { requestId } = await rs.transcribe({
  url: 'https://www.instagram.com/reel/ABC123/',
})

// Poll for the result
const transcription = await rs.getTranscription({ requestId })
console.log(transcription.transcription)

Get your API key from the ReelScribe dashboard.

Usage

Transcribe a Video

Submit an Instagram Reel, TikTok video, or YouTube Short for transcription. Costs 1 credit per request.

const result = await rs.transcribe({
  url: 'https://www.youtube.com/shorts/dQw4w9WgXcQ',
})

console.log(result.requestId) // use this to check status

With Webhook

Instead of polling, provide a resumeUrl to receive a POST when the transcription is ready:

const result = await rs.transcribe({
  url: 'https://www.tiktok.com/@user/video/1234567890',
  resumeUrl: 'https://your-server.com/webhook',
})

Your server will receive the full transcription result as a POST request. See the webhook docs for the payload format.

Get a Transcription

Retrieve a transcription by the requestId returned from transcribe():

const t = await rs.getTranscription({ requestId: '550e8400-...' })

console.log(t.status)         // 'completed'
console.log(t.transcription)  // 'The full transcription text...'
console.log(t.caption)        // Original post caption
console.log(t.hashtags)       // ['tag1', 'tag2']
console.log(t.stats)          // { likes: 1234, views: 56789, comments: 42 }
console.log(t.segments)       // [{ start: 0, end: 2.5, text: 'Hello...' }]

Or fetch by Convex document ID:

const t = await rs.getTranscription({ id: 'abc123' })

List Transcriptions

// All transcriptions
const { transcriptions, total } = await rs.listTranscriptions()

// Filter by status
const completed = await rs.listTranscriptions({ status: 'completed' })

Check Credits

const credits = await rs.getCredits()

console.log(credits.credits)            // 450
console.log(credits.tier)               // 'creator'
console.log(credits.subscriptionStatus) // 'active'
console.log(credits.storageUsed)        // 42
console.log(credits.storageLimit)       // 100

Settings

// Read settings
const settings = await rs.getSettings()
console.log(settings.autoPruneStorage) // true

// Update settings
await rs.updateSettings({ autoPruneStorage: false })

Health Check

const health = await rs.health()
console.log(health.healthy) // true

Error Handling

All API errors throw a ReelScribeError with a machine-readable code and HTTP status:

import { ReelScribe, ReelScribeError } from 'reelscribe'

try {
  await rs.transcribe({ url: 'https://www.instagram.com/reel/ABC123/' })
} catch (err) {
  if (err instanceof ReelScribeError) {
    console.log(err.code)    // 'INSUFFICIENT_CREDITS'
    console.log(err.status)  // 402
    console.log(err.message) // 'You need at least 1 credit'
  }
}

| Code | Status | Description | |------|--------|-------------| | INVALID_REQUEST | 400 | Bad request body or missing fields | | INVALID_URL | 400 | Unsupported video platform | | UNAUTHORIZED | 401 | Missing or invalid API key | | INSUFFICIENT_CREDITS | 402 | No credits remaining | | STORAGE_LIMIT | 403 | Transcript storage full | | NOT_FOUND | 404 | Transcription not found | | SERVICE_ERROR | 503 | Transcription service unavailable (credit refunded) |

Configuration

const rs = new ReelScribe('rs_your_api_key', {
  // Override the base URL (useful for testing)
  baseUrl: 'https://staging.reelscribe.app',
  // Provide a custom fetch implementation
  fetch: myCustomFetch,
})

Supported Platforms

| Platform | Example URL | |----------|-------------| | Instagram Reels | https://www.instagram.com/reel/ABC123/ | | TikTok Videos | https://www.tiktok.com/@user/video/1234567890 | | YouTube Shorts | https://www.youtube.com/shorts/dQw4w9WgXcQ | | YouTube Videos | https://www.youtube.com/watch?v=dQw4w9WgXcQ |

Requirements

  • Node.js 18+ (uses native fetch)
  • A ReelScribe account with API access

Links

License

MIT


Built by SIÁN Agency