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

@playform/hook-dsh-normalize-fullwidth

v0.2.1

Published

The fullwidth hook: a DeepSeek Harness plugin that hooks the llm/stream waterfall — the interceptable wrapper around EVERY streaming model call — and normalizes the full-width family (the entire FULLWIDTH FORMS range U+FF01–U+FF5E) in model output streams

Readme

@playform/hook-dsh-normalize-fullwidth - The fullwidth normalizer for model output

Version 0.1.0 - UNPUBLISHED (the npm bootstrap tier 2-planned / 3-candidates).

Plan: the factory README, the core README, and the llm/stream reference.

The role

The fullwidth normalizer for model output - a DeepSeek Harness plugin that hooks the llm/stream waterfall (the interceptable wrapper around EVERY streaming model call, bound to the LlmRuntime) and normalizes the full-width family in model output, live in the transcript: the entire FULLWIDTH FORMS range U+FF01-U+FF5E maps to its ASCII half-width counterpart U+0021-U+007E - the whole story, letters, punctuation, and digits included.

A MAP flavor of the normalize family: the Fullwidth char-to-char table of the core owns the substitution - no replacement config knob.

The @-sentence identity: Hook @ DSH @ Normalize @ Fullwidth.

The raw-write tool of the family (registered by hook-dsh-normalize-dash) bypasses the transforms of this flavor too - the exemption is family-wide, so the explicit normalize parameter of the tool (default false = verbatim) is the only normalization it applies.

Unlike the governance family, the rewrite flows into the live UI and into the durable transcript - the normalization is deliberately VISIBLE; it IS the feature.

The surfaces

| Kind | Name | What | | -------------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------- | | listener | llm/stream | normalizes the full-width family live in the transcript (text/reasoning deltas, assembled block-end blocks, tool arguments gated) | | listener | tools/post-execute | overpass arm, opt-in through scopes.toolResults (prepended, outermost vs the ccr gate) | | listener | agent/pre-step | overpass arm, opt-in through scopes.batch | | config/command | normalize-overpass | arms the one-shot batch overpass, flips scopes.toolResults, reports the scopes - the files sweep is declined |

The configuration

| Field | Type | Default | Meaning | | ------------------------ | -------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | | log | boolean | true | write the durable ledger file (volatile) | | logFile | string | ~/.dsh/playform/hook-dsh-normalize-fullwidth.log | the normalize-fullwidth ledger (volatile) | | normalizeReasoning | boolean | true | normalize reasoning deltas and the assembled reasoning block too | | normalizeToolArguments | boolean | false | rewrite the tool-call argumentsDelta and the assembled ToolCallBlock.arguments when on - execution-critical raw JSON, the user's accepted risk | | scopes | object | see below | gates every arm independently; the whole object is volatile | | scopes.conversation | boolean | true | text-delta text + the assembled text/reasoning blocks | | scopes.reasoning | boolean | true | the reasoning-delta sub-gate (ANDed with normalizeReasoning) | | scopes.toolInput | boolean | false | the tool-call arguments arm (OR-ed with normalizeToolArguments) | | scopes.toolResults | boolean | false | the tools/post-execute arm | | scopes.files | boolean | true | inert in a stream flavor (present so one patch override drives the whole family) | | scopes.batch | boolean | false | the agent/pre-step arm | | toolResultsExempt | string[] | read, edit, raw-write, normalize-file, ccr_retrieve, subagent, ask_user_question | a tool result whose exec name is listed passes the tool-results arm by identity (volatile) |

The module composes the factory helper with shared: false, so the shared block is only log and logFile; the own fields of the module follow in schema order.

There is no replacement field: this is a MAP flavor - the substitution is the Fullwidth char-to-char table of the core.

The ledger

hook-dsh-normalize-fullwidth: activated (reasoning=on, toolArgs=off, logFile=~/.dsh/playform/hook-dsh-normalize-fullwidth.log)
hook-dsh-normalize-fullwidth: normalized N fullwidth char(s) in one stream
hook-dsh-normalize-fullwidth: overpass: normalized N char(s) in tool result <toolName> <callId>
hook-dsh-normalize-fullwidth: overpass: normalized N char(s) in step batch (turn T step S)

apply() writes the activation line; the count line and the overpass lines appear only on a normal completion / an N > 0 pass (N = 0 is a true no-op - no ledger line; a stream that is thrown away writes no line).

The build and the tests

  • Build: pnpm --config.verify-deps-before-run=false --dir Classic/packages/hook-dsh-normalize-fullwidth run prepublishOnly
  • Smokes: node Classic/packages/hook-dsh-normalize-fullwidth/Target/Test/<Folder>/Test.js
    • Config-And-State - 14 checks
    • Overpass - 34 checks
    • Runs - 23 checks
    • Scopes - 8 checks
    • Stream-Contract - 25 checks

The plan

The family position and the factory contract are documented in the plugin-dsh-factory and lib-dsh-core READMEs, and the hook point is the llm/stream waterfall of the LlmRuntime; the bundle is configured through its cordis.patch.yml row.