Agentic Trading Lab
Talk to agents, and test trading ideas. Try AI trading agents on real market data with no code required.
AI translation
บันทึกรายรับรายจ่าย พร้อมเก็บสลิป
Translation pending
FinanceTypeScript · CSSGitHub @ms-mookOnlineOwner 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
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗เว็บแอป (PWA) บันทึกรายรับ–รายจ่าย ติดตั้งบนหน้าจอมือถือได้ โยนสลิปโอนเงินเข้าไปแล้วแอปจะอ่าน QR บนสลิป (ธนาคาร + เลขอ้างอิง) กันบันทึกซ้ำ และเก็บรูปสลิปไว้ใน Google Drive
APP_PIN)เป๋าตังค์apps-script/Code.gsconst SECRET = '...' เป็นข้อความสุ่มยาว ๆ แล้วกดบันทึก 💾/exec)แท็บ รายการ และโฟลเดอร์ เป๋าตังค์ - สลิป ใน Drive จะถูกสร้างให้อัตโนมัติตอนใช้งานครั้งแรก
apps-script/Code.gs ใหม่ทับทั้งหมด (ใส่ค่า SECRET เดิม) → บันทึก 💾ms-mook/PaotangMook → Deploy| ชื่อ | ค่า |
|---|---|
APP_PIN | PIN 4–8 หลัก |
AUTH_SECRET | ข้อความสุ่มยาว ๆ (openssl rand -hex 32) |
APPS_SCRIPT_URL | URL เว็บแอปจากข้อ 1.6 |
APPS_SCRIPT_SECRET | ค่าเดียวกับ SECRET ในสคริปต์ |
GEMINI_API_KEY | (ไม่บังคับ) สำหรับ AI อ่านสลิป — ขอฟรีที่ https://aistudio.google.com/apikey |
เปิด https://<โดเมน>/setup (ใส่ PIN) — ถ้าขึ้น ✅ ครบทุกข้อ พร้อมลิงก์ชีตและโฟลเดอร์สลิป ก็ใช้งานได้เลย 🎉
cp .env.example .env.local # ใส่ค่า
npm install
npm run dev
app/page.tsx หน้าหลัก: สรุปรายเดือน + รายการ
app/login, app/setup PIN และหน้าตรวจการเชื่อมต่อ
app/api/transactions อ่าน/เพิ่ม/ลบรายการ + อัปสลิป (ผ่าน Apps Script)
app/api/slip/[id] แสดงรูปสลิปจาก Drive
apps-script/Code.gs โค้ดที่วางใน Apps Script ของชีต (เขียน Sheet + Drive)
app/api/scan AI อ่านสลิป (Gemini)
app/api/settings บันทึกการตั้งค่า / ส่งอีเมลสรุป
app/api/report สร้าง PDF สรุป (pdfkit + ฟอนต์ Mali ใน assets/fonts) เข้ารหัสด้วย APP_PIN
components/ TxForm (เพิ่ม/แก้ไข + อ่านสลิป), DetailSheet, ListView, StatsView, SettingsView
lib/store.ts ตัวเรียก Apps Script ฝั่ง server
lib/slipqr.ts แกะ QR สลิป / พร้อมเพย์
lib/image.ts ย่อรูป + สแกน QR ในเบราว์เซอร์ (jsQR)
proxy.ts ตรวจ session ทุก request
public/sw.js service worker (offline shell + share target)
AUTH_SECRET แล้ว Redeploy/setup จะเตือนถ้า PIN สั้นกว่านั้นSECRET ที่ตรงกัน ซึ่งเก็บไว้ฝั่ง server (Vercel) เท่านั้น ไม่เคยส่งไปถึงเบราว์เซอร์.env* (มีใน .gitignore แล้ว) — ค่าลับทั้งหมดอยู่ใน Vercel เท่านั้นAPP_PIN ถ้า PIN สั้น (เช่น 4 หลัก) การเข้ารหัสจะกันได้แค่คนที่เปิดไฟล์ผ่าน ๆ ไม่ใช่คนตั้งใจเจาะ — ยิ่ง PIN ยาวยิ่งปลอดภัยAPP_PIN แล้ว PDF ใหม่จะใช้รหัสใหม่ทันที (ไฟล์เก่าที่ส่งไปแล้วยังใช้รหัสเดิม)