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

neural-amp-modeler-wasm

v1.0.40

Published

Neural Amp Modeler WebAssembly React Component

Readme

Neural Amp Modeler WebAssembly React Component

This is a TONE3000 fork of Steve Atkinson's Neural Amp Modeler Core DSP library, specifically adapted to run Neural Amp Modeler inference in web browsers using WebAssembly. This enables real-time audio modeling directly in the browser without requiring native plugins.

The original Neural Amp Modeler Core is a C++ DSP library for NAM plugins. This fork extends its capabilities to the web platform, allowing you to run Neural Amp Modeler models in any modern web browser.

screenshot

Installation

npm install neural-amp-modeler-wasm

WASM Files Setup

Before using the component, you need to host the WebAssembly files at the root of your project. These files are required for the component to function:

  1. Copy the following files from the repository to your project's public directory:

  2. Make sure these files are accessible at the root of your web server (e.g., https://your-domain.com/t3k-wasm-module.wasm)

Usage

import {
  T3kPlayer,
  T3kPlayerContextProvider,
  PREVIEW_MODE,
} from 'neural-amp-modeler-wasm';
import 'neural-amp-modeler-wasm/dist/styles.css';

function App() {
  return (
    <T3kPlayerContextProvider>
      <T3kPlayer
        models={[
          {
            name: 'Vox AC10',
            url: 'https://raw.githubusercontent.com/tone-3000/neural-amp-modeler-wasm/refs/heads/main/ui/public/models/ac10.nam',
            default: true,
          },
          {
            name: 'Fender Deluxe Reverb',
            url: 'https://raw.githubusercontent.com/tone-3000/neural-amp-modeler-wasm/refs/heads/main/ui/public/models/deluxe.nam',
          },
        ]}
        irs={[
          {
            name: 'None',
            url: '',
          },
          {
            name: 'Celestion',
            url: 'https://raw.githubusercontent.com/tone-3000/neural-amp-modeler-wasm/refs/heads/main/ui/public/irs/celestion.wav',
            default: true,
          },
          {
            name: 'EMT 140 Plate Reverb',
            url: 'https://raw.githubusercontent.com/tone-3000/neural-amp-modeler-wasm/refs/heads/main/ui/public/irs/plate.wav',
            mix: 0.5, // Optional: wet/dry mix (0-1)
            gain: 1.0, // Optional: gain adjustment
          },
        ]}
        inputs={[
          {
            name: 'Mayer - Guitar',
            url: 'https://raw.githubusercontent.com/tone-3000/neural-amp-modeler-wasm/refs/heads/main/ui/public/inputs/Mayer%20-%20Guitar.wav',
            default: true,
          },
          {
            name: 'Downtown - Bass',
            url: 'https://raw.githubusercontent.com/tone-3000/neural-amp-modeler-wasm/refs/heads/main/ui/public/inputs/Downtown%20-%20Bass.wav',
          },
        ]}
        previewMode={PREVIEW_MODE.MODEL}
        isLoading={false}
        onPlay={({ model, ir, input }) => {
          console.log('Playing with:', { model, ir, input });
        }}
        onModelChange={model => {
          console.log('Model changed to:', model);
        }}
        onInputChange={input => {
          console.log('Input changed to:', input);
        }}
        onIrChange={ir => {
          console.log('IR changed to:', ir);
        }}
      />
    </T3kPlayerContextProvider>
  );
}

Component Props

The T3kPlayer component accepts the following props:

models

Array of model objects, each containing:

  • name: Display name for the model
  • url: URL to the NAM model file
  • default: Optional boolean to mark as default selection

irs

Array of IR (Impulse Response) objects, each containing:

  • name: Display name for the IR
  • url: URL to the IR file (use empty string for "None")
  • mix: Optional wet/dry mix ratio (0-1)
  • gain: Optional gain adjustment
  • default: Optional boolean to mark as default selection

inputs

Array of input audio objects, each containing:

  • name: Display name for the input
  • url: URL to the audio file
  • default: Optional boolean to mark as default selection

previewMode

Optional enum value to control the preview mode:

  • PREVIEW_MODE.MODEL: Show model selection interface (default)
  • PREVIEW_MODE.IR: Show IR selection interface

isLoading

Optional boolean to show loading state

Event Callbacks

onPlay

Callback function triggered when audio playback starts:

onPlay?: ({ model, ir, input }: {
  model: Model,
  ir: IR,
  input: Input
}) => void;

onModelChange

Callback function triggered when model selection changes:

onModelChange?: (model: Model) => void;

onInputChange

Callback function triggered when input selection changes:

onInputChange?: (input: Input) => void;

onIrChange

Callback function triggered when IR selection changes:

onIrChange?: (ir: IR) => void;

Requirements

  • Your web server must include the following CORS headers to enable WebAssembly and SharedArrayBuffer support:
    Cross-Origin-Embedder-Policy: require-corp
    Cross-Origin-Opener-Policy: same-origin
    These headers are required because WebAssembly audio processing uses SharedArrayBuffer, which requires these security policies to be enabled.

Development

This package is part of the neural-amp-modeler-wasm project, which includes both the WebAssembly compilation code and the React UI components. For more information about the project structure and development setup, please refer to the main repository.

License

MIT