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

@ameva/forge

v0.1.0

Published

High-Performance Browser-Native Tensor Computation Engine & Reverse-Mode Autograd Framework Powered by WebGPU

Readme

@ameva/forge

High-Performance Browser-Native Tensor Computation Engine & Reverse-Mode Autograd Framework Powered by WebGPU.

npm version License: MIT WebGPU Acceleration Tests

An industrial-grade, zero-server-cost deep learning runtime engineered to execute high-throughput tensor operations, automatic differentiation, and end-to-end neural model training natively inside client WebGPU and WebAssembly runtimes.


Key Features

  1. Deterministic Autograd & Topological Execution: Reverse-mode automatic differentiation graph with cycle detection, multi-output tuple bindings, in-place version tracking, and scalar-tensor memory optimization.
  2. WebGPU Hardware Acceleration: Direct-to-silicon WGSL compute shaders featuring 8-dimensional non-contiguous stride dispatching, 2D workgroup partitioning ($65,535 \times 65,535$), and explicit buffer lifecycle recycling.
  3. PyTorch 1:1 API Parity: Seamless drop-in compatibility across neural layers (nn.Module, nn.MultiheadAttention, nn.Conv2d), mathematical primitives (linalg, fft, special), and probabilistic models (distributions).
  4. Zero-Server Infrastructure: Execute full model fine-tuning and inference directly inside the browser using Pyodide and WebGPU with zero cloud compute cost and total data privacy.

Installation

npm install @ameva/forge

Quick Start

import { Tensor, nn, optim } from '@ameva/forge';

// Initialize WebGPU Tensor Context
const x = new Tensor([1.0, 2.0, 3.0, 4.0], { shape: [2, 2], requiresGrad: true });
const w = new Tensor([0.5, -0.5, 1.0, 2.0], { shape: [2, 2], requiresGrad: true });

// Forward Pass
const y = x.matmul(w).relu().sum();

// Reverse-Mode Automatic Differentiation
y.backward();

console.log('Output Value:', y.item());
console.log('Gradients of x:', x.grad.toArray());

Architecture

+-----------------------------------------------------------------------------------+
|                            AMEVA-Forge User Space                                 |
|   forge.nn  |  forge.optim  |  forge.linalg  |  forge.fft  |  forge.distributions |
+-----------------------------------------------------------------------------------+
|                      Reverse-Mode Autograd DAG Engine                             |
|       Vector-Jacobian Products (VJP)  *  In-Place Mutation Version Locks          |
+-----------------------------------------------------------------------------------+
|                         Hardware Abstraction Layer                                |
|   CPU Backend (Vectorized C/NumPy)  <--->  WebGPU Backend (Async WGSL Kernels)    |
|   Staging Buffer Recycling Pool     <--->  Zero-Leak Allocation Token Ring        |
+-----------------------------------------------------------------------------------+

License

MIT License. Copyright (c) 2026 uno-km (AMEVA Foundation).