logoalt Hacker News

vedmakklast Friday at 8:02 PM2 repliesview on HN

This is really cool. I'm interested in the GenUI part. Is the web app itself static and the stories are generated on-demand?

Do you give gemini some UI components/templates to build with or is it just prompting to get consistent results across multiple stories?


Replies

pestslast Friday at 8:59 PM

Google AI Studio has a Gallery[0] with some similar apps. It's an editor so you can view the code, they are usually react apps with gemini integration via genai package. Like this one here[1] is similar. It generates interesting stories to share about a route you are driving / walking / biking along. This is one of the pre-made examples I believe, I didn't make it or anything. Just to show some how some of this might work.

[0] https://aistudio.google.com/apps?source=showcase&showcaseTag...

[1] https://aistudio.google.com/apps/bundled/echo_paths?showPrev...

sdanlast Friday at 9:58 PM

Yes I have base css/js that I inject on top of whatever codegen gemini 3 comes back with -- It runs via ai-sdk so the specific function is streamObject which is prompted to generate inner HTML elements