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

choba-engine

v0.0.4

Published

A choice-based interactive fiction engine.

Readme

Choba

Choba (short for CHOice BAsed) is an experimental interactive storytelling engine written in JavaScript. It is intended to be used for choice-based interactive fiction (IF), and more.

'Experimental' means:

  • Choba's inner workings are an experiment. Does it make sense to use something resembling a programming language inside a storytelling engine? Time will tell.

  • Choba is intended to be used for experiments in interactive storytelling. Social simulations, world models, procedural content generation: all of these things should hopefully be reasonably easy to add and integrate.

  • Choba is intended to be used for experiments in interactive storytelling tools. When I wrote my first game in 1991, we used lists of variables to track what the player had done, so we could react accordingly. Today, in 2016... we pretty much still do the same thing. Is it really not possible to do better after 25 years? Can we detect problems before they occur, visualize the game and its state in new ways, run automated tests, identify and reproduce problems, modify content without using state? Can we use analysis and visualization techniques from other domains? (Specifically programming, and that's one reason why Choba internally works like a programming language.) With Choba, we can hopefully try new things and find out what works.

  • Choba is intended to be extensible to other game forms. Visual novels, hybrid formats, storytelling engines running inside other games, maybe even parser-based IF: hopefully, this is reasonably easy to do.

  • Choba is intended to be portable to many platforms and devices. It's written in JavaScript. It has extremely few external dependencies and doesn't manage its own state. This means it should be possible to port the engine to mobile (using React-Native) and desktop (using NW.js or Electron). It should also be reasonably easy to port the core engine to other languages.

  • The first version of Choba is not easy to use. It does not have a parser (!), or a standard way of handling input and output. In other words: out of the box, there is no easy way to either write or play games using Choba. It also does not include tools or easy ways to package games for distribution. It's an engine, not a game-making system. It is, in part, intended to be more useful to programmers than to game designers or writers. But at the same time it is hopefully the basis for a very powerful system for writing, distributing, and playing games.