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.
Analyze and strip secrets from any local log stream instantly directly from your terminal:
npx logsanity ./logs/debug.logcat application.log | npx logsanityRaw 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]"
}
}# 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