</>PackageGraphPackageGraph

nostics

npmv1.2.0TypeScript

Structured diagnostic code library

Safe to adopt

Yes — nostics scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 54 days ago. 13 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 54 days ago. 13 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 91 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding nostics to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

91 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the nostics README.

import { createConsoleReporter, defineDiagnostics } from 'nostics'

export const diagnostics = defineDiagnostics({
  docsBase: code => `https://nuxt.com/e/${code.replace('NUXT_', '').toLowerCase()}`,
  reporters: [createConsoleReporter()],
  codes: {
    NUXT_B2011: {
      why: (p: { src: string, mode: 'client' | 'server' }) => {
        const expected = p.mode === 'client' ? 'server' : 'client'
        return `Plugin "${p.src}" is ${expected}-only but was registered with mode "${p.mode}".`
      },
      fix: (p: { mode: 'client' | 'server' }) => {
        const expected = p.mode === 'client' ? 'server' : 'client'
        return `Rename the file or register it with mode "${expected}".`
Example truncated — see the full README.

Dependencies

Declared by nostics v1.2.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (25)

@antfu/eslint-config ^9.0.0@antfu/ni ^30.1.0@antfu/utils ^9.3.0@posva/prompts ^2.4.4@size-limit/esbuild-why ^12.1.0@size-limit/preset-small-lib ^12.1.0@types/node ^25.9.3@types/semver ^7.7.1@vitest/coverage-v8 4.1.8@vitest/ui 4.1.8conventional-changelog ^7.2.0conventional-changelog-angular ^8.3.1eslint ^10.5.0lint-staged ^17.0.7nostics 1.2.0oxfmt ^0.54.0publint ^0.3.21semver ^7.8.4simple-git-hooks ^2.13.1size-limit ^12.1.0tsdown ^0.22.2tsnapi ^0.3.3typescript ^6.0.3vite ^8.0.16vitest ^4.1.8

Used by

Popular packages that depend on nostics.

Relationship graph

Dependencies (left) and dependents (right) of nostics.

Frequently installed together

Release history

13 releases in the last two years, typically about 6 days apart.

Recent versions of nostics
VersionPublishedSizeLicense
1.2.0latest1 month ago91 KBMIT
1.1.42 months ago89 KBMIT
1.1.32 months ago89 KBMIT
1.1.22 months ago89 KBMIT
1.1.02 months ago89 KBMIT
1.0.02 months ago74 KBMIT
0.5.02 months ago77 KBMIT
0.4.03 months ago122 KBMIT
0.3.03 months ago107 KBMIT
0.2.03 months ago100 KBMIT
0.1.03 months ago99 KBMIT
0.0.44 months ago90 KBMIT
0.0.05 months ago260 BUNLICENSED

Overview

nostics is an npm package that structured diagnostic code library. It has 13 known dependents in the graph. The latest version is 1.2.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need structured diagnostic code library and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (25 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use nostics?

Yes — nostics scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 54 days ago. 13 releases in the last 2 years.

How do I install nostics?

Run `npm install nostics` to add nostics to your npm project.

What license is nostics released under?

nostics is distributed under the MIT license.

How popular is nostics?

npm does not publish download counts. Within PackageGraph's crawl, 13 known packages depend on nostics.

Is nostics still maintained?

The most recent release of nostics (v1.2.0) was published 1 month ago.

Does nostics run install scripts?

No. nostics does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.