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

i18nsmith

v0.6.0

Published

CLI for i18nsmith

Readme

i18nsmith CLI

Command-line interface for i18nsmith - universal automated i18n.

Installation

npm install -g i18nsmith
# or
pnpm add -g i18nsmith

Quick Start

# Initialize project
i18nsmith init

# Scan for translation candidates
i18nsmith scan

# Sync locale files with code
i18nsmith sync

# Run health checks
i18nsmith check

Commands

| Command | Description | |---------|-------------| | init | Initialize i18n configuration | | scan | Scan source files for hardcoded text | | sync | Synchronize locale files with code references | | check | Run validation checks on locales | | transform | Transform hardcoded strings to i18n calls | | rename | Rename translation keys | | diagnose | Generate diagnostic report | | backup | Backup/restore locale files | | detect | Auto-detect project configuration | | review | Review borderline candidates interactively | | translate | Translate using external services | | coverage | Show translation coverage stats | | preflight | Validate setup before operations | | scaffold-adapter | Scaffold translation adapter files |

Architecture

The CLI follows Hexagonal Architecture principles. Commands use ServiceContainer for dependency injection:

import { getServiceContainer } from '../utils/bootstrap.js';
import { CliError, withErrorHandling } from '../utils/errors.js';

export function registerMyCommand(program: Command) {
  program
    .command('my-command')
    .action(withErrorHandling(async (options) => {
      const { config, projectRoot } = await loadConfigWithMeta(options.config);
      const container = getServiceContainer({ workspaceRoot: projectRoot });
      
      const result = await container.scanner.scan(config);
      if (!result.success) {
        throw new CliError(result.error.message);
      }
      
      // Use result.data
    }));
}

Service Container

The CLI bootstrap (src/utils/bootstrap.ts) configures:

  • NodeFileSystem - Node.js file operations
  • CliLoggerFactory - Console logging with chalk formatting

Commands Using ServiceContainer

| Command | Services Used | |---------|--------------| | scan | scanner | | sync | keyRenamer | | check | check | | diagnose | diagnostics | | detect | projectIntelligence | | backup | backup | | rename | keyRenamer | | coverage | diagnostics | | init | scanner, keyGenerator, projectIntelligence | | review | scanner | | scaffold-adapter | diagnostics |

Development

# Build
pnpm build

# Test
pnpm test

# Run locally
node dist/index.js <command>

Adding New Commands

  1. Create command in src/commands/my-command.ts
  2. Use getServiceContainer() for service access
  3. Handle Result<T> pattern for error handling
  4. Register in src/index.ts

See CONTRIBUTING.md for detailed patterns.

Related Documentation

| Document | Purpose | |----------|---------| | ARCHITECTURE.md | System architecture, Hexagonal pattern | | CONTRIBUTING.md | Contribution guidelines | | docs/schema.md | Configuration schema reference | | docs/best-practices.md | Usage best practices | | @i18nsmith/core README | Core library documentation |