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

@gameguild/emception-webcomponent

v3.3.5

Published

<emception-run> custom element. No framework deps.

Readme

@emception/webcomponent

<emception-run> custom element for emception. Framework-free, no React/Vue/Svelte runtime required.

Install

npm install @emception/webcomponent @emception/browser

@emception/browser is a peer of the orchestration story. The custom element itself only depends on @emception/core for the typed attribute schema and event registry.

Use

Importing the package once auto-registers the element under <emception-run>:

<script type="module">
  import '@emception/webcomponent';
</script>

<emception-run preset="cpp" autorun source="int main(){return 0;}"></emception-run>

Pair the element with a pre-built EmceptionAPI:

import '@emception/webcomponent';
import { createEmception } from '@emception/browser';

const el = document.querySelector('emception-run')!;
const api = await createEmception({ tty: 'none' });
(el as any).api = api;

Attributes

Every kebab-case attribute in ATTRIBUTE_SCHEMA (exported from @emception/core) is mirrored on the element. Common ones:

| attribute | type | meaning | | ------------------------------------------ | ------------------- | -------------------------------------- | | preset | string | 'cpp' \| 'c' \| 'sdl' \| ... | | manifest-url | URL | sysroot manifest override | | source | string | inline single-source convenience | | seed-url / build-url | URL | remote workspace seed / build config | | autorun | boolean (presence) | auto-execute on ready | | canvas | boolean (presence) | show the <slot name="canvas"> region | | cflags / cxxflags / ldflags / libs | space-or-comma list | folded into workspace.build | | include-paths / lib-paths | list | folded into workspace.build | | std / output | string | C/C++ standard, output filename |

Unknown attributes are ignored.

Slots

<emception-run preset="cpp" canvas>
  <textarea slot="stdin">my stdin payload</textarea>
  <canvas slot="canvas" width="640" height="480"></canvas>
</emception-run>

The slot regions auto-hide when no slotted child (or no canvas attribute) is present.

Events

Re-broadcasts every typed EmceptionEventName as a bubbling + composed CustomEvent named emception-<name>. The detail payload matches the matching key of EmceptionEventMap:

| event | payload | | --------------------------------------- | --------------------------------- | | emception-ready | {} | | emception-stdout / emception-stderr | { chunk: string \| Uint8Array } | | emception-exit | { code, signal } | | emception-test-report | TestReport | | emception-test-case | one item from a test report |

el.addEventListener('emception-stdout', (ev) => {
  console.log((ev as CustomEvent).detail.chunk);
});

Properties + methods

  • el.api — get/set the attached EmceptionAPI. Setting attaches every event listener; clearing detaches them.
  • el.readConfig() — snapshot the current attributes as a parsed ViewConfigInput.

Custom tag name

import { EmceptionRunElement, registerEmceptionRun } from '@emception/webcomponent';
registerEmceptionRun('my-emception');

registerEmceptionRun is idempotent and returns the constructor that ended up registered.

SSR

The module's auto-register block is gated on typeof customElements, so importing it under Node is a no-op (no errors). For React 19 use @emception/react which renders the element declaratively without forcing the side-effect import on the server bundle.