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

gemmer

v0.2.10

Published

The simplest and most convenient 2D game engine

Readme

Gemmer Engine

Gemmer (formerly you-js) is a lightweight, modern 2D game engine built with JavaScript, Vite, and Electron. It features a robust Entity-Component-System (ECS) architecture designed for simplicity and ease of use.

Features

  • ECS Architecture: Flexible Entity, Component, and System structure.
  • Rendering: Canvas-based SpriteRenderer with support for anchors, pivots, and layers.
  • Animation: Frame-based Animator system.
  • Physics: AABB collision detection via BoxCollider.
  • Input: Unified InputManager for Keyboard and Mouse.
  • Audio: AudioManager for background music and sound effects.
  • Cross-Platform: Builds for Web and Desktop (via Electron).

Getting Started

Installation

npm install gemmer

(Note: Currently in local development. Clone the repository to use.)

Quick Start

  1. Initialize the Game:
import { Game } from 'gemmer';

const game = new Game({
    width: 800,
    height: 600,
    backgroundColor: '#333',
});

game.start();
  1. Create an Entity:
import { Entity, SpriteRenderer, Sprite, Vector2 } from 'gemmer';

// Create a player entity
const player = new Entity('Player');
player.position = new Vector2(400, 300);

// Add a sprite
const sprite = new Sprite('assets/player.png');
player.addComponent(new SpriteRenderer(sprite));

// Add to game
game.addEntity(player);
  1. Create a Custom Component:
import { Component, input } from 'gemmer';

class PlayerController extends Component {
    update(dt) {
        const speed = 200;

        if (input.isKeyDown('ArrowRight')) {
            this.entity.x += speed * dt;
        }
        if (input.isKeyDown('ArrowLeft')) {
            this.entity.x -= speed * dt;
        }
    }
}

player.addComponent(new PlayerController());

Architecture Overview

Core

  • Game: The central hub that manages the game loop, scenes (entities), and systems.
  • Entity: A general-purpose object in the game world. Has a Transform (position, rotation, scale) by default.
  • Component: Data or logic attached to an Entity (e.g., SpriteRenderer, BoxCollider).

Systems

  • InputManager (input): Handles user input.
    • input.isKeyDown(key)
    • input.mouse (Vector2)
  • AudioManager (audio): Handles sound.
    • audio.play('bgm')
    • audio.playOneShot('sfx')

Development

Scripts

  • npm run dev: Start the Vite development server.
  • npm run dev-test: Launch the browser test suite.
  • npm run electron: Launch the Electron desktop app.
  • npm run test: Run headless unit tests.
  • npm run build:lib: Build the engine library for distribution (npm).
  • npm run dist: Build and package the game as a desktop application (.exe, .dmg).

License

MIT