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

@aperture-engine/app

v0.3.0

Published

Aperture metaframework app facade, config helpers, and worker-safe system authoring API.

Readme

@aperture-engine/app

The aperture metaframework app facade: config helpers, worker-safe system authoring, and the browser/headless run loop.

Install

pnpm add @aperture-engine/app

This package is part of the aperture WebGPU game engine and is normally used together with the other @aperture-engine/* packages (render, runtime, simulation, physics, audio, webgpu, vite-plugin).

What it does

@aperture-engine/app is the top layer most apps author against. It turns an ApertureConfig (mode, assets, signals, input bindings, render defaults) plus a set of ECS systems into a running app — either driving a WebGPU canvas in the browser or stepping deterministically in a headless extraction loop. Systems are authored by extending createSystem(...), which gives each system typed queries, config signals, and worker-safe access facades (spawn, assets, physics, spatial queries, cameras, hierarchy, materials, interaction, diagnostics) without importing the renderer or DOM directly.

Usage

Author a system, then run it headlessly:

import { defineApertureConfig } from "@aperture-engine/app/config";
import { createSystem, mesh } from "@aperture-engine/app/systems";
import { createApertureHeadlessRunner } from "@aperture-engine/app/headless";

class SceneSystem extends createSystem({ priority: 0 }) {
  override init(): void {
    this.spawn.camera({
      key: "camera.main",
      transform: { translation: [0, 0, 4], lookAt: [0, 0, 0] },
    });
    this.spawn.mesh({
      key: "ground",
      mesh: mesh.plane({ size: [2, 1] }),
    });
  }
}

const runner = await createApertureHeadlessRunner({
  config: defineApertureConfig({ mode: "headless", systems: [] }),
  systems: [{ default: SceneSystem }],
});

const { snapshot } = runner.step(1 / 60, 0);
console.log(snapshot.meshDraws.length);

The same createSystem authoring and defineApertureConfig config work for browser apps, which are wired up by the aperture Vite plugin (re-exported from @aperture-engine/app/vite) and startGeneratedBrowserApp from @aperture-engine/app/browser.

Entry points

The package exposes these subpath exports:

  • @aperture-engine/app — aggregate root (config, advanced app, headless, entity lookup, commands, diagnostics, physics, controllers).
  • @aperture-engine/app/configdefineApertureConfig, asset/signal/input helpers, config types.
  • @aperture-engine/app/systemscreateSystem, spawn/material/shader/mesh helpers, ECS components, system access types.
  • @aperture-engine/app/advancedcreateApertureApp and the low-level app/step/extract API.
  • @aperture-engine/app/headlesscreateApertureHeadlessRunner and headless status/step reports.
  • @aperture-engine/app/entity-lookup — entity lookup and snapshot helpers.
  • @aperture-engine/app/commands — devtools/command message protocol helpers.
  • @aperture-engine/app/diagnostics — diagnostic normalization and status helpers.
  • @aperture-engine/app/vite — the aperture Vite plugin (re-exported from @aperture-engine/vite-plugin).
  • @aperture-engine/app/browserstartGeneratedBrowserApp, render-settings and input helpers for the browser run loop.
  • @aperture-engine/app/workerstartGeneratedSimulationWorker for running the simulation in a Web Worker.

Part of the aperture monorepo. MIT licensed.