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/core-types

v7.0.0

Published

Pure type definitions for HoloScript — lightweight mirror of @holoscript/core types with zero runtime dependencies. Canonical types live in packages/core/src/types/.

Readme

@holoscript/core-types

Pure TypeScript type definitions for the HoloScript ecosystem. Zero runtime dependencies. Use this package when you need HoloScript types without pulling in the full @holoscript/core runtime (parsers, compilers, engines).

Install

npm install @holoscript/core-types

What it provides

Seven type modules, each importable individually or through the barrel export:

| Module | What it covers | | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | composition | .holo declarative format AST -- HoloComposition, HoloObjectDecl, HoloShape, expressions, statements, domain blocks, narrative, NPC, quest, talent trees, norms | | ast | HoloScript+ AST nodes and directives -- HSPlusAST, ASTNode, HSPlusDirective (23 directive types), HoloScriptType system, VRTraitName, compile results | | animation | Animation state machine types -- clips, states, transitions, parameters, layers, blend modes, events | | physics | Rigid bodies, collision shapes, constraints (8 joint types), spatial queries, PBD soft-body, unified particle buffer, helper factories | | security | RBAC roles/permissions, UCAN capability tokens, delegation chains, confabulation validation, role trait permissions | | hologram | Quilt rendering (Looking Glass), MV-HEVC stereo (Vision Pro), depth estimation configs | | utility | DeepPartial, DeepReadonly, TypedEventEmitter, Brand, StrictRecord, JsonValue, Extensible, and other type-level tools replacing any casts |

Usage

Import everything from the barrel:

import type { HoloComposition, ASTNode, IRigidBodyConfig } from '@holoscript/core-types';

Or import a specific module for narrower dependencies:

import type { AnimationConfig, AnimationTransition } from '@holoscript/core-types/animation';
import type { Capability, IntentTokenPayload } from '@holoscript/core-types/security';
import type { QuiltConfig, DepthResult } from '@holoscript/core-types/hologram';
import type { DeepPartial, Brand, TypedEventEmitter } from '@holoscript/core-types/utility';

The physics module also exports runtime helpers (the only non-type exports in the package):

import { sphereShape, dynamicBody, PHYSICS_DEFAULTS } from '@holoscript/core-types/physics';

const ball = dynamicBody('ball', sphereShape(0.5), 1.0, { x: 0, y: 5, z: 0 });

Adding new types

  1. If the types fit an existing module, add them to the corresponding file in src/.
  2. If they represent a new domain, create a new file in src/, re-export it from src/index.ts, and add a subpath export entry to package.json under "exports".
  3. Keep files self-contained -- zero imports between modules. This prevents circular dependencies and keeps each subpath independently consumable.
  4. Run pnpm build (uses tsup) to verify the output. Run pnpm typecheck to validate without emitting.

Build

pnpm build      # compile with tsup
pnpm typecheck  # tsc --noEmit

License

MIT