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

@palamedes/config

v1.25.0

Published

Lean config loading for Palamedes projects

Readme

@palamedes/config

npm version CI Sponsored by Sebastian Software License: MIT OR Apache-2.0

Lean config loading for Palamedes projects.

Use @palamedes/config when framework integrations need to load Palamedes config files. It supports canonical palamedes.yaml files, secondary palamedes.yml, palamedes.json, and palamedes.toml data files, and the legacy palamedes.config.ts/js/mjs/cjs TypeScript/JavaScript formats.

Minimal Example

locales: [en, de]
source-locale: en
source-reference-root: git
catalogs:
  - path: src/locales/{locale}
    include: [src]
    po:
      line-breaks: "off"

PO output options are per catalog. In JavaScript or TypeScript configs, use po: { lineBreaks }; data configs use the kebab-case spelling shown above. Catalog order is not configurable — Ferrocat gives PO and FCL catalogs the CLDR root order matching Intl.Collator("en-US"). The po object is invalid for FCL catalogs.

Exports

  • defineConfig(config)
  • loadPalamedesConfig(options?)
  • loadPalamedesConfigSync(options?) — synchronous variant with the same options and return shape, for hosts that cannot await (e.g. synchronous loader hooks)
  • CONFIG_FILENAMES
  • expandFallbackLocales(locales, fallbackLocales?)
  • resolveCatalogPath(config, catalogPath, locale)
  • resolveConfigPattern(config, pattern)
  • PalamedesPluginDeclaration (TypeScript)

Configuration Notes

  • fallback-locales defines the fallback chain for missing translations. It can be one shared array or a per-locale map.
  • pseudo-locale marks a generated pseudo-locale used for layout and hardcoded string checks. Plugin integrations skip failOnMissing failures for that locale while keeping strict checks for real locales.
  • source-reference-root controls the root used for catalog source references. The default is "git", which emits paths relative to the nearest Git repository root and falls back to the config directory when no Git root is available. Use "lingui" or "config" for Lingui-compatible references relative to the config directory, or pass a custom path.
  • reference-scopes defaults to true. Set it to false to skip stable component/function scope extraction and emit file-only PO and FCL references.
  • catalogs[].format defaults to "po". Set it to "fcl" to use Ferrocat Catalog Lines for canonical, merge-friendly generated catalog storage.
  • plugins explicitly lists CLI plugin package specifiers or [specifier, options] pairs. Packages are never auto-discovered, and built-in CLI commands do not load them.
  • loadPalamedesConfig() returns sourceReferenceRoot and the resolved referenceScopes boolean in addition to configPath and rootDir. Its configDependencies array contains real paths for the config and every local file imported by a legacy executable config. Framework integrations use this list for cache invalidation and file watching. Pass skipValidation only when inspecting a partially-authored config file.

See Catalog formats for the PO/FCL storage boundary.

See Pseudo-localization and fallback locales for examples and the recommended development workflow.

palamedes is part of the Ferramenta family — Rust-native developer tools that keep the APIs the ecosystem already knows.

Siblings: ferroni · ferriki · ferromark · ferrolex · ferrocat · ferrovia · ferralk · ferrugo.

License

Sebastian Software

MIT OR Apache-2.0 © 2026 Sebastian Software