Hibiki in practice

Recipes

A recipe is a feature commonly found in web apps, such as a search that filters as you type or a form that checks itself, built with Hibiki's reactive pattern. Try the feature first, then see in detail how its code fits together.

Many recipes are shared by every visitor. A notice you pin or an order you place shows up for everyone who has that page open.

21 recipes · 12 shared with other visitors

The fire on the front page Cold ashes · 0 Add a log ›

Discovering recipes

  1. Try it

    Each page opens with the feature itself, working. On a shared recipe, open the page in a second window and watch the first keep up.

  2. See how it fits together

    Under the example, the page walks through its parts: the channel that holds the state, the views it renders, the models it reads. Tabs show the files as they run on this server.

  3. Compare with stock Rails

    Every Patterns page ends with the same feature written in stock Rails, and a table of what each version makes you write.

Recipes opened: 0 of 21

Each recipe you open is ticked off here and on its card, so you can see where you left off.

  1. Counter
  2. Todo List
  3. Sign Up
  4. Sign In
  5. JS Commands
  6. Live Search
  7. Dependent Selects
  8. Cart Totals
  9. Cross-field Validation
  10. Bulk Selection
  11. Inline Edit
  12. Presence and Conflicts
  13. Aggregate Stats
  14. Busy, Stalled, Offline
  15. Infinite Scroll
  16. Nested Forms
  17. Searchable Multi-select
  18. Leave and Enter Transitions
  19. Undo and Redo
  20. Multi-step Wizard
  21. Ranks and Permissions

Components

5 recipes

The building blocks of a live page, such as a count kept on the server, a sign-up form that checks itself, or a backpack whose menus open without asking the server.

Patterns

16 recipes

Features that take a lot of code in stock Rails, where each live update is a Turbo Stream or a Stimulus method written by hand. With Hibiki, the page follows the data on its own. Each recipe ends with the stock Rails version, so you can compare the two.

Further along the road