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-output-style

v0.8.0

Published

Portable output-style system prompt extension for Felan

Downloads

1,955

Readme

@felan-ai/ext-output-style

Portable output-style instructions for Felan sessions.

The extension appends one clearly bounded ## Output Style section to the system prompt before each model run. It provides the built-in concise, and explanatory styles plus a custom style for caller-provided instructions. concise is the default. It minimizes prose while preserving clarity, exact technical content, conditions, caveats, verification, and blockers, and it expands for ambiguity, safety-sensitive actions, errors, and complex plans. createOutputStyleExtension accepts instruction text only. Hosts may resolve extensionConfig.outputStyle.instructionsFile to that text before activation.

import { createOutputStyleExtension } from '@felan-ai/ext-output-style';

const extension = createOutputStyleExtension('explanatory');
const concise = createOutputStyleExtension('concise');
const experiment = createOutputStyleExtension('custom', 'Answer in one compact paragraph.');

Felan declares the style as extensionConfig.outputStyle.style. Custom instructions use exactly one of extensionConfig.outputStyle.instructions or extensionConfig.outputStyle.instructionsFile:

{
  "extensionConfig": {
    "outputStyle": {
      "style": "custom",
      "instructions": "Answer in one compact paragraph without omitting blockers."
    }
  }
}
{
  "extensionConfig": {
    "outputStyle": {
      "style": "custom",
      "instructionsFile": "output-style.md"
    }
  }
}

The local TUI, CLI, and /settings resolve these fields before activating the extension for root and child sessions. A custom style requires non-empty inline instructions or a host-loaded instruction file. This package does not read the file; the host passes the contents to createOutputStyleExtension.

Savings measurement

Only the built-in concise style contributes a savings measurement. For each successful assistant turn containing visible text, the extension estimates the actual output as UTF-8 bytes divided by four and rounded up. It estimates the disabled-style baseline as:

ceil(actual visible-output estimate * 4187 / 3500)

This uses the current repeated benchmark's pooled output-token result: 4,187 baseline tokens versus 3,500 concise tokens, a 16.4% reduction. The producer only sees UTF-8 visible text, so this is a documented byte-to-token proxy rather than an observed tokenizer count. The method identifier is concise-output-token-ratio-202609-v1.

This measurement isolates the visible-output boundary and is not a claim of whole-workflow savings; the benchmark's prompt tokens increased. Empty, errored, aborted, or unattributed turns do not report. explanatory and custom have no supported baseline and never contribute savings.

Package boundary and requirements

The package owns the supported style names, built-in instructions, custom-source validation, and prompt-section formatting. A host owns style selection, built-in enablement, instruction-file loading, and session lifecycle. The package requires a compatible @felan-ai/agent-core peer and does not read settings, prompt files, or ambient resources itself.

Development

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

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

Related documentation

Attribution

The extension implementation is original Felan project code. The merged concise instructions adapt wording from Julius Brussee's MIT-licensed Caveman skill. See NOTICE and LICENSE.