GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” GitHub - psandis/driftclaw: driftclaw answers one question fast: what version is actually running where

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
bin
bin
 
 
data
data
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.node-version
.node-version
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
driftclaw.example.yaml
driftclaw.example.yaml
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
tsconfig.json
tsconfig.json
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

Driftclaw ๐Ÿฆ€

npm

See deployment drift across dev, test, staging, prod, and whatever weird environment names your company invented.

Driftclaw

driftclaw answers one question fast: what version is actually running where?

It checks multiple services across multiple environments, pulls version data from the sources you already have, and highlights drift before you waste time clicking through dashboards, docs, health endpoints, and admin panels.

Plain table output is the default for reporting commands. Use --ink if you want the Ink/TUI renderer instead.

Why Driftclaw Exists

Deployment drift is easy to create and annoying to verify.

  • One service exposes /version
  • Another hides version in openapi.json
  • A WordPress site leaks it through a meta tag
  • Environment names do not match across systems
  • One team says prod, another says prd, another says live

Driftclaw gives you one command that turns that mess into a clear matrix.

10-Second Proof

pnpm cli
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Service     โ”‚ dev    โ”‚ test   โ”‚ prod   โ”‚ inf    โ”‚ Status        โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ auth-api    โ”‚ v2.4.0 โ”‚ v2.3.1 โ”‚ v2.2.0 โ”‚ โ€”      โ”‚ โš  major drift โ”‚
โ”‚ billing-api โ”‚ 1.8.0  โ”‚ 1.8.0  โ”‚ 1.8.0  โ”‚ 1.8.0  โ”‚ โœ“ sync        โ”‚
โ”‚ marketing   โ”‚ 6.9.4  โ”‚ โ€”      โ”‚ 6.9.4  โ”‚ 6.9.4  โ”‚ โœ“ sync        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Summary: 3 services ยท 2 sync ยท 1 drift

Who It Is For

  • Platform and DevOps teams that need quick deployment visibility
  • Backend teams with multiple APIs across multiple environments
  • Agencies and consultants inheriting inconsistent client infrastructure
  • Enterprise teams stuck with mixed naming like dev, tst, uat, inf, prd
  • Polyrepo teams where every service exposes version info differently

Install

git clone https://github.com/psandis/driftclaw.git
cd driftclaw
pnpm install
pnpm build

Create driftclaw.yaml

Create a driftclaw.yaml in the directory where you want to run driftclaw:

cp driftclaw.example.yaml driftclaw.yaml

Starter example:

environments:
  dev:
    url: https://dev.api.example.com
  test:
    url: https://tst.api.example.com
  prod:
    url: https://api.example.com

services:
  app-api:
    source: http
    path: /version
    field: version

  docs-api:
    source: http
    path: /openapi.json
    field: info.version

  website:
    source: html-meta
    field: generator
    environments:
      dev:
        url: https://dev.example.com
      prod:
        url: https://example.com

Then run:

driftclaw
  • environments defines the default environment URLs
  • services defines what to check and how to extract the version
  • service-level environments overrides the defaults when a service uses different URLs

What It Handles Well

  • Mixed environment names across services
  • Per-service environment overrides
  • Multiple version source types in one config
  • Semver drift severity: major, minor, patch
  • Human output and machine output
  • Partial environment coverage with gaps shown as โ€”

CI And Automation

Common commands:

driftclaw
driftclaw --ink
driftclaw check auth-api
driftclaw drift

Use JSON when you want structured output:

driftclaw --json
driftclaw drift --json
driftclaw check auth-api --json

Fail a pipeline only when you want drift to gate delivery:

driftclaw --fail-on-drift
driftclaw drift --fail-on-drift

Drift itself is not treated as a runtime error unless you opt into --fail-on-drift.

Version Sources

Source Description
http GET a JSON endpoint and extract a field
html-meta Extract version from HTML <meta> tags
git-tag Latest tag from a GitHub repo
gitlab-tag Latest tag from a GitLab repo
bitbucket-tag Latest tag from a Bitbucket repo
docker Latest semver-looking tag from Docker Hub
npm Latest version from npm registry
custom Run any shell command and use stdout

Notes:

  • http works with /version, /info, /health, /status, /openapi.json, or any other JSON endpoint
  • dot notation is supported, for example info.version
  • html-meta is useful for WordPress, WooCommerce, and other sites exposing version data in meta tags
  • Git sources can use GITHUB_TOKEN, GH_TOKEN, GITLAB_TOKEN, or BITBUCKET_TOKEN
  • custom commands receive DRIFTCLAW_ENV and DRIFTCLAW_SERVICE

Notes

  • Driftclaw does not enforce environment naming. Use whatever your org already has: dev, test, qa, uat, inf, prd, live, region names, or custom names.
  • If one service uses different URLs or different environment names than the rest, override them on that service.
  • This is a release-verification tool, not a monitoring system.

Related

  • ๐Ÿฆ€ Feedclaw - RSS/Atom feed reader and AI digest CLI
  • ๐Ÿฆ€ Dustclaw - Find out what is eating your disk space
  • ๐Ÿฆ€ Dietclaw - Codebase health monitor for size, bloat, and dependency weight
  • ๐Ÿฆž OpenClaw - The OpenClaw ecosystem

License

See MIT

About

driftclaw answers one question fast: what version is actually running where

Topics

clideployment-driftdeveloper-toolsdevopsenvironment-managementopenclawrelease-managementtypescriptversion-tracking

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.