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

@wenswell/flai

v0.2.3

Published

Lightweight AI workflow context initializer for Codex and Claude Code.

Downloads

785

Readme

flai

Lightweight .flai context initializer for Codex and Claude Code.

Install

After publishing:

npm install -g @wenswell/flai

Use

flai init [path] [-f]
flai context [mode] [--budget <chars>]
flai context [mode] --sources
flai task create "title"
flai task start <name>
flai task list
flai task current
flai task finish
flai phase current
flai phase set <mode>
flai phase check
flai user [path] [-f]
flai update-user [path] [-f]
flai self-update [path] [-f]
flai uninstall-user [path] -f
flai help

Typical setup:

flai user
flai init .

flai init creates project .flai docs plus Codex and Claude Code hook adapters. Runtime code stays in the installed npm package.

flai context prints rendered context for the current project. Modes are startup, brainstorm, implement, review, and debug. Use --budget to change the character budget. Use --sources to print one compact console.table with budgeted source, type/mode, chars, tokens, fit, reason, and a 20-character preview.

flai task creates and selects lightweight task directories under .flai/tasks/.

flai phase records the current workflow phase in .flai/.phase. When flai context is run without an explicit mode, it uses the current phase. flai task start sets the phase to implement; flai task finish resets it to startup.

Phase-specific defaults live in .flai/policy/<phase>.md; workflow.md is no longer generated. .flai/conversation.md is injected only for startup and brainstorm; task work should move state into task files.

Every rendered context includes <workflow-state> with one active phase.

| status | meaning | next step | |---|---|---| | READY | Active phase has enough context. | Continue with flai context <phase>. | | NOT_READY | Required phase context is missing. | Fill the missing task file or acknowledge the gap. | | NO_TASK | The active phase needs a task. | Create a task for implement, or run flai task list for review/debug. | | STALE_POINTER | .flai/.current-task points to a missing file. | Run flai task finish. |

flai update-user updates user defaults from the installed package templates. It overwrites or removes only files still matching a previous managed template. Locally edited files are reported as conflicts unless -f is used.

Update the installed package first, then update user defaults:

npm update -g @wenswell/flai
flai update-user

Or run both steps:

flai self-update

Local Test Before Publishing

npm install -g .
flai help
flai init ./some-repo

Publish

Create a GitHub repository and push this project:

git remote add origin https://github.com/<user-or-org>/flai.git
git branch -M main
git push -u origin main

Add an npm automation token to GitHub:

GitHub repo Settings -> Secrets and variables -> Actions -> New repository secret
Name: NPM_TOKEN
Value: npm automation token

Then publish by creating a GitHub Release for the current package version.

pnpm test
npm pack --dry-run
npm login
npm publish --access public

Local manual publish still works, but normal updates should go through GitHub Releases so CI and package checks run first.