跳到正文
DEV Community· Ship Stack·· 1 小時前AI 評分39

AI 智能體只憑一句提示詞建出可運作網站,作者實測

One Sentence to an AI Agent Got a Working Website. I Tested It.

AI 導讀

AI 智能體只憑一句提示詞,便建出待辦事項應用程式的登陸頁及電郵候補名單,作者以實際請求測試其功能。網站以共 61 行的 Node 伺服器和三個靜態檔案實作,能驗證電郵格式、統一大小寫並避免重複登記。作者指出,JSON 檔案儲存、沒有速率限制及沒有確認電郵,是正式上線前仍需處理的三個問題。

正文

Ship Stack

I gave an AI agent one sentence of brief: a landing page for a to-do app with an email waitlist that saves to a file, no framework, no database. Then I tested what came back with real requests, on camera. Here is what it built, what passed, and the three corners it cut.

What came back

A plain Node server, three static files, and one API route. 61 lines total. The important part is the signup route: it takes the email, checks the format, lowercases it, and only then saves it. That lowercase step matters, and it got tested in a minute.

The tests

  • Not an email. I typed something that is not an email into the form. The server rejected it. From the command line, a bad email gets a 400.
  • A real address. It saves and tells me I am number one on the list.
  • Same address in capital letters. No duplicate created. The lowercase step doing exactly its job.

Everything I threw at it behaved correctly. As a first draft, it works, it validates input, and it did not break in any of my tests.

The honest part

Three corners were cut, and all three matter before real traffic:

  • Storage is a plain JSON file. Fine for a demo, not for a launch.
  • No rate limiting. Anyone could flood the list with signups.
  • No confirmation email. Addresses are never verified, so the list fills with typos and other people's addresses.

The verdict

One sentence produced a working, tested first draft. That is genuinely impressive for 61 lines. But "works in my tests" and "ready for strangers" are different states, and the distance between them is exactly those three fixes.

The full build and every test are in the video:

https://youtu.be/49TNItqOlEA

We are building Ship Stack: real experiments on real backends, with the actual numbers, no hand-waving. More of these are on the channel.

來源:DEV Community · dev.to