Skip to content

recipes, examples, and more#2388

Merged
stopachka merged 16 commits intonew-homepage-stopa-ideasfrom
roar2344
Mar 19, 2026
Merged

recipes, examples, and more#2388
stopachka merged 16 commits intonew-homepage-stopa-ideasfrom
roar2344

Conversation

@stopachka
Copy link
Contributor

@stopachka stopachka commented Mar 19, 2026

Examples https://instant-www-js-roar2344-jsv.vercel.app/examples
Recipes https://instant-www-js-roar2344-jsv.vercel.app/recipes

Main changes

  • Recipes
    • Logic: I updated it so we don't create iframes for examples anymore.
      • Instead, I create separate db instances. We make N instances, where N is the maximum number of preview windows in a single code example
        • To make this work, we add an extraDedupeKey to our logic for deduping init
    • Logic: Instead of repeating hide and show per example, I moved most of the repetitive logic into a single transform.
    • UI: I made the UI warmer, and updated the UIs for each example to be nicer looking
      • I also used facehash, to generate little images for unique ids, rather than showing unique ideas in the avatar stack and typing indicator
  • Examples
    • UI: I made the UI warmer, and align more with our current style. I also made the show page more similar to our current essays page

Smaller fixes

  • Added Simon's testimonial

@dwwoelfel @nezaj @drew-harris

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 19, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 0a4d51ed-0e20-44d1-9fdb-a4886ab9ead7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch roar2344
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Contributor

View Vercel preview at instant-www-js-roar2344-jsv.vercel.app.

These are no longer standalone Next.js pages — they'll be rendered
inline on the recipes page instead of in iframes.
…sh avatars

- Replace iframes with inline React components using shared db instances
  (one per preview column via __extraDedupeKey), reducing WebSocket
  connections from 8*N to just N
- Add useRecipeDB() context so recipe components get db without prop threading
- Auto-transform recipe code for display: strips useRecipeDB/imports,
  injects init() boilerplate, so recipe files are clean real code
- Use CSS Grid + absolute positioning for code editor to match preview height
- Add facehash avatars via /api/avatar route for cursor/typing/avatar recipes
- Use 16:10 aspect ratio for preview panels (laptop-like)
Copy link
Contributor

@dwwoelfel dwwoelfel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of comments about making the recipes portable, but LGTM!

@stopachka stopachka merged commit 4a645ba into new-homepage-stopa-ideas Mar 19, 2026
28 checks passed
@stopachka stopachka deleted the roar2344 branch March 19, 2026 22:29
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.

2 participants