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

@alint-js/config

v0.0.34

Published

Readme

@alint-js/config

Config loading and setup-file utilities for alint.

What it does

This package owns the file-system side of configuration:

  • loads alint.config.ts
  • resolves global and project setup TOML paths
  • parses and stringifies setup TOML
  • merges setup layers
  • writes provider setup files
  • installs remote plugin packages or local plugin directories and writes .alint/plugins/lock.json
  • exports built-in ignore pattern groups for lower-level tooling

It is used by @alint-js/cli and is useful for tools that need to inspect or prepare an alint project without running the linter.

Ordinary alint.config.* files should import ignore presets through the @alint-js/cli facade so projects only need the CLI package.

How to use

import {
  getGlobalSetupConfigPath,
  installStaticPlugins,
  loadAlintConfig,
  loadSetupConfig,
  writeSetupConfig,
} from '@alint-js/config'

const setupPath = getGlobalSetupConfigPath()
const cwd = process.cwd()
const setup = await loadSetupConfig(setupPath)

await installStaticPlugins({ cwd })

const config = await loadAlintConfig(cwd)

await writeSetupConfig(setupPath, setup)

Static configs can use TOML, YAML, JSON, JSONC, or JSON5. They are data-only alternatives to executable JavaScript and TypeScript flat configs, and identify plugin sources with strings.

For example, TOML supports exact remote packages, config-relative directories, and native absolute paths:

[[config.group]]

[config.group.plugins]
plugin_1 = "@scope/[email protected]" # package
plugin_2 = "./plugins/relative-plugin-examplex" # relative directory
plugin_3 = "/opt/alint/plugins/absolute-plugin" # absolute directory

Relative paths use the config file's directory as their base. Windows native paths should use TOML literal strings so backslashes remain literal:

[[config.group]]

[config.group.plugins]
native = 'C:\alint\plugins\native-plugin'

Use installStaticPlugins after adding or changing plugin sources.

  • Package: downloads the exact package version into .alint/plugins/store, verifies its integrity, and locks the installed snapshot.
  • Local: installs the directory in place, validates its package root export, and locks its physical directory identity. It does not build the plugin or install its dependencies.

Run installation again after changing a source string, moving a local directory, or changing its symlink target. Changes inside the same local directory are loaded by the next process without reinstalling.

Plugin lockfile

.alint/plugins/lock.json stores package snapshots with integrity metadata and local directory source identities. Local plugin code executes as trusted Node.js; containment checks are not a sandbox.

When to use

  • You are building CLI commands, editors, or automation around alint config.
  • You need to read or write provider setup TOML.
  • You need to load alint.config.* outside the official CLI.
  • You need to install remote packages or local plugin directories before loading static config.
  • You need the same ignore defaults as the official CLI in lower-level tooling.

When not to use

  • Use @alint-js/cli when you only need the alint command or an ordinary alint.config.* file.
  • Use @alint-js/core when you need the rule DSL, source runtime, model resolution, or run engine.