Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@codometer/configuration

Latest version: v0.0.104

Overview

Last scanned
1 Dec 2026
Published
1 Dec 2026
npm package Publisher: jimmypaolini
0 Stars
1 Forks
98 Versions
12.0K Downloads
TypeScript Repo language

Scan summary

@codometer/configuration was last scanned on 1 Dec 2026 at version 0.0.104. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 98 versions; the latest 5 were published within 3 days (29 Nov – 1 Dec 2026).
  • Findings: No rules fired in version 0.0.104.
  • Downloads: 11,996 downloads.

Versions

98 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.104 LATEST 1 Dec 2026 No rules fired
0.0.103 29 Nov 2026 No rules fired
0.0.102 29 Nov 2026 No rules fired
0.0.101 29 Nov 2026 Not shown
0.0.100 29 Nov 2026 Not shown

No rules fired in 0.0.104

Findings

Findings for v0.0.104. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.104; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

⏲️ Codometer Configuration

npm

The configuration reference for Codometer.

@codometer/configuration reads a repository's codometer.config.ts and hands back a fully defaulted configuration object. It is the only package that knows anything about a particular repository; @codometer/cli measures whatever the configuration describes.

npm install --save-dev @codometer/configuration

Install it directly when you are typing a configuration file. @codometer/cli already depends on it.

Configuration File

A codometer.config.{ts,mts,cts,js,mjs,cjs,json,jsonc} file is read from the path the run is given with --config <path>, which is required: nothing is searched for and there is no default file. format is the one field every configuration must set — there is no code-level fallback for it — and every other field is optional.

import { type CodometerConfiguration } from "@codometer/configuration";

const codometerConfiguration: CodometerConfiguration = {
  // Which report shape this run produces. Required; no default.
  format: "markdown",
  // Appended to the built-in exclusions (node_modules, dist, build, coverage,
  // .nx), matched against repository-relative paths with `path.matchesGlob`.
  exclude: ["notepads/**", "**/templates/**"],
  // Ignore files in gitignore syntax, whose patterns exclude as well.
  excludeFrom: ["configuration/ic-suite/.codometerignore"],
  // Named sets of files measured alongside the codebase itself. The built-in
  // `codebase` whole-tree scan is always present unless one of these entries
  // replaces it by name.
  inputs: [
    {
      analyses: ["size"],
      compression: "gzip",
      include: ["dist/**/*.js", "!dist/**/*.map.js"],
      name: "compiled",
    },
  ],
  // Target an unqualified limit path belongs to.
  defaultInput: "codebase",
  // How high each measured metric may go.
  limits: [
    { metric: "compiled.size", value: "8 KB" },
    { metric: "typescript.interfaces", severity: "warn", value: 500 },
  ],
  // Destinations the measured statistics are written to.
  outputs: [
    { indentation: 2, path: "output/codometer.json", type: "json" },
    {
      description: "Measured on every push.",
      // Named something other than the defaults on purpose: a file holding the
      // default start marker anywhere — a document like this one, explaining
      // it — reads as already carrying the block, and gets no block of its own.
      endMarker: "<!-- STATISTICS_END -->",
      path: "README.md",
      startMarker: "<!-- STATISTICS_START -->",
      type: "markdown",
    },
  ],
  // Interpreter used for Python analysis; defaults to `python3`.
  python: { command: "uv run python" },
};

export default codometerConfiguration;

Output paths are resolved relative to the process's working directory, not to the configuration file, so a configuration kept in a configuration/ folder still writes to the repository root.

Resolution

The configuration path is required: ConfigurationService.loadConfiguration takes a configurationPath and nothing else, and the CLI refuses a run without --config. A relative path is resolved against the working directory alone, never the repository root; a path naming no file fails with a not-found error.

The named file answers alone: no ancestor's configuration is folded into it. Merging would leave a limit that never applied looking exactly like one that did, and telling them apart would mean knowing which of several files each field came from. A configuration file is always read as a plain object — one exported as a function is not recognized, and falls back to an empty configuration, the same way a file exporting 42 does.

What Gets Measured

