๐ง New Feature
May 20, 2025โข300 words
๐งช diff API Feature โ Compare Keywords Like a Log Wizard ๐งโโ๏ธ
Welcome to the mighty diff feature of your API!
Compare sysadminy phrases like awk vs bash, or ssh vs a random gremlin from the logs.
๐ Endpoint Format
api.php?diff=keyword1[+keyword2][&format=txt|html|json][&diffmode=...]
Parameters:
| Parameter | Description |
|---|---|
diff |
One or two keywords joined by + (or just one โ we'll summon a random phrase for the second) |
format |
Output format: txt, html, or json |
diffmode |
Visual diff style: classic, strike, redacted, corrupt, delta, tagged |
๐ง Keyword Comparison Modes
| Example | Result |
|---|---|
diff=ssh+cron |
Compares ssh vs cron phrases |
diff=ssh |
Compares ssh vs a random log phrase |
diff=banana+donkey |
Both invalid? We punt you to the keyword list |
diff= or diff=list |
You get the full list of valid keywords |
๐จ Diff Modes
Want to see what kind of visual magic we support? Try:
?diffmode=list
Available Modes:
classicโ Old school:- removed,+ addedstrikeโ ~~deleted~~ and ++added++ (Markdown vibes)redactedโ [REDACTED], because who needs transparency?corruptโ Text scrambled like your thoughts at 3AMdeltaโ Inline arrows:fooโbartaggedโ Annotated with [!] and [!!] so your log looks like itโs yelling
๐งช JSON Output (Sample)
[
"awk output phrase...",
"bash output phrase...",
"- awk phrase line\n+ bash phrase line",
"classic"
]
Or use ?format=json&diffmode=delta and marvel at those โก๏ธ.
๐พ Final Note
This API doesnโt just compare logs โ it tells stories of heroic cron jobs, fallen sshd soldiers,
and redacted mysteries. Use it wisely.
๐งโโ๏ธ Happy diffing!