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

@titan-design/style-profile

v0.3.0

Published

Declare one code-style profile and export it as enforcement artifacts: ESLint and ruff configs, EditorConfig, Claude rules, hooks, a skill, and markdown

Readme

@titan-design/style-profile

Declare one code-style profile and export it as enforcement artifacts: an ESLint config, a ruff config, an EditorConfig, Claude rules, Claude hooks, a Claude skill, and a markdown style guide. Written standards become linters.

Tier 2 of the titan-platform DAG (TP-131). No titan dependencies. zod v4 is a peer; handlebars is a regular dependency and renders the skill templates shipped in templates/.

npm install @titan-design/style-profile zod

Profile

A profile is a JSON document validated by ProfileSchema. Six categories (naming, structure, documentation, errorHandling, formatting, patterns) each map a rule name to a StyleRule:

{ convention: "camelCase", confidence: 0.93, stability: "high", fixability: "safe",
  description: "...", examples: [{ good: "...", bad: "..." }],
  extensions: { eslint: { rule: "no-throw-literal" }, ruff: { codes: ["E501"] } } }

confidence decides severity through severityThresholds (default error 0.85, warn 0.60, info 0.40). A rule below info is left out of every export.

readProfile(path) and writeProfile(path, profile) parse through the schema; validateProfile(data) returns zod's safeParse result. migrateProfile walks the migrations registered with registerMigration up to SCHEMA_VERSION (1.0.0, none registered yet).

Export

import { exportProfile, readProfile, SUPPORTED_FORMATS } from "@titan-design/style-profile";

const profile = await readProfile("code-style-profile.json");
for (const file of exportProfile(profile, "ruff")) {
  // file.path is relative to the target repo, file.content is the full text
}

| Format | Files | |---|---| | eslint | eslint.config.js | | ruff | ruff.toml | | editorconfig | .editorconfig | | markdown | style-guide.md | | claude-rules | .claude/rules/typescript.md (none when no rule clears info) | | hooks | .claude/settings.json | | skill | skill.md, references/naming.md, references/patterns.md, references/per-language/<lang>.md |

Each format also has its own generator (generateEslintExport, generateRuffExport, and so on). The rule builders in eslint-rules (buildNamingConventionRule, buildFunctionLengthRule, buildFileNamingRule, buildJsdocRules, buildImportOrderRule) return single [ruleName, config] pairs for callers that assemble their own ESLint config. buildNamingConvention returns the naming rule plus skippedRules: profile naming values are mapped to typescript-eslint formats (UPPER_SNAKE_CASE and SCREAMING_SNAKE become UPPER_CASE), and a value with no typescript-eslint format, such as kebab-case, is left out of the rule and reported there with a reason instead of making ESLint reject the config.

Provenance

Ported unchanged from codewatch's @codewatch/profile. Generated headers and the hooks command still name codewatch, because the artifacts are byte-identical to the original's.

The worked example and the gotchas live in the site's reference page, site/reference/style-profile.md.