Retrosheet — Google Sheets as a Backend
🧠 content
Retrosheet คือไลบรารีแบบ Kotlin Multiplatform ที่ช่วยแปลง Google Spreadsheet หรือ Google Form ให้กลายเป็น JSON API endpoint
พูดง่าย ๆ คือ “ใช้ Google Sheets เป็น backend ได้เลย” โดยไม่ต้องสร้าง server หรือระบบ authentication เพิ่ม
เหมาะมากสำหรับงาน:
- POC / MVP
- Internal tools
- Prototype
- Dashboard / Admin หลังบ้าน
- ระบบที่ต้องการแก้ข้อมูลเองผ่าน Sheet
แนวคิดหลัก
- ใช้ Google Sheet เป็น database
- เรียกผ่าน HTTP → ได้ JSON
- ใช้งานเหมือน REST API
จุดเด่น
- ไม่ต้องเขียน backend server
- setup เร็วมาก (ไม่กี่นาที)
- ใช้ Google infra เดิม ไม่ต้องดูแล hosting
- รองรับ Android / iOS / JVM / JS (Kotlin Multiplatform)
- ใช้ annotation เช่น @Read @Write @Update จัดการ CRUD ได้ง่าย
Flow การใช้งาน
- สร้าง Google Sheet / Form
- ตั้งค่าให้ public
- ใส่ config ใน Retrosheet
- เรียกข้อมูลผ่าน HTTP client (เช่น Ktor/Ktorfit)
- ได้ JSON ไปใช้ในแอปทันที
เหมาะเมื่อ
✅ ต้องการ backend เร็ว ๆ
✅ ทำ demo ให้ลูกค้า
✅ เก็บ config / CMS เล็ก ๆ
✅ แอปภายในทีม
ไม่เหมาะเมื่อ
❌ production ใหญ่ ๆ
❌ ต้องการ security สูง
❌ ต้องการ performance หนัก ๆ
สรุปสั้น ๆ:
ถ้าอยากได้ backend ภายใน 10 นาที → ใช้ Retrosheet + Google Sheet ได้เลย
🏷️ tags
google-sheets, json-api, backendless, kotlin, multiplatform, poc, mvp, internal-tools







