DEV Community

Alex Spinov
Alex Spinov

Posted on

Wasmer Has a Free Registry — Share and Run WebAssembly Packages Like npm for WASM

WebAssembly Has a Package Manager Now

Wasmer Registry (wapm.io) lets you publish and install WebAssembly packages. Run any WASM binary from the command line. Free and open-source.

Setup

curl https://get.wasmer.io -sSfL | sh
Enter fullscreen mode Exit fullscreen mode

Run Packages Instantly

# Run Python in WASM
wasmer run python/python -- -c "print(42 * 42)"

# Run SQLite
wasmer run syrusakbary/sqlite -- test.db "CREATE TABLE users (id INT, name TEXT)"

# Run ffmpeg
wasmer run nicholasgasior/ffmpeg -- -i input.mp4 output.mp3
Enter fullscreen mode Exit fullscreen mode

No installation. No dependencies. Just WASM.

Publish a Package

# Build your Rust/C/Go code to WASM
cargo build --target wasm32-wasi

# Create wasmer.toml
wasmer init

# Publish
wasmer publish
Enter fullscreen mode Exit fullscreen mode

Use WASM in JavaScript

import { init, WASI } from "@wasmer/wasi";

await init();
const wasi = new WASI({ args: [], env: {} });
const response = await fetch("https://registry.wasmer.io/packages/my-package/my-pkg.wasm");
const module = await WebAssembly.compile(await response.arrayBuffer());
const instance = wasi.instantiate(module, {});
instance.exports._start();
Enter fullscreen mode Exit fullscreen mode

Why WASM Matters

  • Run any language in the browser (Rust, C, Go, Python)
  • Near-native performance
  • Sandboxed execution (secure by default)
  • Cross-platform (browser, server, edge, IoT)
  • Docker alternative for lightweight containers

WASM vs Docker

Feature WASM Docker
Startup Microseconds Seconds
Size KBs-MBs MBs-GBs
Sandbox Built-in Needs config
Cross-platform Universal Linux-native
Use case Functions, plugins Full apps

More | GitHub


Need custom dev tools, scrapers, or API integrations? I build automation for dev teams. Email spinov001@gmail.com — or explore awesome-web-scraping.


More from me: 10 Dev Tools I Use Daily | 77 Scrapers on a Schedule | 150+ Free APIs
Also: Neon Free Postgres | Vercel Free API | Hetzner 4x More Server
NEW: I Ran an AI Agent for 16 Days — What Actually Works\n\n---\n\n*Need data from the web without writing scrapers? Check my Apify actors — ready-made scrapers for HN, Reddit, LinkedIn, and 75+ more sites. Or email: spinov001@gmail.com*

Top comments (0)