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

@vulfram/engine

v0.21.1-alpha

Published

Functional engine for the Vulfram core, focused on a simple API for creating worlds, entities, and mounting to targets.

Downloads

589

Readme

@vulfram/engine

Functional engine for the Vulfram core, focused on a simple API for creating worlds, entities, and mounting to targets.

Installation

bun add @vulfram/engine @vulfram/transport-browser

Use the transport that fits your environment (transport-browser, transport-bun, transport-napi).

Simple example

import { initEngine, tick } from '@vulfram/engine/core';
import { createWindow } from '@vulfram/engine/window';
import { mountWorldToWindow } from '@vulfram/engine/mount';
import * as World3D from '@vulfram/engine/world3d';
import { transportWasm } from '@vulfram/transport-browser';

initEngine({ transport: transportWasm });

const world = World3D.create3DWorld();
const { windowId } = createWindow({
  title: 'Vulfram Engine - Simple Demo',
  size: [1280, 720],
  position: [100, 100],
  initialState: 'windowed',
});

mountWorldToWindow(world, windowId);

const camera = World3D.create3DEntity(world);
World3D.create3DCamera(world, camera, {
  kind: 'perspective',
  near: 0.1,
  far: 100,
  order: 0,
});
World3D.update3DTransform(world, camera, {
  position: [0, 1.2, 4],
  rotation: [0, 0, 0, 1],
  scale: [1, 1, 1],
});

const light = World3D.create3DEntity(world);
World3D.create3DLight(world, light, {
  kind: 'directional',
  color: [1, 1, 1],
  intensity: 2,
});
World3D.update3DTransform(world, light, {
  position: [3, 6, 2],
  rotation: [0, 0, 0, 1],
  scale: [1, 1, 1],
});

const geom = World3D.create3DGeometry(world, { type: 'primitive', shape: 'cube' });
const mat = World3D.create3DMaterial(world, {
  kind: 'standard',
  options: {
    type: 'standard',
    content: {
      baseColor: [0.9, 0.2, 0.2, 1],
      surfaceType: 'opaque',
      flags: 0,
    },
  },
});

const cube = World3D.create3DEntity(world);
World3D.create3DModel(world, cube, { geometryId: geom, materialId: mat });
World3D.update3DTransform(world, cube, {
  position: [0, 0, 0],
  rotation: [0, 0, 0, 1],
  scale: [1, 1, 1],
});

let last = performance.now();
function frame(now: number) {
  const dt = now - last;
  last = now;
  tick(now, dt);
  requestAnimationFrame(frame);
}
requestAnimationFrame(frame);

Public module structure

  • @vulfram/engine/core: init, tick, dispose, system/component registration
  • @vulfram/engine/window: window APIs
  • @vulfram/engine/world3d: 3D world APIs
  • @vulfram/engine/world-ui: UI world APIs
  • @vulfram/engine/mount: world binding to targets/windows
  • @vulfram/engine/ecs: ECS types
  • @vulfram/engine/types: command/event types

Documentation

Temporary documentation URL:

  • https://vulppi.dev/vulfram/docs

When the final engine documentation URL is available, this README will be updated.