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

utaujs

v0.1.0

Published

Parametric vocal synthesis engine

Readme

UTAU.js

Parametric singing voice synthesis in the browser and Node.js. Implements a source-filter model with an LF glottal source and cascaded formant filter.

Visit the live demo!

npm install utaujs

Features

  • LF Glottal Source - Liljencrants-Fant pulse model with independent control of OQ, SQ, tenseness, aspiration noise, jitter, and shimmer
  • Formant Cascade - Series of resonators and anti-resonators modelling the vocal-tract transfer function, with smooth cross-phoneme interpolation
  • Three Languages - English (ARPAbet + CMUDict G2P), Japanese (hiragana/ romaji + kanji), Mandarin (pinyin decomposition). Extensible via registerLanguage
  • File Import / Export - 16 import + 14 export formats from UTAU, VOCALOID, Synthesizer V, CeVIO, MusicXML, Standard MIDI, and more via utaformatix-ts
  • Streaming Playback - AsyncGenerator-based render pipeline with Web Audio batch scheduling and buffer pooling
  • OneVoice System - One parametric voice config tuned to perceptual dimensions. scaleVoice() maps high-level sliders (gender, breathiness, brightness, tension) to the underlying DSP parameters
  • Zero Native Dependencies - Pure TypeScript, runs anywhere Node.js 18+ or a modern browser runs

Quickstart

import { renderScore, femaleVoice, japanese, encodeWav } from "utaujs";
import { writeFileSync } from "node:fs";

const score = {
  tempos: [{ tick: 0, tempo: 120 }],
  resolution: 480,
  notes: [
    { lyric: "こ", noteNum: 60, length: 480 },
    { lyric: "ん", noteNum: 62, length: 480 },
    { lyric: "に", noteNum: 64, length: 480 },
    { lyric: "ち", noteNum: 65, length: 480 },
    { lyric: "は", noteNum: 67, length: 960 },
  ],
};

const chunks = await renderScore(score, femaleVoice, "jp");
const wav = encodeWav(chunks);
writeFileSync("hello.wav", Buffer.from(wav));

Stream to audio output in the browser:

import { streamScore, femaleVoice, japanese, StreamPlayer } from "utaujs";

const player = new StreamPlayer();
await player.play(streamScore(score, femaleVoice, "jp"));

API Overview

| Export | Description | |--------------------------------------------------------------|----------------------------------------------| | renderScore | Render full score to AudioChunk[] | | streamScore | Render score as AsyncGenerator for streaming | | encodeWav | Encode AudioChunk[] to WAV bytes | | mixChunks | Mix overlapping chunks into a single buffer | | buildVoice / scaleVoice | Create and parameterize VoiceConfig presets | | maleVoice / femaleVoice | Built-in voice presets | | japanese / english / mandarin | Language modules with G2P | | importScoreFromFile / importScoreFromBytes | Import file formats | | exportScoreToBytes / exportScoreToBlob / downloadScore | Export to any format | | scoreToUfData / ufDataToScore | Low-level UtaFormatix data conversion | | StreamPlayer | Web Audio playback with real-time scheduling | | registerLanguage / registerVoice | Extend with custom languages or voices |

Full API reference at Docs/ or https://nellowtcs.me/UTAU.js/docs.

Architecture

mindmap
  root((UTAU.js))
    Core DSP
      LFGlottalSource
      FormantCascade
      NoiseSource
      Envelope / Mix
    Languages
      Japanese G2P
      English CMUDict
      Mandarin Pinyin
    Synth
      Renderer
      Streamer
      Chunk Mixer
    Voices
      Presets (male, female)
      Builder / Scaler
    IO
      Import (utaformatix-ts)
      Export (utaformatix-ts)
      WAV encoder

Development

# clone with submodules (required for CMUDict)
git clone https://github.com/NellowTCS/UTAU.js.git --recurse-submodules
cd UTAU.js/Build

npm install
npm run build     # builds G2P data + library
npm test          # 160+ tests via Jest
npm run typecheck # tsc --noEmit
npm run lint      # ESLint

The docs site lives in Docs/ and uses DocMD. To preview:

cd Docs
npm install
npm run dev

License

MIT - see LICENSE.