CLI tool
evilrabbit/lifeline avatar
evilrabbit/lifeline

evilrabbit/lifeline: a shadcn timeline registry for stories that unfold over time

A timeline component for the stories that unfold over time. Ships as a shadcn registry.

550 stars26 forksTypeScriptMIT

At a glance

What is it?
Lifeline ships a scroll-scrubbed horizontal rail on desktop and a vertical timeline on mobile as a shadcn registry, so the component source lands in your own repo. Here is what it installs, how the rail is measured, and where it stops being the right tool.
Who is it for?
Adopt Lifeline if you are already on Next.js with Tailwind and shadcn, and you want the timeline source in your tree rather than a themed black box. Skip it if you are on another framework, if you need an SSR-safe static timeline with no client measurement, or if the WebGL fireworks effect is a problem for your bundle.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 114 days ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • evilrabbit/lifeline550 ★ · +22
Star history
Repository2026-09-172026-11-22
evilrabbit/lifeline528550

22 Stars in the last 66 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

What Lifeline is for, and who it is not for

Lifeline renders a life, a company or a bounded journey as a single rail of years. Each year holds milestones, and each milestone can carry events, links, photos, badges, company marks and people. The README frames the subject as "the stories that unfold over time", which is a narrower target than a general purpose charting library. If your data is a series of measurements rather than a sequence of moments, this is the wrong shape.

The audience is narrower still. Lifeline ships as a shadcn registry, so the install copies component source into `components/lifeline/` and a data helper into `lib/lifeline-data.ts`. That model assumes you want to edit the component. If you wanted a dependency you upgrade with a version bump, the registry model works against you: there is no package to pin, and no upstream release that fixes a bug in your copy.

The rail, the nav anchor, and why the layout measures itself

The mechanism that matters most is alignment. The README states plainly that `LifelineNav` is "the whole reason the rail sits inset rather than bleeding to both edges". The rail measures its start and end from the nav anchor, and that span is what the intro animation draws on first load. This is not decoration, and the README says so in a comment inside the example.

The layout then switches at the `md` breakpoint. Above it, the timeline is horizontal and scrubbed by scroll. Below it, the timeline is vertical and scrolls normally. That switch is automatic, not a prop. The `mode` prop takes `"auto"`, `"page"` or `"embed"` and defaults to `"auto"`, which measures the container. `mode="embed"` is the case where the timeline is a module inside a larger page, and it also applies `className` to the vertical layout's scroll box so a height set there applies below `md`.

There is a real coupling cost here. `containerClassName` overrides the width cap on the nav and the footer, and the README warns that one constant is shared between them. Change one and not the other, and the rail stops short of the footer's edge. That is a layout bug you can only see by looking at the rendered page, not by reading types.

Installing Lifeline and rendering a first timeline

The README gives four install paths. Starting from nothing, this one adds components, starter data, the shell and a route at `app/lifeline/page.tsx`:

bash
npx shadcn@latest add evilrabbit/lifeline/page

If that route already exists, the README says shadcn asks before touching it. Answer no and nothing of yours is lost. If you already have a page, take the shell without the route instead:

bash
npx shadcn@latest add evilrabbit/lifeline/shell

Three starter templates exist for a life, a company and a bounded run, each bringing the component system plus a commented template file and no framing:

bash
npx shadcn@latest add evilrabbit/lifeline/personal   # a life, year by year
npx shadcn@latest add evilrabbit/lifeline/company    # founding to today
npx shadcn@latest add evilrabbit/lifeline/journey    # a bounded run, day by day

Any item installs into `components/lifeline/`, adds the data helper at `lib/lifeline-data.ts`, appends the intro keyframes to your CSS, and installs `lucide-react` plus `next-themes`. The registry is also served at `https://evilrabbit.com/r/{name}.json` if you prefer URLs over the CLI.

A first timeline is a `defineLifeline` call and a small tree. The README's example keys milestones by year and renders them like this:

