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

@yaebal/onboarding

v0.0.4

Published

yaebal onboarding - declarative product tours and first-run tutorials for telegram bots.

Readme

@yaebal/onboarding

declarative first-run tutorials and feature tours. build a flow once, install it as a typed plugin, then start it from handlers through ctx.onboarding.<id>.

install

pnpm add @yaebal/onboarding

usage

import { Bot } from "@yaebal/core";
import { createOnboarding } from "@yaebal/onboarding";

const welcome = createOnboarding({ id: "welcome" })
	.step("hello", {
		text: "hi. i'll show you around.",
		buttons: ["next", "dismiss"],
	})
	.step("commands", {
		text: "use /help to list commands and /settings to tune the bot.",
		buttons: ["next", "exit"],
	})
	.step("done", {
		text: "you're ready.",
	})
	.onComplete((ctx) => ctx.send("welcome aboard."))
	.build();

const bot = new Bot(process.env.BOT_TOKEN!).install(welcome);

bot.command("start", (ctx) => ctx.onboarding.welcome.start());
bot.command("tour", (ctx) => ctx.onboarding.welcome.start({ force: true }));

bot.start();

install(welcome) enriches the context type, so ctx.onboarding.welcome is a FlowControl<"hello" | "commands" | "done"> with typed goto, next({ from }), and start({ from }) step ids.

controls

ctx.onboarding.welcome.status;       // "null" | "active" | "completed" | ...
ctx.onboarding.welcome.currentStep;  // typed step id, or null
ctx.onboarding.welcome.data.plan = "pro";

await ctx.onboarding.welcome.start();
await ctx.onboarding.welcome.next({ from: "hello" });
await ctx.onboarding.welcome.goto("commands");
await ctx.onboarding.welcome.exit();
await ctx.onboarding.welcome.dismiss();
await ctx.onboarding.welcome.undismiss();
await ctx.onboarding.welcome.complete();

ctx.onboarding also exposes active, list, disableAll(), enableAll(), exitAll(), and flow(id) for multi-flow bots.

storage

state is in memory by default and shared between onboarding flows in the same process. pass a persistent adapter to survive restarts:

createOnboarding({
	id: "welcome",
	storage: myStorage, // { get(key), set(key, value), delete(key) }
	scope: "user",     // default. use "chat" for per-chat tours
});

buttons

buttons accepts simple built-in controls or explicit button objects:

.step("pick", {
	text: "where next?",
	buttons: [
		"next",
		{ text: "skip setup", goto: "done" },
		{ text: "docs", url: "https://yaebal.mom" },
	],
})

flow and step ids are embedded into telegram callback_data, so keep them short and use only letters, numbers, _, and -.


part of yaebal - a type-safe, runtime-agnostic Telegram Bot API framework. MIT.