Skip to content

docs: add animated demo GIF to README#671

Merged
supermacro merged 1 commit intosupermacro:masterfrom
ofershap:add-demo-gif
Feb 14, 2026
Merged

docs: add animated demo GIF to README#671
supermacro merged 1 commit intosupermacro:masterfrom
ofershap:add-demo-gif

Conversation

@ofershap
Copy link

Summary

  • Adds an animated before/after GIF showing try/catch with unknown errors vs neverthrow's typed Result with .match()
  • Placed right after the description heading for immediate visual impact
  • GIF stored in assets/demo.gif (~1 MB)

The animation was generated with Remotion using the Catppuccin Mocha color scheme.

Preview

The GIF shows:

  • Left panel (Before): Traditional try/catch where e is unknown and error source is ambiguous
  • Right panel (After): neverthrow's andThen chain 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

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

⚠️ No Changeset found

Latest commit: e9c90e6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@supermacro
Copy link
Owner

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:

CleanShot 2026-02-13 at 09 34 07@2x

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>
@ofershap
Copy link
Author

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!

@supermacro supermacro merged commit 5ef3a01 into supermacro:master Feb 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants