跳到正文
DEV Community· Periyasamy A·· 3 小時前AI 評分37

Later-Sloth:在瀏覽器整理數碼雜亂資訊的小型網站

Later-Sloth

AI 導讀

Later, Sloth 是一個在瀏覽器載入開放權重 Flan-T5 模型的小型網站,可把未讀羣組對話、收件箱或檔案清單整理成兩行摘要、附資料夾名稱的歸檔計劃或睡前故事。模型下載約 80 MB 後,文字不會離開用戶的手提電腦,亦可離線使用,無須支付按 token 計算的費用。網站以 Transformers.js 在 Web Worker 執行推理,Render 只負責提供頁面。

正文

Periyasamy A

What I Built

Later, Sloth is a tiny website for people who would rather hang from a branch than sort a pile.

You paste the group chat you have not read, the inbox you have not opened, or the filenames you promised to clean up. The page loads an open-weight Flan-T5 model in your browser and slowly hands back:

  • a two-line morning brief
  • a tidy / archive plan with folder names
  • a wind-down story so you can stop staring at the mess at night

The lazy payoff is the standing-in-front-of-the-fridge problem, applied to digital clutter: you dump it once, you do not stand there with the door open.

Demo

Local: http://localhost:3000

Code

GitHub: https://github.com/biggod151004-dev/Later-Sloth

How I Built It

Open pieces that actually make it work:

  • Open-weight model: Xenova/flan-t5-small (Apache-2.0), an ONNX export of Google's Flan-T5.
  • Open-source inference: Transformers.js in a Web Worker so the tab stays usable while weights download.
  • Open host: a small Express app on Render that only serves the page. Render is the front end, not a closed model vendor.

There is no OpenAI key and no server-side prompt log. The Node process is a static file server plus a /health check so Render can see the sloth is still hanging.

Why Does Open Innovation Matter?

A closed API would be faster to wire and worse for this job.

The pile is personal: unread chats, invoices, fridge photos named IMG_4402.jpg. Sending that to a vendor so I can be slightly lazier is the opposite of conserving energy — it creates a new worry. Running Flan-T5 in the tab means:

  • the text never leaves the laptop
  • after the first ~80 MB download, it can run with no internet
  • there is no per-token bill, so I can leave it cached and use it every morning
  • I can swap the Hugging Face model id if a better small instruction model shows up

That is the Slow and Steady bet: a smaller open model that lives with you beats a giant closed one that rents you your own inbox.

My Agent Session

The Lazy Payoff

One paste of a messy family/trip thread plus duplicate bills is enough for a two-line brief and a folder list. You do not re-read 400 unread messages before coffee. First visit waits on the model download; every visit after that is the sloth already in the tree.

Prize Categories

  • Best Use of Render (hosts the agent's front end)

來源:DEV Community · dev.to