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

@holoscript/hologram-worker

v0.1.1

Published

Railway hologram render worker — ONNX depth, Playwright quilt, ffmpeg stereo/parallax; uploads to Studio

Readme

@holoscript/hologram-worker

Node service for HoloGram Sprint 0c: depth (optional ONNX Depth Anything V2 Small via onnxruntime-node, else luminance), Playwright quilt + stereo views, ffmpeg stereo MP4 + parallax WebM, then POST multipart to Studio /api/hologram/upload.

HTTP

  • GET /health — liveness
  • POST /render — JSON body:
    • sourceUrl or sourceBase64
    • mediaType: image | gif | video
    • targets: optional, default ["quilt","mvhevc","parallax"]
    • skipUpload: optional, if true skips Studio upload (local test)

Response: { hash, shareUrl, quiltUrl, mvhevcUrl, targets }.

Environment

| Variable | Purpose | |----------|---------| | PORT | Listen port (default 8790) | | STUDIO_INTERNAL_URL | Base URL for POST /api/hologram/upload | | HOLOGRAM_WORKER_TOKEN | Bearer secret (must match Studio HOLOGRAM_WORKER_TOKEN) | | HOLOGRAM_SHARE_BASE_URL | Public base for shareUrl / quiltUrl (often same as Studio public URL) | | HOLOGRAM_ONNX_MODEL_PATH | Filesystem path to Depth Anything V2 Small .onnx (optional; without it, depth uses CPU luminance) | | HOLOGRAM_WORKER_DEPTH_BACKEND | Set to luminance to force luminance even if ONNX path is set | | HOLOGRAM_DEPTH_MAX_SIDE | Max width/height after rasterize (default 640) | | HOLOGRAM_WORKER_INGRESS_TOKEN | Optional; if set, POST /render requires Authorization: Bearer … |

ONNX model (supply-chain)

Pin a vetted .onnx artifact and set HOLOGRAM_ONNX_MODEL_PATH. Preprocess in src/depth-infer.ts assumes a 518×518 NCHW float model with ImageNet normalization (adjust if your export differs).

Railway

  • Attach a small volume at /app/.cache (or set HOLOGRAM_CACHE_DIR if you add model download later).
  • Set STUDIO_INTERNAL_URL, HOLOGRAM_WORKER_TOKEN, and HOLOGRAM_SHARE_BASE_URL on both worker and Studio.
  • Register the deployed service ID under W.GOLD.034 when the ID is known.

Local

pnpm --filter @holoscript/engine build
pnpm --filter @holoscript/hologram-worker build
npx playwright install chromium
HOLOGRAM_WORKER_DEPTH_BACKEND=luminance node packages/hologram-worker/dist/server.js