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

@carverjs/core

v0.0.3

Published

A batteries-included web game engine — React + Three.js components, hooks, ECS-lite systems, tweening, particles, and audio.

Readme

@carverjs/core

npm license Discord

The CarverJS game engine — build declarative 2D and 3D games as composable React components, on top of Three.js and React Three Fiber.

Beta: CarverJS is under active development. APIs may change between minor versions until 1.0.

Install

npm install @carverjs/core
# peer dependencies (most React + Three projects already have these)
npm install react react-dom three @react-three/fiber @react-three/drei zustand
# optional — rigid-body physics (usePhysics, powered by Rapier)
npm install @react-three/rapier

Quick start

A complete 2D game — a circle you move with WASD:

import { useRef } from "react";
import { Game, World, Actor } from "@carverjs/core/components";
import { useGameLoop, useInput } from "@carverjs/core/hooks";

function Player() {
  const ref = useRef(null);
  const { getAxis } = useInput();

  useGameLoop((dt) => {
    if (!ref.current) return;
    ref.current.position.x += getAxis("KeyA", "KeyD") * 5 * dt;
    ref.current.position.y += getAxis("KeyS", "KeyW") * 5 * dt;
  });

  return (
    <Actor ref={ref} type="primitive" shape="circle" color="royalblue"
      geometryArgs={[0.5, 24]} />
  );
}

export default function App() {
  return (
    <Game mode="2d">
      <World>
        <Player />
      </World>
    </Game>
  );
}

Switch to 3D by changing a single prop: <Game mode="3d">.

Entry points

@carverjs/core ships as focused subpath exports, so you import only what you use:

| Import | Contents | | --- | --- | | @carverjs/core/components | <Game>, <World>, <Actor>, <Camera>, <Scene>, <SceneManager>, <AssetLoader>, <LoadingScreen>, <ParticleEmitter>, <AudioListener> | | @carverjs/core/hooks | game loop, input, collision, physics, camera, animation, audio, assets, particles, tweening | | @carverjs/core/systems | engine systems — actor registry, asset / audio / collision managers, easing | | @carverjs/core/store | Zustand stores (gameStore, sceneStore) | | @carverjs/core/types | shared TypeScript types |

Components

| Component | Purpose | | --- | --- | | <Game> | Root canvas. Set mode to 2d or 3d; configure lighting, sky, DPR, and shadows. | | <World> | Scene-graph container for your actors. | | <Actor> | A game object — primitive, sprite, or model. Forwards a ref to its Object3D. | | <Camera> | Perspective or orthographic camera with optional follow controls. | | <Scene> / <SceneManager> | Multi-scene apps and transitions. | | <AssetLoader> / <LoadingScreen> | Preload models, textures, and audio behind a loading screen. | | <ParticleEmitter> | Particle effects. | | <AudioListener> | Spatial audio listener. |

Hooks

| Hook | Purpose | | --- | --- | | useGameLoop(cb) | Fixed / variable-step update loop with delta time. | | useInput() | Keyboard and pointer state, axes, and action maps. | | useCollision() / useGridCollision() | AABB / sphere / circle and grid collision. | | usePhysics() | Rigid-body physics (requires the optional @react-three/rapier peer). | | useCamera() / useCameraDirection() | Camera control and facing. | | useAnimation() | Skeletal and clip animation playback. | | useAudio() | Sound effects and music with channels and audio sprites. | | useAssets() / useAssetProgress() | Access loaded assets and load progress. | | useParticles() | Imperative particle bursts. | | useTween() | Value tweening with easing. | | useScene() | Scene navigation. | | useActorRegistry() | Look up live actors by id. |

Add multiplayer

Make any CarverJS game networked with @carverjs/multiplayer — serverless peer-to-peer over WebRTC, with no game server to run.

Links

License

MIT — MoneyTales EduTech Private Limited