tsx
import { Lifeline, LifelineLegend } from "@/components/lifeline"
import { LifelineNav, LifelineShell, LifelineStage } from "@/components/lifeline-shell"
import { defineLifeline } from "@/lib/lifeline-data"

const life = defineLifeline({
  slug: "web",
  name: "The World Wide Web",
  birthYear: 1989,
  endYear: 2026,
  description: "From a memo at CERN to everywhere at once.",
  milestones: {
    1989: { id: "proposal", events: ["Tim Berners-Lee circulated a proposal."] },
  },
})

`defineLifeline` returns the `markers` that `Lifeline` requires. The second required prop is `birthYear`, described as "year zero for the age row and the axis start". `title` becomes the `aria-label` on the timeline region and defaults to `"Lifeline"`. Inside `LifelineStage`, the README says `h-full` is what you want on the `className`.

Two dependencies are installed for you and are worth flagging. `lucide-react` covers icons, and `next-themes` is the theme layer. The sun/moon toggle from the demo is a separate registry item:

bash
npx shadcn@latest add evilrabbit/lifeline/theme-switcher

Because `next-themes` arrives with the install, the README's own example does not show a `ThemeProvider`. If your root layout does not already render one, the toggle has nothing to switch.

What a milestone can carry, and the media constraints

The data model is the most opinionated part of the project. `events` accepts plain strings or objects with `text`, `image` and `effect`. An `image` shows on hover on desktop and on tap on mobile. Adding `video` to that image turns it into a looping clip. `effect: "fireworks"` hides what the README calls a WebGL easter egg behind a click, which is a real dependency you take on for a decorative moment.

