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

@capsiynau/sdk-transcribe

v1.0.0

Published

Node SDK for the Capsiynau transcription API. Wraps POST /v1/transcribe, job polling, and typed errors. Welsh and English first-class. Browser support follows once the token-mint endpoint ships.

Readme

@capsiynau/sdk-transcribe

Node SDK for the Capsiynau transcription API. Wraps POST /v1/transcribe, job polling, and typed errors. Welsh and English first-class.

Status: pre-alpha. Scaffolding and design landed; implementation work next. v1.0 scope is intentionally tight (Node + API key, transcription only). Browser support and voice-notes are deferred to sibling packages — see DESIGN.md §7 and the Roadmap below.

Why this exists

Capsiynau's /v1/transcribe endpoint already powers PMA, Nodiadau, and internal apps. Third-party integrators currently hit raw HTTP, parse a non-uniform error envelope, and re-implement job polling. This SDK is the shared, opinionated Node-side wrapper.

Welsh is a first-class citizen. The language parameter is required (no autodetect — a Capsiynau P0 lesson, see DESIGN.md), and Welsh fixtures appear in at least half the documented examples.

Install

npm install @capsiynau/sdk-transcribe

Not yet published. Will publish once TranscriptionClient lands.

30-second sketch

import { TranscriptionClient } from '@capsiynau/sdk-transcribe'

const client = new TranscriptionClient({
  apiKey: process.env.CAPSIYNAU_API_KEY,
})

// Submit a transcription job. The project must already exist in
// Capsiynau (or pass an assetId - same shape).
const job = await client.submit({
  projectId: 'proj_abc123',
  fileUrl: 'https://example.com/audio.mp3',
  language: 'cy',                    // required; never autodetected
})
// job: { jobId, projectId, status: 'queued', ... }

await client.waitFor(job.jobId, { timeoutMs: 600_000 })
// Resolves when the job reaches status: 'completed'. The SDK handles
// jittered backoff and transient errors.

const transcript = await client.getTranscript(job.projectId)
// { project_id, title, source_language, segments: [...] }

console.log(transcript.segments[0].text)

What's in the box (v1.0)

| Module | Purpose | |--------|---------| | TranscriptionClient | Wraps POST /v1/transcribe, job polling (GET /v1/status), transcript retrieval (GET /v1/export?format=json), and retry policy. | | Typed errors | AuthError, QuotaError, PlanGateError, NetworkError, ValidationError, ServerError. Parsed from today's { error: '<string>' } envelope; will upgrade to structured codes once the server-side normaliser middleware ships. |

Surface and rationale in DESIGN.md.

What this SDK does not do

  • No browser usage in v1.0. Browser path requires the /v1/auth/token short-lived mint endpoint, which is on the roadmap but not built server-side. Node-only for now.
  • No autodetect of source language. Caller passes language. Period.
  • No exposed AI knobs. engine selection is server-side; the SDK always sends the platform default. AI infrastructure is invisible.
  • No voice recording, no timecode helpers, no in-place transcript edits. Those live in a planned sibling package @capsiynau/sdk-voice-notes (not yet started) and depend on a /v1/notes resource that does not exist server-side today.
  • No live streaming mode. Live captions today go through the worker's relay on feature/phase-15-live-relay, which is not yet bracketed under a v1 wire contract.

Cross-package notes

  • Welsh language utilities (normalisation, mutations, digraphs, glossary helpers) live in @capsiynau/intelligence. The two packages stay separate by design. Re-exporting intelligence symbols through sdk-transcribe would drag every consumer's bundle up with Welsh-specific code they may not need, couple release cadence, and frame Welsh as mandatory rather than supported. Consumers who need Welsh-aware text handling alongside transcripts depend on both packages explicitly.
  • @capsiynau/sdk-voice-notes will be a future sibling once the /v1/notes resource exists server-side. The two SDKs share auth, errors, and language conventions but not transport implementations.
  • The Capsiynau live-relay worker is the server counterpart for any future live mode. Edits there land on feature/phase-15-live-relay, not main (branch invariant).

Roadmap

  • v1.0TranscriptionClient (Node, API key auth). Submit + poll. Typed errors against the current { error: '<string>' } envelope.
  • v1.1 — Browser support via /v1/auth/token short-lived token mint (depends on the server-side mint endpoint; see DESIGN.md §1 and §9).
  • v1.2 — Correction-signal emit (POST /v1/transcripts/:id/corrections or equivalent; endpoint does not exist today). Wires Nodiadau-style edits into the @capsiynau/intelligence glossary loop.
  • v2.x — Live mode WebSocket, once the worker relay is bracketed under a v1 contract.

License

MIT