EchoChat
Real-time WebSocket chat rooms with built-in @gemini AI.
Real-time WebSocket chat rooms with built-in @gemini AI.
Real-time collaboration platform built with Spring Boot WebSockets and Redis multi-instance sync. Supports instant public rooms, password-protected private rooms, automatic 60-minute idle cleanup, and an integrated @gemini AI assistant.
Security-hardened CLI for auditing and verifying JWTs.
Developer CLI (jwti) for inspecting, verifying, linting, and diffing JSON Web Tokens across auth flows and CI/CD pipelines. Enforces strict algorithm allowlists, supports SSRF-protected remote JWKS, and detects leaked PII or weak secrets.
Cryptographic password Chrome extension.
Manifest V3 Chrome extension built with TypeScript and esbuild for generating strong passwords directly in the browser. Uses Web Crypto crypto.getRandomValues() with unbiased Fisher-Yates shuffling and guaranteed character-class rules.
Personal finance platform with Keycloak SSO and Gemini AI.
Personal finance management platform built with Spring Boot 3, React 19, and PostgreSQL for cash-flow analysis and multi-horizon savings goal tracking. Secures authentication with Keycloak OAuth2/OIDC SSO and surfaces tailored financial insights via Google Gemini.
Resilient HTTP health monitor with backoff retries.
Self-hosted Java 21 and Spring Boot health monitor that polls configurable HTTP(S) endpoints on isolated worker pools. Prevents false alarms with consecutive-check state machines, retries failures with exponential backoff, and stores recent history in ring buffers.
Real-time filesystem monitor with streaming file hashing.
Self-hosted filesystem sentry watching directories via debounced watch events and indexing metadata in PostgreSQL. Streams multi-gigabyte files through a backpressure-aware hash worker pool in constant memory to flag tampering, duplicates, and trigger quarantine policies.
A developer-first CLI tool for decoding, verifying, linting, diffing, and batch-auditing JSON Web Tokens.
Required explicit --alg allowlists to eliminate key-downgrade and alg:none attacks while shielding remote JWKS fetches against SSRF.
A security-hardened, developer-friendly command-line tool for decoding, verifying, validating, linting, diffing, and generating JSON Web Tokens (JWTs).
Built for developers debugging auth flows, security engineers auditing token hygiene, and CI/CD pipelines requiring deterministic machine-readable pass/fail signals.
HS256, HS384, HS512), RSA (RS256, RS384, RS512, PS256, PS384, PS512), ECDSA (ES256, ES384, ES512), and EdDSA (Ed25519).--alg). Fails closed on untrusted algorithms or alg: none.RS256 $\to$ HS256 key-downgrade attacks.kid resolution.exp, long lifetimes (> 1 year), missing asymmetric kid, short HMAC secrets, and scans for unencrypted PII (emails, SSNs, credit cards with Luhn verification, API keys).--check-weak-secret) against known weak candidate secrets.diff): Compares claims and headers between two tokens, highlighting added (+), removed (-), and modified (~) claims and timestamp deltas.batch): Line-by-line processing of token files or stdin streams, featuring two-stage regex log extraction (--extract) and NDJSON streaming.--from-clipboard, --to-clipboard), plain-English claim explainer (--explain), TOML configuration profiles (~/.jwti/config.toml), and auto-completions for bash, zsh, and fish.You can install jwt-inspector globally using NPM to use the jwti command anywhere on your system.
npm install -g jwt-inspector
Compile the zero-dependency cross-platform executable via Bun:
npx bun build --compile ./dist/bin/jwti.js --outfile dist/jwti
./dist/jwti --version
npx jwt-inspector <command> [options]
jwti decodeDecodes header and payload without signature verification (clearly marked as UNVERIFIED).
# Decode token
jwti decode eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
# Decode directly from system clipboard
jwti decode --from-clipboard
# Inspect encrypted JWE token header and segment sizes
jwti decode eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0... --jwe
# Decrypt symmetric JWE
jwti decode <jwe_token> --jwe --secret "my-32-byte-secret-key-1234567890"
# Plain-English claim breakdown
jwti decode <token> --explain
jwti verifyVerifies signature, enforces algorithm policies, and validates time claims (exp, nbf, iat) and standard claims (aud, iss, sub).
# Verify HMAC token (explicit --alg required)
jwti verify <token> --alg HS256 --secret "my_secret"
# Verify RSA token via PEM public key file
jwti verify <token> --alg RS256 --key-file ./public_key.pem
# Verify via remote JWKS endpoint
jwti verify <token> --alg RS256 --jwks-url "https://auth.example.com/.well-known/jwks.json"
# Validate audience, issuer, and subject claims with clock tolerance
jwti verify <token> --alg ES256 --key-file ./ec_pub.pem --aud "api.example.com" --iss "https://auth.example.com" --leeway 30
# JSON output mode for scripting
jwti verify <token> --alg HS256 --secret "secret" --json
jwti lintAudits token for security hygiene, lifetime misconfigurations, PII leakage, and weak secrets.
# Audit token
jwti lint <token>
# Evaluate HMAC secret byte-length & entropy
jwti lint <token> --secret "my_secret"
# Run dictionary audit against known weak secrets
jwti lint <token> --check-weak-secret
jwti signGenerates spec-compliant JWTs for testing, mocking, and reproduction.
# Generate valid HMAC token
jwti sign --alg HS256 --secret "secret" --claims '{"sub":"user_123","role":"admin"}' --iss "auth.local"
> [!TIP]
> **Windows PowerShell Users**: PowerShell aggressively strips nested quotes. When passing JSON to `--claims`, use outer single quotes and escape the inner double quotes: `'{\`"sub\`": \`"user\`"}'` or `'{\\"sub\\": \\"user\\"}'` depending on your version. Alternatively, rely on the built-in `--sub` / `--iss` flags!
# Copy generated token directly to clipboard
jwti sign --alg HS256 --secret "secret" --claims '{"sub":"user_123"}' --to-clipboard
# Generate test simulation tokens (deliberately broken for testing verifiers)
jwti sign --alg HS256 --secret "secret" --expired
jwti sign --alg HS256 --secret "secret" --wrong-aud
jwti sign --alg none --claims '{"sub":"attacker"}'
jwti diffCompares claims and headers between two tokens side-by-side.
jwti diff <token1> <token2>
jwti batchProcesses multiple tokens from newline-delimited files or stdin streams.
# Decode stream from file or stdin
cat tokens.txt | jwti batch -
# Extract and verify JWTs embedded in raw server log files
jwti batch /var/log/app.log --extract --alg RS256 --jwks-url "https://auth.example.com/jwks.json" --json
jwti completionGenerates shell auto-completion scripts.
# Bash
jwti completion bash > ~/.local/share/bash-completion/completions/jwti
# Zsh
jwti completion zsh > ~/.zsh/completion/_jwti
# Fish
jwti completion fish > ~/.config/fish/completions/jwti.fish
~/.jwti/config.toml)Create named configuration profiles in ~/.jwti/config.toml to store environment defaults:
[profiles.dev]
alg = ["HS256", "RS256"]
aud = "dev.api.example.com"
iss = "https://auth.dev.example.com"
jwks_url = "https://auth.dev.example.com/.well-known/jwks.json"
secret = "dev-secret"
[profiles.prod]
alg = ["RS256", "ES256"]
aud = "api.example.com"
iss = "https://auth.example.com"
jwks_url = "https://auth.example.com/.well-known/jwks.json"
Use the profile with the --profile flag:
jwti verify <token> --profile dev
Precedence Hierarchy: Explicit CLI arguments override Profile settings, which override built-in defaults.
jwti adheres to a strict, deterministic exit code specification for automated pipelines:
| Exit Code | Meaning | Description |
|---|---|---|
0 | VALID | Verification succeeded or lint check found no critical/error issues. |
1 | INVALID_SIGNATURE | Cryptographic signature mismatch, untrusted algorithm, or weak secret matched. |
2 | TIME_EXPIRED | Token is expired (exp), not yet valid (nbf), or issued in future (iat). |
3 | MALFORMED_TOKEN | Invalid Base64URL, corrupt JSON, or invalid segment structure. |
4 | CLAIM_MISMATCH | Expected aud, iss, or sub mismatch. |
jwti decodes them for inspection, but developers must use JWE (JSON Web Encryption) if confidentiality is required.alg is untrusted user input. The caller's --alg allowlist strictly dictates which algorithms are permitted. Verification fails closed if no --alg is specified. alg: none verification attempts are unconditionally rejected.KeyLike objects, neutralizing RS256 $\to$ HS256 key-confusion attacks by design.169.254.169.254), and intercepts malicious HTTP redirects. These checks apply natively unless explicitly bypassed with --allow-insecure-jwks for local development.jwti adheres to a strict Exit Code contract (1=Signature/Algorithm, 2=Time, 3=Malformed, 4=Claims) for safe and deterministic automated CI/CD gating.While jwti is optimized for performance, it relies on underlying V8 and OS boundaries for extreme edge cases:
ENAMETOOLONG); use stdin, clipboard, or batch file processing for massive tokens.JSON.parse. There is no explicit recursive depth limit; parsing excessively deep nested objects (e.g., > 5,000 levels) will safely throw a V8 'Maximum call stack size exceeded' exception, rejecting the token.