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

@krisenstab/vantage

v0.1.7

Published

A 3D scene editor for projection mapping. Import models, position cameras, and project images onto geometry with depth-aware materials.

Readme

Vantage

A 3D scene editor for projection mapping. Import models, position cameras, and project images onto geometry with depth-aware materials.

Built with Svelte 5, Three.js, and TypeScript.

Library

The projection system, scene serialization, and theme are published as @krisenstab/vantage on npm. Three.js is a peer dependency — install it alongside the package.

npm i @krisenstab/vantage three

Exports

Import from @krisenstab/vantage:

| Export | Description | | ------------------------ | -------------------------------------------------------------------------------- | | VantageProjection | Camera that projects a texture onto scene geometry. Extends PerspectiveCamera. | | ProjectionMaterial | Custom shader material used internally by VantageProjection. | | ProjectionHelper | Frustum and near/far plane visualizer for a projection. | | loadTexture | Async texture loader returning a Three.js Texture. | | serializeScene | Converts scene objects and projections into a SceneManifest. | | deserializeScene | Reconstructs SceneObject[] from a manifest and a file reader. | | deserializeProjections | Reconstructs ProjectionItem[] from manifest entries and a file reader. | | themeColors | Live CSS-backed { axisX, axisY, axisZ, brand } as THREE.Color getters. | | themeColorDefaults | Hardcoded fallback colors (no DOM required). | | UI_LAYER | Three.js layer index used for non-pickable UI geometry. |

Types are included: SceneManifest, SceneObject, ProjectionItem, ProjectionEntry, SceneObjectEntry, CameraState, Tool, TransformTool, and more.

Example

import { VantageProjection, loadTexture } from '@krisenstab/vantage'
import * as THREE from 'three'

const projection = new VantageProjection({ fov: 60, near: 5, far: 1000 })
projection.position.set(10, 8, 10)
projection.lookAt(0, 0, 0)

const texture = await loadTexture(imageUrl)
projection.setTexture(texture)

// Apply the projection to a mesh — adds a depth-aware shader overlay
projection.project(mesh)

// In render loop: update depth maps, then render the scene
projection.update(renderer, scene)
renderer.render(scene, camera)

Theme CSS

Import @krisenstab/vantage/theme.css to get Tailwind v4 theme variables, custom utilities, and the Space Grotesk font:

@import '@krisenstab/vantage/theme.css';

This provides:

Colors (as Tailwind @theme variables):

| Variable | Value | | ------------------------ | ---------------------------- | | --color-vantage-green | #01ff00 | | --color-vantage-blue | #41b8ff | | --color-vantage-red | #ff7704 | | --color-vantage-brand | var(--color-vantage-green) | | --color-vantage-axis-x | var(--color-vantage-red) | | --color-vantage-axis-y | var(--color-vantage-blue) | | --color-vantage-axis-z | var(--color-vantage-green) |

Utilities:

| Class | Effect | | -------------- | ---------------------------------------------------------- | | ui-container | pointer-events-auto, white background, black border | | ui-button | Flex row, 40px height, horizontal padding, hover highlight | | tnum | Tabular number font features |

Development

Prerequisites

Node.js 24+

Setup

npm install
npm run dev

Scripts

| Script | Description | | ------------------- | ---------------------------------------------- | | npm run dev | Start dev server with HMR | | npm run build | Build the app for production | | npm run build:lib | Build the library bundle and type declarations | | npm run preview | Preview the production build locally | | npm test | Run tests (Vitest) | | npm run lint | Lint with ESLint | | npm run format | Format with Prettier |

Tech stack

| | | | --------- | -------------- | | Framework | Svelte 5 | | 3D | Three.js r183 | | Bundler | Vite 8 | | CSS | Tailwind CSS 4 | | Language | TypeScript 5.9 | | Tests | Vitest |

Publish to npm

npm version patch
git push && git push --tags