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

@simten/core

v0.14.0

Published

Simten simulator engine, circuit IR builder, standard library, and Verilog exporter. Pure TypeScript with no browser dependencies.

Readme

@simten/core

The Simten simulation engine and circuit DSL — write hardware as TypeScript, simulate it cycle-accurately in any JS runtime.

This is the engine package. For most use cases you'll want one of the higher-level packages instead:

  • @simten/embed — drop interactive simulations into a React app or web page.
  • @simten/mcp — let Claude design and verify circuits in your editor.

Use @simten/core directly when you need the simulator without UI: testing, batch verification, custom build pipelines, headless tooling.

Install

npm install @simten/core

Usage

import { circuit, bit } from '@simten/core/circuit';
import { Xor, And } from '@simten/core/std';
import { simulate } from '@simten/core/sim';

const HalfAdder = circuit('HalfAdder', {
  inputs:  { a: bit, b: bit },
  outputs: { sum: bit, carry: bit },
  nodes:   { xor1: Xor, and1: And },
  connect: ({ inputs, outputs, nodes: { xor1, and1 } }) => [
    inputs.a.to(xor1.a, and1.a),
    inputs.b.to(xor1.b, and1.b),
    xor1.out.to(outputs.sum),
    and1.out.to(outputs.carry),
  ],
});

const sim = simulate(HalfAdder);
sim.set({ a: 1, b: 1 });
sim.tick();
console.log(sim.get('sum'));    // 0
console.log(sim.get('carry'));  // 1

The SimulationHandle returned by simulate() has a plain dispose() method if you need explicit cleanup; explicit-resource-management (using) is not currently supported.

Running it

The snippet above is TypeScript and uses ES module syntax. @simten/core is ESM-only, so the consuming project needs to be in ESM mode too. Either:

# package.json with `"type": "module"`, then:
npx tsx halfadder.ts

or skip the package.json entirely by using the .mts extension:

# save as halfadder.mts
npx tsx halfadder.mts

tsx handles the TypeScript transform; the ESM signal comes from "type": "module" or the .mts extension. Plain node halfadder.ts won't work — Node needs both the TypeScript transform and the ESM signal.

Subpath exports

| Subpath | What's in it | |---|---| | @simten/core | Core types and re-exports | | @simten/core/circuit | circuit() factory, bit, bus | | @simten/core/std | Standard library components (gates, registers, RAM, ROM, adders, ALU, …) | | @simten/core/sim | simulate() runtime | | @simten/core/api | High-level entry points: checkCircuit, simulateCircuit | | @simten/core/verify | Testbench harness — declareOracle(), verify.check(), verify.run() | | @simten/core/verilog | Verilog exporter | | @simten/core/simulator | Low-level simulator internals |

Docs

Full documentation at https://simten.dev/docs. Source: https://github.com/simtenHQ/simten.

License

Apache-2.0