Scan the device specs in the browser and recommend a Local AI model that runs smoothly without slowing the device, including installation commands.
AI translation
สแกนสเปกเครื่องในบราวเซอร์ แล้วแนะนำโมเดล Local AI ที่รันได้สบายโดยไม่ทำเครื่องหน่วง พร้อมคำสั่งติดตั้ง
Developer toolsTypeScript · CSSGitHub @wittawatkhondee55OnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Scans the device specifications in the browser and then recommends a Local AI model that runs smoothly, with installation commands.
AI translation
สแกนสเปกเครื่องในบราวเซอร์ แล้วแนะนำโมเดล Local AI ที่รันได้สบาย พร้อมคำสั่งติดตั้ง
Taken from the repository README
Loading the full README. The saved excerpt is shown below.
รัน AI ตัวไหนไหว · Local AI Fit Finder เว็บ static ที่สแกนสเปกเครื่องผ่านบราวเซอร์ล้วน แล้วแนะนำโมเดล Local LLM (ผ่าน Ollama) ที่ รันได้สบายโดยไม่ทำเครื่องหน่วง — พร้อมคำสั่งติดตั้งกดคัดลอกใช้ได้ทันทีRead the full README ↗
เว็บ static ที่สแกนสเปกเครื่องผ่านบราวเซอร์ล้วน แล้วแนะนำโมเดล Local LLM (ผ่าน Ollama) ที่ รันได้สบายโดยไม่ทำเครื่องหน่วง — พร้อมคำสั่งติดตั้งกดคัดลอกใช้ได้ทันที
?ram=&vram=&gpu=| ส่วน | ใช้ |
|---|---|
| Build | Vite 5 |
| ภาษา | TypeScript (strict) |
| Runtime | บราวเซอร์ล้วน (WebGL / WebGPU / navigator.deviceMemory) |
| ข้อมูลโมเดล | public/models.json สร้างจาก Ollama registry |
npm install
npm run dev # เปิด dev server
npm run build # type-check + build ไป dist/
npm run preview # ดู build จริง
ขนาดโมเดลดึงสดจาก Ollama registry (Docker v2 manifest) แล้วคำนวณ RAM ที่ต้องใช้:
npm run fetch-models # -> เขียนทับ public/models.json
scripts/models.seed.jsonbytes, needs) สคริปต์เติมให้อัตโนมัติ — ถ้าดึงไม่ได้ใช้ needsFallbackollama.com/library หาโมเดลใหม่ ที่ยังไม่มีใน seed แล้วแจ้งเตือนให้เพิ่ม.github/workflows/update-models.yml รันทุกสัปดาห์ + commit อัตโนมัติเว็บอ่าน
public/models.json(same-origin) ตอนรัน ไม่ได้เรียก registry โดยตรง (registry ไม่มี CORS) — อัปเดต = รันสคริปต์แล้ว deploy ใหม่
local-ai-fit/
├─ index.html # โครงหน้า
├─ public/models.json # ข้อมูลโมเดล (generated, commit ไว้)
├─ scripts/
│ ├─ models.seed.json # คิวเรตเอง: โมเดล + หมวด + คำอธิบายไทย
│ └─ fetch-models.mjs # ดึงขนาดจาก Ollama registry -> models.json
├─ src/
│ ├─ main.ts # bootstrap + event
│ ├─ detect.ts # สแกนสเปกจากบราวเซอร์
│ ├─ gpu-table.ts # เทียบชื่อการ์ดจอ -> VRAM
│ ├─ recommend.ts # ตรรกะงบหน่วยความจำ + คำแนะนำ
│ ├─ catalog.ts # โหลด models.json (+ fallback)
│ ├─ render.ts # วาด DOM
│ ├─ types.ts
│ └─ styles.css
└─ .github/workflows/update-models.yml
Build ได้ static ล้วนใน dist/ วางที่ไหนก็ได้:
| แพลตฟอร์ม | คำสั่ง / ตั้งค่า |
|---|---|
| Vercel | import repo → framework Vite → เสร็จ |
| Netlify | build npm run build · publish dist |
| Cloudflare Pages | build npm run build · output dist |
| GitHub Pages | BASE=/<repo>/ npm run build แล้ว deploy dist/ (ตั้ง BASE ให้ตรง subpath) |
needs ≤ งบ = ตัวแนะนำตัวเลข
needsเป็นค่าประมาณที่ quantization Q4 — ปรับสูตรได้ที่needsFromBytes()ในscripts/fetch-models.mjs
MIT