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

gamehook

v0.9.1

Published

Build games and have fun doing it.

Readme

Gamehook

Build games and have fun doing it.

What is Gamehook?

Gamehook is a library for building games and visualizations that run in your browser. Its goal is to make developing visual experiences simpler, quicker, and more enjoyable. To do this, Gamehook provides react components that add and remove objects to a ThreeJS-powered WebGL rendering.

The end result is a greatly simplified API that will feel comfortable for react developers. Going further, Gamehook adds in some additional features provided by common game engines, such as animation, user interaction, physics, and asset management.

The end result of React and ThreeJS working together is a convenient and developer friendly way of managing visualizations.

Why Gamehook?

  • Games built with javascript will run in most modern browsers, without installation. It's like being able to make Flash games again, but without horrible security issues.
  • Built in typescript
  • It's a standard React library, so you have access to all of the nice-to-haves of the react ecosystem, including hot module reloading, state management, and all of your favorite NPM libraries.
  • It's built entirely with Typescript, so all components are type-safe with editor support.
  • It's fast...ish. It's not going to set any records, but most modern devices can handle rendering tens of thousands of moving objects without suffering frame rate loss.
  • You can build and animate models in Blender, and then import them directly as GLTF/GLB files.

Why Not Gamehook?

  • Performance is significantly worse than a fully-featured game engine like Unreal or Unity.
  • The library currently relies on client-side rendering, so it's not currently compatible with NextJS or other SSR frameworks.
  • While the library does its best to make the lower-level ThreeJS objects available to developers looking for advanced features, this isn't always possible. If you plan to significantly leverage ThreeJS, some components may be limiting.

Pre-requisites

You should know the basics of React to get started. It also helps greatly (but is not required) if you know Typescript, and also have a rough understanding of how 3D mdodeling and animation works.

However, React is really all you need to get started with some examples that'll have you creating animations in your browser within 5 minutes of installing.

Getting Started

Check out our getting started guide. Once you're set up, you can read through the component documentation to learn more about what you can do.

Attribution

This project has received help in many forms, and we'd like to take a moment to recognize some people who have directly or indirectly helped

Included Resources

Several models used as examples in the project belong to a creative commons license, including:

  • "phoenix bird" (https://skfb.ly/6vLBp) by NORBERTO-3D is licensed under Creative Commons Attribution (http://creativecommons.org/licenses/by/4.0/).
  • "dragon flying" by NORBERTO-3D (https://sketchfab.com/norberto3d) (https://sketchfab.com/3d-models/dragon-flying-78f809b98bbe426e94d4024dc894b206).
  • "Fire_Burning_03.flac" by Foleyhaven (https://freesound.org/people/Foleyhaven/sounds/624425/)