แอปแปลภาษาอังกฤษ-ไทย ดูความหมายรายคำ และปรับสำนวนแบบ TOEFL
ใช้งานผ่านเว็บเบราเซอร์ ไม่ต้องติดตั้ง — รองรับ iPhone Home Screen
- ไปที่ github.com/new
- ตั้งชื่อ repo เช่น
toefl-lab - เลือก Public
- กด Create repository
git clone https://github.com/<your-username>/toefl-lab.git
cd toefl-lab
# คัดลอกไฟล์ทั้งหมดจากโฟลเดอร์นี้ลงใน repo แล้ว:
git add .
git commit -m "Initial deploy"
git push origin mainหรืออัปโหลดผ่านหน้าเว็บ GitHub ได้เลย (ลาก-วางไฟล์ทั้งหมด)
- เข้า repo → Settings → Pages
- Source: เลือก Deploy from a branch
- Branch:
main// (root)→ Save - รอ ~1 นาที แล้วเปิด
https://<your-username>.github.io/toefl-lab/
เมื่อเปิดแอปครั้งแรก ใส่ API Key ในช่องบนสุด
Key จะถูกบันทึกไว้ใน localStorage ของ browser (ไม่ส่งไปที่ใดนอกจาก Anthropic API)
- รับ API Key ได้ที่ console.anthropic.com
- เปิด URL ของแอปใน Safari (ต้องใช้ Safari เท่านั้น)
- กดปุ่ม ⎙ Share (ไอคอนกล่องมีลูกศรชี้ขึ้น) ที่แถบล่าง
- เลือก "Add to Home Screen"
- กด Add มุมขวาบน
แอปจะปรากฏบน Home Screen เหมือนแอปทั่วไป เปิดแบบ Fullscreen ไม่มี browser bar
toefl-lab/
├── index.html # แอปหลัก (ไฟล์เดียว รวม CSS + JS)
├── manifest.json # Web App Manifest (สำหรับ PWA)
├── sw.js # Service Worker (cache + offline)
├── icons/
│ ├── icon-192.png # App icon สำหรับ Android
│ └── icon-512.png # App icon ขนาดใหญ่
└── README.md
| ฟีเจอร์ | รายละเอียด |
|---|---|
| 🔤 แปลประโยค | แปล EN→TH แบบธรรมชาติ |
| 👆 แตะคำ | ดูชนิดคำ IPA คำเหมือน และตัวอย่างประโยค |
| 📝 TOEFL Rewrite | ปรับประโยคให้เป็นสำนวนวิชาการ พร้อมคำอธิบาย |
| 📱 iPhone PWA | Add to Home Screen ใช้งานแบบ fullscreen |
| 🌐 GitHub Pages | Deploy ฟรี ไม่ต้องมี server |
| 🔑 API Key | ใส่ครั้งเดียว บันทึกใน browser |