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

@felan-ai/ext-powerline

v0.4.2

Published

Terminal powerline extension for Felan

Downloads

2,243

Readme

@felan-ai/ext-powerline

Default local TUI footer extension for Felan, targeting Pi 0.84.2.

The footer displays:

  • current directory
  • cached Git branch, revision, working-tree status, tag, age, stash, upstream, and repository name
  • active model and thinking level
  • session token and cost totals
  • active Codex or Claude subscription usage
  • context-window usage
  • statuses published by other Pi extensions

Rendering is ANSI-width-aware and supports left/right alignment, wrapping, minimal, powerline, and capsule styles, plus text and Powerline Unicode charsets. Git probes are asynchronous, cached, coalesced, time-bounded, and executed exclusively through pi.exec.

The extension installs its footer on session_start only when ctx.mode is tui, redraws for model, thinking, agent, turn, tool, compaction, tree, usage, and Git branch changes, and removes and disposes the footer on session_shutdown. Headless Pi modes perform no footer, Git, or subscription work.

Configuration

The extension reads $FELAN_AGENT_DIR/powerline.json, which defaults to ~/.felan/powerline.json, when it initializes. It accepts the compatible Pi powerline fields for display layout, supported segments, and custom colors.

The subscription segment supports Codex and Claude OAuth plans. Codex values show remaining percentage; Claude values show used percentage. The segment can configure showProviderName, showReset, showPercentage, and maxWindows. It refreshes at startup, after turns and model changes, and once per minute.

Configuration is inert for the process lifetime. These Pi flags override the file when the TUI footer is installed:

| Flag | Supported values | Default | | --- | --- | --- | | --felan-powerline-theme | dark, light, nord, tokyo-night, rose-pine, gruvbox, custom | dark | | --felan-powerline-style | minimal, powerline, capsule | powerline | | --felan-powerline-charset | text, unicode | text | | --felan-powerline-color | auto, none, ansi, ansi256, truecolor | auto | | --felan-powerline-wrap | boolean | true | | --felan-powerline-directory-style | full, fish, basename | fish | | --felan-powerline-session-type | tokens, cost, both, breakdown | tokens | | --felan-powerline-context-style | text, bar, blocks, blocks-line, dots | bar |

The package default export is hostless and renders no subscription data. Consumers enable subscription usage with createPowerlineExtension(subscriptionUsageHost). The portable package owns provider detection, response parsing, caching, throttling, and rendering; the host owns credential access and provider requests.

Hosts can supply options.footerRows as the second argument to append width-aware rows after the configured powerline status lines.

Felan's local TUI supplies a host backed by ModelRuntime. It uses the active provider's Felan OAuth credential and fixed Codex or Anthropic usage endpoints. The extension package does not inspect authentication files, receive stored credential objects, or perform network requests.

Development

Source: packages/ext-powerline in https://github.com/felan-ai/felan.

corepack enable
pnpm install --frozen-lockfile
pnpm --filter @felan-ai/ext-powerline build
pnpm --filter @felan-ai/ext-powerline type-check
pnpm --filter @felan-ai/ext-powerline test

Attribution

The rendering, theme, segment, lifecycle, Git-cache, and subscription controller design is adapted from the MIT-licensed pi-powerline source by Milko Slavov. That source credits the MIT-licensed marckrenn/pi-sub packages/sub-core for subscription provider and usage logic. See NOTICE.