Discovery walks the directory itself and reads every .gitignore it passes, so .gitignore is already in force: a build directory or a virtual environment is pruned where its ignore file names it, and no exclusion has to name it again. Git is never invoked, so a directory that is not a repository at all is measured the same way as one that is, and what is measured is the working tree rather than the index — a file that exists and is not ignored counts, whether or not it has been committed yet. What the two exclusion options are for is the opposite case: files that are kept but that nobody wrote.

Option Syntax Use it for
exclude Globs, matched with path.matchesGlob A handful of paths named inline, appended to the built-in defaults
excludeFrom Paths to ignore files, in gitignore syntax Lockfiles, vendored bundles, generated documentation — the list a repository would rather keep in a file

excludeFrom files are read as gitignore syntax and matched natively, so negations, anchoring, and directory patterns behave exactly as they do in a .gitignore, and pointing codometer at a file another tool already reads gives the same answer that tool gets. Matching is case-sensitive on every platform, deliberately: git takes that from whichever filesystem it finds itself on, and a measurement that disagrees with itself between a laptop and CI is worse than a strict one.

One caution when reusing an existing ignore file: most are written for one tool's concerns, not for measurement. A .prettierignore typically ignores all markdown because a markdown linter handles it — point codometer at that and the prose metrics vanish. A dedicated .codometerignore is usually the better answer.

Inputs

An input is a named set of files, declared by include and exclude globs, together with the analyses run over it. inputs is an array — replacing what used to be called targets — and one entry is always there whether or not a configuration declares any: the built-in codebase scan, which measures everything the ignore files leave behind and runs language analysis over it.

inputs: [
  {
    analyses: ["size"],
    compression: "gzip",
    exclude: ["dist/vendor/**"],
    include: ["dist/**/*.js", "!dist/**/*.map.js"],
    name: "compiled",
  },
],
Field Required Default Meaning
name yes — What the input is called. Two inputs may not share one
include yes — Globs that add files. At least one must add rather than remove
exclude no none Globs that remove files
analyses yes — language, size, or both. At least one
compression no gzip gzip, brotli, or none for the bytes on disk
directory no . Where the input's globs start, relative to the process's working directory

language runs the same analyzers the codebase gets. size compresses each matched file on its own and sums the results — never all of them together, which would find matches across file boundaries and report a total no client ever receives. Gzip compresses at level 9 and brotli at quality 11, both stated explicitly rather than left to a library default.

A ! prefix in include removes files instead of adding them. Negations are collected into one set applied to the whole input rather than in the order they were written, so rearranging the array cannot change which files the input holds. A ! in exclude is rejected: that list already removes files, so there is nothing there to negate.

Ignore files are not consulted for a declared input. That is deliberate, and it is what lets one measure compiled output — a directory every .gitignore claims, which is exactly why no ignore rule may reach it. A file an input matched but cannot be read fails the run rather than counting as zero bytes: a total quietly short by one file is worse than no total at all.

Replacing The Built-In Codebase Input

Declaring an input named codebase replaces the built-in whole-tree scan rather than adding beside it:

inputs: [
  { analyses: ["language", "size"], compression: "none", include: ["**/*"], name: "codebase" },
],

Only its compression and analyses are read. Its include and exclude globs are not consulted at all — the whole-tree scan is discovered by walking the repository's ignore files rather than by matching globs, so the include: ["**/*"] above is a placeholder, and narrowing it to src/** would not narrow anything. To measure a subset of the tree, declare an input under some other name.

This is the only way to measure the whole tree under a different compression or set of analyses than the built-in entry runs.

Limits

A limit is how high one measured metric may go. Any metric can carry one — a compressed size, a line count, a counter for one of the conventions below — and a metric nothing limits is measured and reported exactly as before, gated by nothing.

defaultInput: "codebase",
limits: [
  { metric: "Compiled JavaScript.size", value: "8 KB" },
  { label: "Interfaces", metric: "typescript.interfaces", value: 500 },
  { metric: "linesOfCode", severity: "warn", value: 100_000 },
],
Field Required Default Meaning
metric yes — Dotted path of the metric this limits
value yes — How high the metric may go, as a number or a string with a unit
severity no fail fail stops the run on a breach; warn reports it
label no the path What to call the limit in a report

A metric is addressed by the input's name followed by its path within that input — codebase.typescript.interfaces, codebase.markdown.files, Compiled JavaScript.size. Every input carries files, an input running size analysis carries size, and one running language analysis carries every counter the codebase measurement lists, with configured counters under custom.<label>. Set defaultInput and a path naming no input is read as that input's.

