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

deepfilternet3-assets

v1.0.4

Published

DeepFilterNet3 WASM and model assets for noise suppression

Readme

deepfilternet3-assets

DeepFilterNet3 WASM and model assets for noise suppression.

Installation

npm install deepfilternet3-assets
# or
yarn add deepfilternet3-assets

Contents

This package includes:

  • pkg/df_bg.wasm - DeepFilterNet3 WebAssembly binary
  • models/DeepFilterNet3_onnx.tar.gz - DeepFilterNet3 ONNX model

Usage

Getting Asset Paths (Node.js)

const { getWasmPath, getModelPath, getAssetPaths } = require('deepfilternet3-assets');

// Get individual paths
const wasmPath = getWasmPath();
const modelPath = getModelPath();

// Or get both at once
const { wasm, model } = getAssetPaths();

Using with Web Bundlers

For web applications, you can use the relative paths:

const { WASM_RELATIVE_PATH, MODEL_RELATIVE_PATH } = require('deepfilternet3-assets');

// Then use with your bundler's asset handling
// For example, with Webpack or Vite

Serving Assets via CDN or Static Server

You can copy these files to your static assets directory or CDN:

const fs = require('fs');
const { getAssetPaths } = require('deepfilternet3-assets');

const assets = getAssetPaths();

// Copy to your public directory
fs.copyFileSync(assets.wasm, './public/wasm/df_bg.wasm');
fs.copyFileSync(assets.model, './public/models/DeepFilterNet3_onnx.tar.gz');

TypeScript Support

This package includes TypeScript type definitions:

import { getAssetPaths, WASM_RELATIVE_PATH, MODEL_RELATIVE_PATH } from 'deepfilternet3-assets';

const { wasm, model } = getAssetPaths();

// Use relative paths for URLs
console.log(WASM_RELATIVE_PATH);   // 'pkg/df_bg.wasm'
console.log(MODEL_RELATIVE_PATH);  // 'models/DeepFilterNet3_onnx.tar.gz'

File Sizes

  • WASM file: 8.8 MB
  • Model file: 7.7 MB
  • Total package size: ~10.4 MB (compressed), ~17.1 MB (unpacked)

Make sure your CDN or server can handle these file sizes efficiently.

API Reference

Functions

  • getWasmPath() - Returns absolute path to the WASM file
  • getModelPath() - Returns absolute path to the model file
  • getAssetPaths() - Returns object with both asset paths: { wasm: string, model: string }

Constants

  • WASM_RELATIVE_PATH - Relative path to WASM file: 'pkg/df_bg.wasm'
  • MODEL_RELATIVE_PATH - Relative path to model file: 'models/DeepFilterNet3_onnx.tar.gz'

Example

See example.js for a complete working example.

License

(Apache-2.0 OR MIT)

Credits

DeepFilterNet3 is developed by Rikorose. This package only distributes the compiled assets.