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

audiolasso

v0.1.1

Published

TypeScript SDK and CLI for the AudioLasso audio separation API.

Readme

AudioLasso

TypeScript SDK, CLI, and MCP server for the AudioLasso audio separation API.

AudioLasso separates specific sounds from audio or video with plain-language prompts. Use it from backend apps, local scripts, CI jobs, and coding agents.

Install

npm install audiolasso

To test the packaged artifact from this repository before a release:

pnpm package:pack
npm install ./packages/audiolasso/audiolasso-0.1.1.tgz

The package requires Node.js 20 or newer.

Quickstart

Create an API key in the AudioLasso dashboard and set:

export AUDIOLASSO_API_KEY="al_live_..."
import { createAudioLasso } from "audiolasso";

const client = createAudioLasso({
  apiKey: process.env.AUDIOLASSO_API_KEY,
});

const job = await client.separate({
  audioUrl: "https://example.com/audio.wav",
  prompt: "isolate the lead vocal",
});

const result = await client.waitForResult(job.request_id, { logs: true });

console.log(result.data.target.url);
console.log(result.data.residual.url);

Upload a local file

import { createAudioLasso } from "audiolasso";

const client = createAudioLasso();

const upload = await client.uploadFile("./song.wav");

const job = await client.separate({
  fileId: upload.file_id,
  prompt: "isolate the vocals",
});

const result = await client.waitForResult(job.request_id, { logs: true });

console.log(result.data.target.url);

SDK methods

The simplest methods are:

  • client.separate(...)
  • client.getStatus(...)
  • client.getResult(...)
  • client.waitForResult(...)
  • client.createUpload(...)
  • client.uploadFile(...)
  • client.getFile(...)
  • client.listModels()

Grouped methods are also available if you prefer them:

  • client.audio.separate(...)
  • client.queue.status(...)
  • client.queue.result(...)
  • client.queue.waitForResult(...)
  • client.queue.streamStatus(...)
  • client.files.createUpload(...)
  • client.files.upload(...)
  • client.files.get(...)
  • client.models.list()

Error handling

API failures throw AudioLassoApiError.

import { AudioLassoApiError, createAudioLasso } from "audiolasso";

try {
  await createAudioLasso().separate({
    audioUrl: "https://example.com/audio.wav",
    prompt: "isolate the lead vocal",
  });
} catch (error) {
  if (error instanceof AudioLassoApiError) {
    console.error(error.status, error.code, error.message);
  }
}

CLI

npx audiolasso --help

Log in from the browser:

npx audiolasso login

Separate a local file and download outputs:

audiolasso separate ./song.wav \
  --prompt "isolate the vocals" \
  --stream \
  --output-dir ./stems

Separate a public URL and print JSON:

audiolasso separate https://example.com/audio.wav \
  --prompt "remove crowd noise" \
  --json

Check status:

pnpm audiolasso status req_abc123 --logs

Fetch a completed result:

audiolasso result req_abc123 --download --output-dir ./stems

MCP server

Use the stdio MCP server when you want an agent to call AudioLasso tools directly.

{
  "mcpServers": {
    "audiolasso": {
      "command": "npx",
      "args": ["-y", "audiolasso", "mcp"],
      "env": {
        "AUDIOLASSO_API_KEY": "al_live_..."
      }
    }
  }
}

The MCP server exposes tools for uploading local files, submitting separation jobs, checking status, waiting for results, fetching completed outputs, and listing models.

Webhooks

await client.separate({
  audioUrl: "https://example.com/audio.wav",
  prompt: "separate the piano",
  webhookUrl: "https://example.com/webhooks/audiolasso",
  webhookSecret: process.env.AUDIOLASSO_WEBHOOK_SECRET,
  metadata: {
    userId: "user_123",
  },
});

Webhook events are signed with AudioLasso-Signature as HMAC SHA-256 over:

{AudioLasso-Timestamp}.{raw_body}

Links

  • API docs: https://audiolasso.dev/docs
  • OpenAPI spec: https://audiolasso.dev/v1/openapi.json