HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
snaptoken
leg
Ruby2018–2018
snaptoken / leg

leg

Tools for making step-by-step code walkthroughs

2Distinct people
2Mentions
0Explicit recommenders
149GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Tools for making step-by-step code walkthroughs

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour2 dated mentions

Observed mentions: 2018-09-05 17:35:01 UTC to 2018-09-05 18:23:59 UTC.

012018-09-05 17:00:00 UTC to 2018-09-05 18:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 5, 17:002018-09-05 18:00:00 UTC to 2018-09-05 19:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsSep 5, 18:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Sep 5, 17:002018-09-05 17:00:00 UTC2018-09-05 18:00:00 UTC101
Sep 5, 18:002018-09-05 18:00:00 UTC2018-09-05 19:00:00 UTC101

What Hacker News says

2 sources
> I'm working on a tool which abstracts away git rebase This is 99% of what I need! In the best case it's just files/folders I can edit manually or with the help of a CLI. > The tool is still in very early development, but here's a quick tutorial to get a better idea of how it works: https://github.com/snaptoken/leg/blob/master/TUTORIAL.md Now, if those diffs are rendered nicely and the splitting up of a step into multiples (or: explain separate parts of one step) works, I think that really is 99% of what I need. The 1% being the grouping of steps into a chapter and some other small things probably
In The Tools I Use to Write Books
For project-based tutorials/books, which are centred around building a program step-by-step by following a series of human-readable diffs, I think a tool is very much needed. For https://viewsourcecode.org/snaptoken/kilo/02.enteringRawMode... , the code is kept in a git repo where each commit is a step in the tutorial. This way steps can be modified, reordered, or split into more steps using git interactive rebase (git rebase -i). I'm working on a tool which abstracts away git rebase, and gives you a nicer interface for manipulating the series of steps in your tutorial. For example, you can run `leg 3` to checkout step 3, make edits to it, and then run `leg amend` to apply the changes, resolving conflicts as the changes make their way through the rest of the tutorial's steps. The tool is still in very early development, but here's a quick
Read the rest
tutorial to get a better idea of how it works: https://github.com/snaptoken/leg/blob/master/TUTORIAL.md Also, I'm playing around with a "literate diff" file format that might be of interest: https://github.com/snaptoken/tgc-tutorial/blob/master/doc/02...
In The Tools I Use to Write Books

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.