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

@found-in-space/anchored-image

v0.2.0

Published

Renderer-neutral anchored sky and space image math for Found in Space packages

Downloads

376

Readme

@found-in-space/anchored-image

Status: alpha package.

Renderer-neutral anchored image math for sky and space overlays.

This package describes image pixels that are anchored to ICRS directions or parsec-space positions, solves those anchors into mesh data, and offers small Canvas2D and Three.js adapters. It does not include skyculture images, constellation assumptions, star loading, octree sessions, or SkyKit viewer lifecycle code.

The intended package path is:

skyculture / survey / nebula image package
  -> anchored-image
      -> anchored-image/canvas
      -> anchored-image/three

Core

import {
  loadAnchoredImageManifest,
  solveAnchoredImageMesh,
} from '@found-in-space/anchored-image';

const manifest = await loadAnchoredImageManifest({ manifestUrl });
const mesh = solveAnchoredImageMesh(manifest.images[0], {
  subdivisions: 2,
});

Images use generic anchors:

{
  format: 'found-in-space/anchored-image-manifest@1',
  images: [
    {
      id: 'orion-art',
      groupId: 'Ori',
      image: {
        src: 'orion.webp',
        width: 1024,
        height: 1024,
        anchors: [
          {
            pixel: { x: 100, y: 200 },
            target: { kind: 'direction', frame: 'icrs', x: 1, y: 0, z: 0 },
          },
        ],
      },
    },
  ],
}

The canonical manifest schema is published at:

@found-in-space/anchored-image/schemas/anchored-image-manifest.v1.schema.json

kind: "direction" targets project onto a sky direction. kind: "position" targets are parsec-space coordinates for future spatial image meshes such as nebula or survey plates with approximate depth anchors.

Skyculture, survey, and astrophotography packages should export this canonical format directly, or provide a tiny adapter that converts their richer package format into it before calling this package.

Canvas

import {
  drawAnchoredImageMeshCanvas,
} from '@found-in-space/anchored-image/canvas';

drawAnchoredImageMeshCanvas(ctx, mesh, {
  sourceImage,
  wrapWidth: canvas.width,
  projectTarget(target) {
    return projectDirectionOrPosition(target);
  },
});

The Canvas adapter accepts a caller-supplied projection function. It does not own star-map projection policy, star iteration, catalogs, or map backgrounds.

Three.js

import {
  createAnchoredImageGroup,
} from '@found-in-space/anchored-image/three';

const group = await createAnchoredImageGroup({
  manifestUrl,
  radius: 8,
  opacity: 0.22,
});

three is an optional peer dependency used only by the ./three subpath. The root package and ./canvas do not import Three.js.

Boundary

Skyculture/content packages own images, cultural naming, attribution, and license details. @found-in-space/anchored-image only owns the reusable representation, loading normalization, anchor solving, and renderer-adjacent mesh/draw helpers.