Where a defaultInput is set, a path is read as that input's whenever no input name prefixes it — so with defaultInput: "codebase" and an input called typescript, typescript.interfaces is the codebase's, because the typescript input has no interfaces metric of its own to compete with it. Write the input name in full wherever an input and a metric group share one.

Ambiguity is refused, never resolved. A path that could name two metrics — an input called markdown beside the codebase's own markdown.files — fails the run naming both readings, as does a path naming none, or one naming a metric from an analysis the input never ran. A limit that quietly bound to the wrong metric would look exactly like one that works.

A value written as a string carries a decimal unit whose trailing b is required: "8 KB" is 8000 bytes and "1 MB" is 1000000, while "8 K" is not a size and is refused rather than read as anything. A value nothing can read fails the run instead of being taken as zero.

An input that matched no files fails the run if and only if a limit is written against it. Declaring a limit asserts the files are there, so an empty match is a glob that stopped matching or a build that never ran — while an input nobody limited simply measured zero, which is unremarkable.

Custom Statistics

A repository that names files by convention has a vocabulary no language analyzer knows about. The top-level custom array is what measures these counters, regardless of whether — or where — any output renders them:

custom: [
  { label: "Service Files", patterns: ["**/*.service.ts"] },
  { label: "Unit Tests", patterns: ["**/*.unit.test.ts"] },
  { color: "16a34a", label: "Migrations", patterns: ["**/migrations/*.sql"] },
],

Each entry becomes one badge, in the order it was configured, everywhere it is selected. Globs are matched against repository-relative paths with path.matchesGlob over the same discovered files everything else measures, so exclusions apply. A file matching several of one entry's globs counts once. color is a shields.io hexadecimal triplet; entries that omit it take the next color from a built-in palette, cycling so a counter's color stays the same between runs.

A counter selects what it counts with one of four fields — patterns, symbols, comment, or tree — and needs at least one of them, or it is rejected as counting nothing.

An output's own custom array is a separate, later concern: it selects, by label, which of the top-level counters that destination renders — it never declares a counter of its own. A JSON report and a markdown report may still select entirely different labels:

custom: [
  { label: "Service Files", patterns: ["**/*.service.ts"] },
  { label: "Unit Tests", patterns: ["**/*.unit.test.ts"] },
],
outputs: [
  { custom: ["Service Files"], path: "codometer-report.json", type: "json" },
  { custom: ["Unit Tests"], path: "README.md", type: "markdown" },
],

A label an output selects that the top-level custom never declared is refused when the configuration loads — selection cannot conjure a counter that was never measured. A counter the top level declares but no output selects is still measured and still gates a limit; it simply renders nowhere.

Counting Declarations

symbols counts declarations in TypeScript and JavaScript sources instead of files. It asks for one or more kinds, optionally narrowed to declarations carrying every named modifier:

custom: [
  {
    group: "typescript",
    label: "Static Methods",
    symbols: { kinds: ["method"], modifiers: ["static"] },
  },
  { label: "Abstract Classes", symbols: { kinds: ["class"], modifiers: ["abstract"] } },
],

kinds are class, enum, file, function, getter, interface, method, property, setter, signature, type, and variable. modifiers are abstract, async, export, override, private, protected, public, readonly, and static.

Both are read literally, from the syntax. A callable written as a class member is a method; one written anywhere else is a function, arrow functions included. A class field holding an arrow function is a property, and the arrow carries none of the field's modifiers — so a static build = () => {} is found by asking for static properties, not static methods. public matches members annotated public, not members that are public by omission, and private does not match a #name field, which carries no modifier at all.

A symbol counter may also carry patterns, which then narrows which files are searched rather than being what is counted — patterns: ["packages/**"] with a symbols matcher counts declarations in packages/. Counting happens during the walk the TypeScript analyzer already makes, so any number of these costs one pass over the sources.

Selecting A Comment Budget

comment selects a comment budget for a counter to measure, rather than counting files or declarations:

custom: [
  { comment: { language: "yaml", maximumWords: 128 }, label: "YAML Comment Budget" },
  { comment: { kind: "class", maximumLines: 24 }, label: "Class Comment Budget" },
],

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @codometer/configuration

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229