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

@drawcall/generate-panorama

v0.2.1

Published

Generate reference-guided 360° environment maps (background WebP + IBL HDR)

Readme

@drawcall/generate-panorama

Client SDK for generating 360° environment maps in the Drawcall Market environment format: a 2048×1024 background WebP plus a 1024×512 Radiance .hdr for Three.js PMREM/IBL lighting.

import { generate } from "@drawcall/generate-panorama";
import { writeFile } from "node:fs/promises";

const result = await generate({
  prompt: "a misty alpine valley at sunrise"
});

await writeFile("public/environment/alpine-valley.hdr", result.hdr);
await writeFile("public/environment/alpine-valley-background.webp", result.backgroundWebp);

Use one or more HTTPS image references when visual identity matters. A raw gameplay screenshot is sufficient; the service uses it for the world's visual language while excluding screenshot UI and first-person foreground:

const result = await generate({
  prompt: "environment for a floating jump and run",
  referenceImages: ["https://example.com/gameplay-screenshot.png"]
});

console.log(result.generatedDescription);

Describe the purpose naturally. A vision-aware planner infers grounded, elevated, and unbounded environments plus aerial height automatically:

const result = await generate({
  prompt: "Paris environment for a floating jump and run"
});

Up to four references are accepted as HTTPS URLs or data:image/<type>;base64,<data> URIs. The service validates, downloads, and downscales them to at most 1024 px before temporarily rehosting them, so the generation provider can reliably access them without unnecessary input cost. Each reference increases image-input cost and latency, so prefer one image or combine several references into a single contact sheet before calling the API.

Because a panorama has no translational parallax, the service keeps grounded features in a narrow band near the horizon and enforces a 200–250 m object-free region for every camera mode. Only a flat continuous ground surface may approach the viewer. Local 3D geometry should provide all nearby structures, vegetation, terrain relief, platforms, props, and effects.

The result includes both prompt, the original request, and generatedDescription, the improved self-contained description actually used for image generation.

The default API host is https://v1.panorama.api.drawcall.ai.

The pipeline generates the LDR panorama with GPT Image 2 (fal.ai), blends the equirectangular wraparound seam, and reconstructs HDR with LEDiff hosted on Modal.