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

@tsfpp/standard

v1.3.0

Published

Normative coding standards for the TSF++ ecosystem — base specification and domain profiles

Downloads

802

Readme

@tsfpp/standard

The normative coding standards for the TSF++ ecosystem — base specification and domain-specific profiles.

This package contains the TSF++ coding standards as Markdown documents. It ships no runtime code. Installing it makes the full normative surface available in node_modules/@tsfpp/standard/spec/ for tooling, LLM context loading, Copilot instruction wiring, and cross-package governance declarations.


Standards

All standard documents live in spec/.

| Document | Codename | Scope | |---|---|---| | spec/CODING_STANDARD.md | TSF++ | All TypeScript source code in the ecosystem | | spec/API_CODING_STANDARD.md | TSF++/API | HTTP API handlers, contracts, and transport-boundary code | | spec/REACT_CODING_STANDARD.md | TSF++/React | React components, hooks, stores, and JSX-producing utilities | | spec/DATA_CODING_STANDARD.md | TSF++/Data | Repository adapters, DAL, query construction, and data mapping | | spec/CONFIG_CODING_STANDARD.md | TSF++/Config | Environment parsing, typed config loading, and configuration injection | | spec/LOG_CODING_STANDARD.md | TSF++/Log | Structured logging ports, trace correlation, and redaction-safe log events | | spec/TEST_CODING_STANDARD.md | TSF++/Test | Test files, factories, fixtures, and test utilities | | spec/ANNOTATION_CODING_STANDARD.md | TSF++/Annotate | JSDoc blocks, inline comments, code markers, and deviation records | | spec/SECURITY_CODING_STANDARD.md | TSF++/Security | Security-critical code, authentication, authorisation, and input handling |

Supplementary documents

| Document | Purpose | |---|---| | spec/PHILOSOPHY.md | Design philosophy and rationale behind TSF++ | | spec/RATIONALE.md | Section-by-section rationale for normative decisions | | spec/DEVIATIONS.md | Project-wide deviation registry |


Reading order

The standards form a profile hierarchy. The base standard applies everywhere; profiles apply on top for code in their scope. Multiple profiles may apply to the same file.

spec/CODING_STANDARD.md                      ← always required
├── spec/API_CODING_STANDARD.md              ← HTTP API / server-side code
├── spec/REACT_CODING_STANDARD.md            ← React / UI code
├── spec/DATA_CODING_STANDARD.md             ← repository adapters and DAL
├── spec/CONFIG_CODING_STANDARD.md           ← environment and runtime config
├── spec/LOG_CODING_STANDARD.md              ← structured operational logging
├── spec/TEST_CODING_STANDARD.md             ← test files (cross-cutting)
├── spec/ANNOTATION_CODING_STANDARD.md       ← all comments (cross-cutting)
└── spec/SECURITY_CODING_STANDARD.md         ← security-critical paths

A profile extends the base with domain-specific rules. Where a profile rule specialises a base rule, the specialisation governs for code in that scope. Where a profile explicitly relaxes a base rule, the relaxation is documented and follows the deviation procedure defined in the base standard.

The two cross-cutting profiles — TSF++/Test and TSF++/Annotate — apply to every file in the repository regardless of which other profiles are active.


Installation

pnpm add -D @tsfpp/standard

After installation, all standard documents are available under node_modules/@tsfpp/standard/spec/.


Declaring governance in a package

Each package governed by TSF++ SHOULD declare which standards apply in its own README:

## Governance

This package conforms to the following TSF++ standards:

| Standard | Document | Scope |
|---|---|---|
| TSF++ | `spec/CODING_STANDARD.md` | All TypeScript source |
| TSF++/API | `spec/API_CODING_STANDARD.md` | HTTP boundary code |
| TSF++/Test | `spec/TEST_CODING_STANDARD.md` | Test files |
| TSF++/Annotate | `spec/ANNOTATION_CODING_STANDARD.md` | All comments |

See [`@tsfpp/standard`](https://www.npmjs.com/package/@tsfpp/standard).

Versioning policy

@tsfpp/standard follows Semantic Versioning. Releases are managed by release-please from Conventional Commits history.

| Bump | Trigger | |---|---| | Patch | Editorial corrections, example fixes, clarifications with no change to normative intent | | Minor | New rules (SHOULD or MAY), new appendix sections, new profiles | | Major | Changes to existing MUST rules, rule removals, breaking redefinitions of compliance levels |

Downstream packages SHOULD pin to a minor range (^x.y.0) to receive clarifications and new non-breaking rules automatically while remaining on a known normative surface.


Part of the TSF++ ecosystem

| Package | Role | |---|---| | @tsfpp/standard | Normative specification (this package) | | @tsfpp/prelude | Reference implementation — ADTs, Option, Result, branded types | | @tsfpp/boundary | HTTP boundary primitives — parsing, error taxonomy, response builders | | @tsfpp/eslint-config | Deterministic rule enforcement via ESLint | | @tsfpp/tsconfig | Shared TypeScript compiler configuration | | @tsfpp/agents | Copilot agents, instruction files, and skills that enforce the standard via AI tooling |


License

MIT