`photos` is the other media path and behaves differently: always-visible cards, tilted like a notebook, draggable, tap-to-expand. They scatter over the timeline and accept optional `x` (0 to 1 across the year's slot), `y`, `rotate` and `width`. The distinction is worth internalizing before you fill in data. Hover reveals are for one image per event; floating cards are for media that should be present in the composition.

Beyond media, a milestone can carry `badges` (small images above the events), `companies` as inline organization marks, and `mentors` or `met` for people rows with portraits along the rail. Company icons are registered once through `registerCompanyIcons({ acme: { icon: AcmeIcon } })`, and the README states that unregistered ids fall back to the name's initial. That fallback is a sensible default, but it means a typo in an id degrades silently into a letter rather than an error.

On mobile, hover does not exist, so the tap path carries the interaction. The README does not document a keyboard equivalent for the hover reveal or for the draggable photo cards, and it does not document a reduced-motion path for the intro animation. If your audience includes keyboard-only users or people who set reduced motion, treat that as unverified until you check the installed source.

Where Lifeline stops being the right tool

The first hard boundary is the stack. The install pulls `lucide-react` and `next-themes`, the repository is a Next.js app on React 19 with Tailwind 4, and the component imports resolve through the `@/` alias. Nothing in the README describes a framework-agnostic build or a plain Vite path. If you are not on Next.js with Tailwind and a shadcn setup, the registry output is a pile of source you will have to port by hand.

The second boundary is the registry model itself. There are no published GitHub releases for this project, and the repository's `package.json` is marked `"private": true` with version `0.1.0`. That means there is no published package to upgrade. When you install, you own the copy. A fix upstream does not reach you through `npm update`; you either re-run the add and reconcile the diff yourself, or you patch your copy and diverge.

The third is the measurement dependency. The rail's inset alignment comes from measuring the nav, and `mode="auto"` measures the container. A timeline that must render identically in a static HTML export, in an email, or in a screenshot pipeline has no documented path here. The README also does not document rollback, so if an add overwrites something you did not expect, the recovery story is your own version control.

Finally, the subject matter. Lifeline is built for a bounded narrative with a `birthYear` and an `endYear`. Data that has no natural year zero, or that grows continuously, fights the model rather than fitting it.

How Lifeline differs from a general timeline component

The obvious alternative is a conventional React timeline component distributed as an npm package. The difference is not the visual output, it is where the code lives and who maintains the easing. A published component gives you a version to pin, a changelog to read and a bug tracker to file against. Lifeline gives you the source in `components/lifeline/` and the data helper in `lib/lifeline-data.ts`, and the README states the intent directly: every easing, breakpoint and class is yours to change.

That trade is legible. You gain control over the horizontal scrub, the `md` breakpoint switch and the intro keyframes, because they are in your tree. You lose the upgrade path, because there is nothing to upgrade.

A second, less obvious alternative is building the rail yourself against the same primitives. Lifeline already depends on `@base-ui/react`, `class-variance-authority`, `clsx` and `tailwind-merge`, so a team comfortable with those libraries is not far from the same result. What Lifeline adds on top is the data layer: `defineLifeline` with `birthYear` and `endYear`, the milestone shape with `events`, `photos`, `badges`, `companies` and `mentors`, and the company icon registry. If that schema matches how you already think about the content, the registry saves you the design work. If it does not, you are adapting a schema you did not choose.

Maintenance, licence and the cost of a copied component

The repository is not archived, and the last push was on 2026-07-31. The repository has no published GitHub releases, and the README does not describe a versioning or migration policy for the registry items. In practice that means your upgrade cost is the cost of re-running an add command and reading the diff, not the cost of bumping a semver range.

The licence is MIT. That permits use, modification and redistribution provided the copyright notice and permission notice are retained. It does not, on its own, settle the question of whether the fonts, photographs or logos you place in `photos`, `badges` and `companies` are cleared for your use. Those are your assets and your problem, not the licence's.

The dependency surface is the other recurring cost. The install brings `next-themes` and `lucide-react` into your project, and the component graph pulls `@base-ui/react`. The repository pins Next.js at `16.2.10`, React at `19.2.4` and Tailwind at `^4`. A project on an older Next.js or Tailwind 3 cannot assume the copied files compile unchanged. Check that before you run the add, not after.

Editorial conclusion

Adopt Lifeline if you are already on Next.js with Tailwind and shadcn, and you want the timeline source in your tree rather than a themed black box. Skip it if you are on another framework, if you need an SSR-safe static timeline with no client measurement, or if the WebGL fireworks effect is a problem for your bundle. Before committing, verify that the root layout already renders ThemeProvider from next-themes, that your Tailwind version matches the registry output, and that the registry.json entries you plan to add cover the components your page imports.

Frequently asked questions

How do I install Lifeline into an existing Next.js app?

Run the shadcn add command for the item you want. `npx shadcn@latest add evilrabbit/lifeline/shell` takes the shell without creating a route, which the README recommends when you already have a page. Every item installs the components into `components/lifeline/`, the data helper into `lib/lifeline-data.ts`, and adds `lucide-react` plus `next-themes`.

How do I use Lifeline to define and render a timeline?

Call `defineLifeline` with a `slug`, `name`, `birthYear`, `endYear` and a `milestones` object keyed by year, then pass the returned `markers` and the `birthYear` to the `Lifeline` component. The README's example wraps it in `LifelineShell`, `LifelineNav` and `LifelineStage`, with `h-full` on the `Lifeline` className inside the stage.

What does Lifeline cost to use?

The project is MIT licensed and the registry items install through the shadcn CLI, so there is no licence fee described in the README. Your costs are the dependencies it adds to your project and the engineering time to maintain the copied source.

Official sources

  1. evilrabbit/lifeline on GitHub
  2. Issues
  3. License: MIT
  4. Project website
  5. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/evilrabbit-lifeline.svg)](https://hysenlabs.com/projects/evilrabbit-lifeline)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/evilrabbit-lifeline.svg)](https://hysenlabs.com/projects/evilrabbit-lifeline)

Was this useful?