Tool này là gì?
Replit là cloud IDE — code chạy trên container Linux thật trong browser, support 50+ ngôn ngữ (Python, JS, Go, Rust, Java...). Khác với Bolt/Lovable (JS frontend), Replit là general-purpose — chạy được data science notebook, Python script, Discord bot, game đơn giản.
2024–2025, Replit add "Agent" — AI tự build full project, deploy, debug. Nó cạnh tranh trực tiếp với Bolt/Lovable nhưng có lợi thế: multi-language, hosting persistent, database sẵn (PostgreSQL, Object storage), không cần connect Supabase ngoài.
Khi nào nên dùng
- Build app non-web: Python script ETL, Discord/Slack bot, scraper, data pipeline.
- Học code: Replit có hàng ngàn template tutorial, không cần install gì.
- Team workshop / hackathon: share Repl link, ai cũng tham gia code realtime giống Google Doc.
- Deploy nhanh: Replit hosting built-in — bot, API, dashboard chạy 24/7 không cần AWS.
- Code educational cho intern / new hire: không phải lo setup environment.
Khi nào KHÔNG nên dùng
- Production app cho 1000+ user — Replit hosting limit, không scale bằng Vercel/Railway.
- Code base lớn cần CI/CD nghiêm — workflow Replit không bằng GitHub Actions.
- Cần local IDE feel (VS Code keyboard shortcut quen) — Cursor tốt hơn.
- App enterprise có compliance (SOC2, HIPAA) — Replit tier business mới support.
Workflow tiêu biểu
flowchart LR
A[Ý tưởng app] --> B[Mở Replit
chọn template hoặc blank]
B --> C[Agent mode:
mô tả app]
C --> D[AI build full project]
D --> E[Test trong webview]
E --> F{Work?}
F -->|Bug| G[Chat 'fix X']
F -->|OK| H[Deploy 1-click]
G --> D
H --> I[Share URL công khai]
Use case PM phổ biến: build internal automation. Vd "Mỗi sáng pull data Mixpanel rồi gửi báo cáo Slack" — Replit Agent build Python script + cron trong 10 phút, host luôn.
Prompt mẫu
Build Slack bot 'StandupBot':
Chức năng:
1. Mỗi sáng 9:00 (theo timezone Asia/Ho_Chi_Minh) post
reminder vào channel #engineering, hỏi 3 câu standup
2. Mỗi user reply trong thread, bot collect câu trả lời
3. 11:00 bot post tổng hợp toàn team vào cùng channel
4. /summary command: gọi để xem summary tuần qua
Stack: Python + Slack Bolt SDK + Replit PostgreSQL +
Replit Scheduled Deployment.
Env var cần: SLACK_BOT_TOKEN, SLACK_APP_TOKEN.
Build Python ETL script:
1. Mỗi 6h pull data từ Stripe API (charge list 7 ngày gần)
2. Aggregate revenue theo product, country
3. Push lên Google Sheet (qua gspread)
4. Slack alert nếu revenue daily < 10K USD
Host trên Replit, chạy cron schedule.
Add basic error handling + Sentry log.
Mẹo nâng cao
Kết hợp với công cụ khác
flowchart LR
A[Replit
Python automation] --> B[Slack / Notion API]
A --> C[Replit DB
persist state]
A --> D[Google Sheet
output report]
Replit là "glue layer" — connect các SaaS tool với nhau qua API. Đặc biệt hữu ích cho ops automation mà không có IT team.
So với alternatives
| So với | Mạnh hơn ở | Yếu hơn ở |
|---|---|---|
| Bolt.new | Multi-language (Python, Go), hosting persistent + cron job | Bolt code FE đẹp hơn, UX builder smooth hơn |
| Cursor (local) | Zero-setup, share Repl URL ngay, deploy 1-click | Cursor IDE nhanh hơn, control sâu hơn |
| AWS Lambda / Cloud Run | Setup 5 phút vs 5 tiếng, có IDE GUI | Scale enterprise, pricing rẻ hơn ở scale lớn |
Tài nguyên thêm
- Official: replit.com
- Template gallery: replit.com/templates
- Best-practice: Replit blog + video "100 days of code with Replit Agent".