TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Turn a video of an app into a functional prototype with Claude Opus

17 点作者 abi大约 1 年前
Hey everyone,<p>I’m the maintainer of the popular screenshot-to-code repo on Github (46k+ stars).<p>When Claude Opus was released, I thought to myself what if you could send in a video of yourself using a website or app, would the LLM be able to build it as a functional prototype? To my surprise, it worked quite well.<p>Here are two examples:<p>* In this video, you can see the AI replicating Google with auto-complete suggestions and a search results page (failed at putting the results on a separate page). <a href="https:&#x2F;&#x2F;streamable.com&#x2F;s24pq6" rel="nofollow">https:&#x2F;&#x2F;streamable.com&#x2F;s24pq6</a><p>* Here, we show it a multi-step form (<a href="https:&#x2F;&#x2F;tally.so&#x2F;templates&#x2F;online-quiz&#x2F;V3qOnk" rel="nofollow">https:&#x2F;&#x2F;tally.so&#x2F;templates&#x2F;online-quiz&#x2F;V3qOnk</a>) and ask Claude to re-create it. It does a really good job! <a href="https:&#x2F;&#x2F;streamable.com&#x2F;gstsgn" rel="nofollow">https:&#x2F;&#x2F;streamable.com&#x2F;gstsgn</a><p>The technical details: Claude Opus only allows you to send a max of 20 images so 20 frames are extracted from the video, and passed along with a prompt that uses a lot of Claude-specific techniques such as using XML tags and pre-filling an assistant response. In total, 2 passes are performed with the second pass instructing the AI improve on the first attempt. More passes might help as well. While I think the model has Google.com memorized but for many other multi-page&#x2F;screen apps, it tends to work quite well.<p>You can try it out by downloading the Github repo and setting up a Anthropic API key in backend&#x2F;.env Be warned that one creation&#x2F;iteration (with 2 passes) can be quite expensive ($3-6 dollars).

2 条评论

HughParry大约 1 年前
Looks awesome!<p>How does it handle taking instruction about things like what stack to use?<p>E.g. if I&#x27;m building a new prototype, I personally would want to build with Tailwind, but lots of people think Tailwind is evil and prefer prototyping with &lt;other_css_thing_they_like&gt;<p>Also curious to hear what you think of the quality of the output code. My experiences with LLMs doing frontend code has been a pretty mixed bag personally
评论 #39783813 未加载
dflock大约 1 年前
Cloning and stealing other peoples apps, as a service!
评论 #39796658 未加载