Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogSanity 🔒

A blazing-fast, zero-dependency, offline-first local CLI utility to parse and safely sanitize sensitive keys (passwords, live API tokens, database credentials, JWTs) from structured JSON payloads and application error logs before they leave your local workspace.


Quick Start (Zero Configuration)

Analyze and strip secrets from any local log stream instantly directly from your terminal:

npx logsanity ./logs/debug.log
cat application.log | npx logsanity

Before & After

Raw Entry (debug.log)

{
  "level": "error",
  "timestamp": "2026-06-06T14:00:00Z",
  "message": "Outbound billing telemetry sync failure",
  "config": {
    "db_host": "127.0.0.1",
    "password": "my_cleartext_database_password_99"
  },
  "payload": {
    "amount": 4900,
    "stripe_token": "sk_live_51Nx902813jK"
  }
}

Redacted Console Output

{
  "level": "error",
  "timestamp": "2026-06-06T14:00:00Z",
  "message": "Outbound billing telemetry sync failure",
  "config": {
    "db_host": "127.0.0.1",
    "password": "[REDACTED_BY_LOGSANITY]"
  },
  "payload": {
    "amount": 4900,
    "stripe_token": "[REDACTED_BY_LOGSANITY]"
  }
}

Deployment

# 1. Point your local repository to your remote GitHub profile (replace with your details)
git remote add origin https://github.com/YOUR_GITHUB_USERNAME/logsanity.git

# 2. Name your main deployment branch
git branch -M main

# 3. Push the clean, free engine directly to the cloud storefront!
git push -u origin main

About

A blazing-fast, offline-first local CLI utility to parse and sanitize sensitive secrets, passwords, and tokens from nested JSON streams and log files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages