Public
Likeaccount-manager
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
KERNEL_API_KEY\n - Value: <paste your API key here>\n6. Click Save\n\n### Step 3: Deploy\n\nVal đã tự động deploy! Truy cập:\n\nhttps://valtown.val.run/buonhayvui1404/account-manager\n\n\n✅ Bạn đã sẵn sàng!\n\n---\n\n## 2️⃣ Cách Dùng Cơ Bản\n\n### Tạo Proxy Cố Định (Dùng Lâu Dài)\n\n\n1. Vào giao diện tại URL trên\n2. Tìm section \"🔌 Create Proxy\"\n3. Điền:\n - Proxy Name: \"US Proxy 1\"\n - Host: \"123.45.67.89\"\n - Port: \"8080\"\n - Username: (nếu cần)\n - Password: (nếu cần)\n4. Click \"Create Proxy\"\n✅ Done! Proxy lưu vĩnh viễn\n\n\n### Tạo Profile Cho Account\n\n\n1. Vào section \"📝 Create Profile\"\n2. Điền:\n - Profile Name: \"my_first_account\"\n - Select Proxy: \"US Proxy 1\" (hoặc không chọn)\n3. Click \"Create Profile\"\n✅ Done! Profile được tạo với proxy cố định\n\n\n### Xem Live View của Account\n\n\n1. Tìm profile trong section \"👤 Profiles\"\n2. Click nút \"👁️ Live View\"\n3. Cửa sổ mới mở → Xem browser instance chạy\n✅ Monitor account trực tiếp!\n\n\n---\n\n## 3️⃣ Use Case Thực Tế\n\n### Nuôi 5 Account Cùng Lúc\n\nBước 1: Tạo 5 proxy\n\n- US Proxy 1: 123.45.67.89:8080\n- US Proxy 2: 98.76.54.32:8080\n- US Proxy 3: 111.222.333.44:3128\n- US Proxy 4: 55.66.77.88:3128\n- US Proxy 5: 99.88.77.66:8080\n\n\nBước 2: Tạo 5 profile gán proxy\n\n- Account 1 + US Proxy 1\n- Account 2 + US Proxy 2\n- Account 3 + US Proxy 3\n- Account 4 + US Proxy 4\n- Account 5 + US Proxy 5\n\n\nBước 3: Monitor\n\nClick live view của từng account\n→ Xem tình trạng từng account\n→ Mỗi account dùng proxy khác nhau\n→ Tránh bị chặn IP\n\n\n---\n\n## 4️⃣ API Mode (Nâng Cao)\n\nNếu muốn dùng programmatically:\n\n### Tạo Proxy via API\n\nbash\ncurl -X POST \"https://valtown.val.run/buonhayvui1404/account-manager/api/proxies\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"My Proxy\",\n \"host\": \"proxy.example.com\",\n \"port\": 8080,\n \"username\": \"user\",\n \"password\": \"pass\"\n }'\n\n\n### Tạo Profile via API\n\nbash\ncurl -X POST \"https://valtown.val.run/buonhayvui1404/account-manager/api/profiles\" \\\n -H \"Content-Type: application/json\" \\\n -d '{\n \"name\": \"my_account_1\",\n \"proxyId\": \"<proxy-id-from-above>\"\n }'\n\n\n### Lấy Live View URL via API\n\nbash\ncurl -X GET \"https://valtown.val.run/buonhayvui1404/account-manager/api/profiles/<profile-id>/live-view\"\n\n\n📚 Chi tiết: Xem API-REFERENCE.md\n\n---\n\n## 5️⃣ Câu Hỏi Thường Gặp\n\n### Q: Proxy có thể dùng lâu dài không?\nA: Có! Proxy được lưu vĩnh viễn. Tạo 1 lần, dùng vài lần.\n\n### Q: Profile lưu được bao lâu?\nA: Cả đời, trừ khi bạn xóa. Được lưu trên Kernel API.\n\n### Q: Tôi có thể xem account đang làm gì không?\nA: Có! Click "Live View" để xem browser live.\n\n### Q: Nếu xóa profile sẽ sao?\nA: Profile bị xóa khỏi cả Kernel API và database.\n\n### Q: Proxy password có bảo mật không?\nA: Có, lưu encrypted trong database.\n\n### Q: Tôi có thể dùng 100 proxy cùng lúc không?\nA: Có! Không có giới hạn.\n\n### Q: Nếu account bị khóa thì sao?\nA: Tạo profile mới + proxy mới + nuôi lại.\n\n---\n\n## 6️⃣ Best Practices 🎯\n\n### ✅ Tên Dễ Nhớ\n\nProxy: \"US_Residential_1\"\nAccount: \"gmail_account_1\"\n\nThay vì:\nProxy: \"p1\"\nAccount: \"acc\"\n\n\n### ✅ Ghi Chú\nTạo một file ghi chú:\n\nUS Proxy 1 → gmail_account_1\nUS Proxy 2 → gmail_account_2\nUS Proxy 3 → facebook_account_1\n\n\n### ✅ Rotate Proxy\nMỗi account dùng proxy khác nhau để:\n- Tránh bị chặn IP\n- Giảm risk bị phát hiện bot\n- Tăng độ tin cậy\n\n### ✅ Monitor Thường Xuyên\nClick live view hàng ngày để:\n- Kiểm tra tình trạng account\n- Phát hiện vấn đề sớm\n- Điều chỉnh chiến lược\n\n### ✅ Backup\nGhi lại danh sách:\n\nProfile ID | Proxy ID | Status\n\nĐể có thể khôi phục nếu cần.\n\n---\n\n## 7️⃣ Troubleshooting\n\n### ❌ "Kernel API error: 401"\n→ API Key không đúng hoặc hết hạn\n→ Cập nhật KERNEL_API_KEY mới\n\n### ❌ "Profile name is required"\n→ Quên điền tên profile\n→ Điền tên trước khi submit\n\n### ❌ "Name, host, and port are required"\n→ Quên điền proxy info\n→ Kiểm tra host và port có đủ không\n\n### ❌ Live view URL not available\n→ Profile đã hết hạn\n→ Tạo profile mới\n\n### ❌ Proxy không hoạt động\n→ Host/port sai\n→ Username/password sai\n→ Proxy đã offline\n→ Kiểm tra proxy configuration\n\n---\n\n## 8️⃣ Next Steps\n\n1. ✅ Setup xong? Great!\n2. 📖 Đọc README.md để hiểu chi tiết\n3. 📚 Xem API-REFERENCE.md để dùng API\n4. 🔧 Xem api-config.ts để customize\n\n---\n\n## 🎉 Bạn Đã Sẵn Sàng!\n\nTruy cập: https://valtown.val.run/buonhayvui1404/account-manager\n\nHappy account growing! 🚀\n\n---\n\nNeed help?\n- Docs: https://kernel.sh/docs/\n- Email: support@kernel.sh\n- Twitter: @kernel_sh\n"