Skip to content

About

Resources

Stars

6 stars

Watchers

0 watching

Forks

Repository files navigation

namechecker

Find a name for your slopware.

CLI demo

Features

  • 9 services — Domains, GitHub, npm, JSR, crates.io, RubyGems, PyPI, Twitter/X, Bluesky
  • Plugins - Easy to add new services via plugins
  • Fast — results appear as each service responds
  • Web UI — toggleable services, search history, expandable sub-results
  • CLI — fast check from the command line

Install

npm install -g namechecker
# or
bun install -g namechecker

Usage

# Check a name across all services
namechecker check my-project

# Check specific services only
namechecker check my-project -s domain,github,npm

# List available plugins
namechecker list

Web UI

namechecker web demo

bun install
bun dev

Open localhost:3000.

Environment Variables

Variable Required Description
VERCEL_TOKEN Yes Vercel API token for domain availability checks
X_API_KEY No X (Twitter) API key (falls back to scraping without it)

How It Works

@namechecker/core is plugin-driven. Each plugin implements NameChecker (id, name, icon, check(name)), where check is an Effect program:

  • Effect<CheckResult, PluginCheckError, HttpClient>
  • CheckResult is the user-facing availability payload
  • PluginCheckError is a typed expected error (rate limit, missing token, unexpected upstream status, invalid response, transport failure)

The registry (checkAllStream) runs enabled plugins concurrently with Effect streams and emits a per-plugin outcome union:

  • Success → { _tag: "Success", pluginId, result }
  • Failure → { _tag: "Failure", pluginId, result, error }

Failure still includes a fallback result (available: null) so one plugin never blocks others.

Client (CLI or Web) → checkAllStream(name, enabledPlugins)
                               ↓
                 all plugins run concurrently via Effect
                               ↓
                 per-plugin Success/Failure outcomes stream
                               ↓
          CLI: in-place row redraw while pending, full detail at end
          Web: NDJSON parsed by useStreamingCheck(), cards update live

Tech Stack

License

MIT

About

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages