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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@chub-ai/stage-template

v0.1.2

Published

This is a template stage that does nothing, to be used as a base when developing stages. Please clone it [from GitHub](https://github.com/CharHubAI/stage-template) to use as a template.

Downloads

7

Readme

Stage Template for Chub

This is a template stage that does nothing, to be used as a base when developing stages. Please clone it from GitHub to use as a template.

Overview

A Stage is a software component written by other people that can be used within a chat with a language model. They are meant to add functionality like expression packs (showing a character's emotional state with a set of images), UIs for mini-games, special prompt handling, or even interacting with third-party APIs. If you're familiar with React and/or TypeScript, you can write a stage yourself.

Stage Use Cases

  • Creating a UI for a world, character, or setting
  • Making RPGs and other multimedia experiences
  • Custom stat blocks that can do math and handle state correctly
  • Specific input/output handling in code to deal with quirks of a particular model

Why develop a stage instead of making something from scratch?

  • Intuitive Development: The stages framework and platform were created with developers in mind from the ground up, resulting in as straightforward an interface as possible with a negligible learning curve.
  • Cross-Platform: Stages are write once, run everywhere. When you commit, your stage is immediately built and available on the web, iOS and Android mobile devices, and the Vision Pro, with support for more platforms incoming.
  • Multimedia: Language, imagery, audio, and everything else can add up to a half-dozen or more APIs and interfaces that need to be set up, tested, monitored. With a stage, a unified interface for all of it is built in.
  • Audience Reach: Many gaming and multimedia platforms ban GenAI content outright, or have userbases hostile to it. Chub has millions of people specifically here for generative AI.
  • Peace of Mind: It has become a trope for passion projects using OpenAI and other APIs to get destroyed by hostiles reverse engineering it into a free proxy. If developed as a stage, it's not your problem, and you can focus on what matters.
  • Actively Developed Platform: This is just the beginning. Scheduling, full VR/AR support, non-React implementations, and more are incoming.

Meta -- But Why?

As far as why this has been created, I’m trying to go where the puck is going instead of where it is, and I think there’s a need for something like itch.io for generative AI where (1) developers don’t have to worry about integrations and devops and (2) there’s an audience of people that are already explicitly on the AI side of the pro/anti discussion.

This is basically in the early stages of “do developers want this?” with a fraction of what I want to do with it if the answer is yes. The current license is to prevent competing platforms, and if it turns out to be something there is strong interest in it would be going the way of itch where it’s not just commercial use allowed but explicitly a platform for indies to monetize through.

Latest Documentation

The latest documentation is at https://docs.chub.ai/docs/stages.

Quickstart

You'll need [email protected] and yarn installed. Then, to get started:

git clone https://github.com/CharHubAI/stage-template
cd stage-template
yarn install
yarn dev

The class you'll need to fill out and implement is in src/Stage.tsx.

When running locally, as there is no chat UI/running chat, src/TestRunner.tsx is run. This only runs in development. Please modify it to test whatever you need.

This project uses GitHub actions to update the stage in Chub on commits to the main branch. For your project to do this, you'll need to get a stage auth token from the api.

Then in the GitHub project, go to Settings -> Secrets and Variables -> Actions -> Repository secrets -> New Repository Secret. Add the token with the name "CHUB_AUTH_TOKEN".

The use of an IDE like Intellij is very strongly recommended.