docs: add animated demo GIF to README#671
Conversation
|
aaa8084 to
9d84d5e
Compare
|
Hey @ofershap this is really cool! Thank you. I wonder, though, if it would make more sense to just show the before / after as a static image such as this:
If we can have it with simple syntax highlighting that'd be awesome too. |
Add a before/after PNG showing try/catch vs neverthrow's typed Result pattern with syntax highlighting. 75KB image. Co-authored-by: Cursor <cursoragent@cursor.com>
8781798 to
e9c90e6
Compare
|
Good call — swapped the animated GIF for a static PNG (75KB). It shows both panels side-by-side with syntax highlighting. Let me know if you'd like any tweaks to the colors or layout! |

Summary
try/catchwithunknownerrors vs neverthrow's typedResultwith.match()assets/demo.gif(~1 MB)The animation was generated with Remotion using the Catppuccin Mocha color scheme.
Preview
The GIF shows:
eisunknownand error source is ambiguousandThenchain with fully typed error handling via.match()Motivation
neverthrow's README is comprehensive but entirely text-based. A visual demo at the top helps new visitors immediately understand the value proposition before diving into the API docs.
Made with Cursor