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

inscript-lang

v0.5.0

Published

InScript — A game-focused programming language. CLI installer and web runtime.

Readme

InScript 🎮

A game-focused programming language — clean syntax, batteries included.

// Everything a game needs is already built in
scene Main {
    let player = Entity {
        pos:    Vec2(400, 300),
        health: 100,
        speed:  180.0,
    }

    on_update(dt: float) {
        let dir = Input.wasd()
        player.pos += dir * player.speed * dt

        if Input.just_pressed(Key.Space) {
            spawn(Bullet { pos: player.pos, vel: Vec2(0, -600) })
        }
    }

    on_draw {
        Draw.sprite("ship.png", player.pos)
        Draw.hud_text("HP: " + player.health, Vec2(10, 10))
    }
}

Features

| Feature | Status | |---------|--------| | Type-safe syntax (Rust-inspired) | ✅ | | Entity-Component System | ✅ | | 2D/3D Physics | ✅ | | Shader System (GLSL/WGSL/HLSL) | ✅ | | Networking & Multiplayer | ✅ | | Game AI (FSM/BTree/NavMesh/Boids) | ✅ | | Declarative UI (HUD, menus) | ✅ | | Bytecode Compiler + VM | ✅ | | Web Export (HTML5/PWA) | ✅ |

Install

pip install inscript-lang

Quick Start

# Run a game
inscript mygame.ins

# Interactive REPL
inscript --repl

# Build for web
inscript build --target web mygame.ins

# Type-check only
inscript --check mygame.ins

Language Overview

// Variables
let x: int = 42
let name = "Ada"          // type inferred
const MAX_SPEED = 600.0

// Functions
fn lerp(a: float, b: float, t: float) -> float {
    return a + (b - a) * t
}

// Structs
struct Bullet {
    pos:   Vec2
    vel:   Vec2
    dmg:   int = 10
}

// Pattern matching
match input.key {
    Key.W | Key.Up    => player.vel.y = -speed
    Key.S | Key.Down  => player.vel.y =  speed
    _                 => player.vel.y =  0
}

// Closures
let enemies = world.entities.filter(|e| e.tag == "enemy")

// Networking
let srv = Network.create_server(port: 7777)
srv.on_connect = |client| { broadcast({ type: "joined", id: client.id }) }

// AI
ai Enemy {
    state Idle {
        on_update(dt) { if can_see(player) { switch_to(Chase) } }
    }
    state Chase {
        on_update(dt) { navigate_to(player.pos) }
    }
}

Architecture

InScript Source (.ins)
        │
        ▼
   Lexer → Tokens
        │
        ▼
   Parser → AST
        │
        ▼
   Analyzer (type checker)
        │
   ┌────┴────┐
   ▼         ▼
Tree-walk  Bytecode      ← Phase 19: 10-100× faster
Interpreter Compiler
              │
              ▼
         BytecodeVM
              │
              ▼
         .insb binary

Deployment Targets

inscript build --target web     game.ins   # → HTML5 / PWA
inscript build --target android game.ins   # → APK / AAB
inscript build --target ios     game.ins   # → IPA (macOS required)
inscript build --target desktop game.ins   # → EXE / APP / AppImage

License

MIT