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

@tscircuit/iframe

v0.0.5

Published

Run [tscircuit code](https://github.com/tscircuit/tscircuit) or [Circuit JSON](https://github.com/tscircuit/circuit-json) inside an iframe. Extremely lightweight wrapper around the [tscircuit runframe iframe](https://github.com/tscircuit/runframe)

Readme

@tscircuit/iframe

Run tscircuit code or Circuit JSON inside an iframe. Extremely lightweight wrapper around the tscircuit runframe iframe

Online Playground

Installation

bun add @tscircuit/iframe
# npm add @tscircuit/iframe

Usage

import { TscircuitIframe } from "@tscircuit/iframe"

const fsMap = {
  "index.ts": `
import { PushButton } from "@tsci/seveibar.push-button"
import { SmdUsbC } from "@tsci/seveibar.smd-usb-c"

export default () => {
  return (
    <board width="12mm" height="30mm">
      <SmdUsbC
        connections={{
          GND1: "net.GND",
          GND2: "net.GND",
          VBUS1: "net.VBUS",
          VBUS2: "net.VBUS",
        }}
        pcbY={-10}
        schX={-4}
      />
      <led
        name="LED"
        supplierPartNumbers={{
          jlcpcb: ["965799"],
        }}
        color="red"
        footprint="0603"
        pcbY={12}
        schY={2}
      />
      <PushButton
        name="SW1"
        pcbY={0}
        connections={{ pin2: ".R1 > .pos", pin3: "net.VBUS" }}
        schY={-2}
      />
      <resistor name="R1" footprint="0603" resistance="1k" pcbY={7} />

      <trace from=".R1 > .neg" to=".LED .pos" />
      <trace from=".LED .neg" to="net.GND" />
    </board>
  )
}`,
}

export default () => <TscircuitIframe fsMap={fsMap} />

API

<TscircuitIframe />

| Prop | Type | Description | | --- | --- | --- | | fsMap | Record<string, string> | Map of filenames to file contents that will be executed in the iframe. | | entrypoint | string | Name of the entry file within fsMap. | | code | string | Convenience prop to run a single file. Equivalent to providing fsMap with index.tsx. | | height | string \| number | Height of the iframe. Defaults to 600. | | showRunButton | boolean | Whether to display a run button inside the iframe. | | onRenderFinished | (params: { circuitJson: any }) => void | Called when rendering completes. | | onInitialRender | (params: { circuitJson: any }) => void | Called after the initial, fast render. | | onRenderStarted | () => void | Called when rendering begins. | | onError | (error: Error) => void | Called when an error occurs while running or rendering code. | | onEditEvent | (editEvent: any) => void | Called when the user performs an edit action. | | projectUrl | string | Optional project URL used when reporting autorouting issues. | | evalVersion | string | Version of the tscircuit evaluator to use. Defaults to the latest release. | | forceLatestEvalVersion | boolean | If true, always use the latest evaluator, overriding evalVersion. Defaults to true when evalVersion is not provided. |