System

Service Architecture

Cron

0 */1 * * *

Trigger setiap jam

Storage

KV Namespace

History & akun terenkripsi

Realtime

Durable Object

WebSocket broadcast

API Reference

HTTP Endpoints

Method Path Description
GET / Dashboard realtime histori run dan status service.
GET /accounts Halaman kelola akun dinamis via browser.
GET /info Halaman info arsitektur dan endpoint.
GET /status Ringkasan status akun yang sudah terkonfigurasi.
GET /api/history Snapshot JSON untuk dashboard dan fallback realtime.
DELETE /api/history Hapus seluruh history dari KV, wajib password.
GET /api/accounts Daftar akun publik tanpa token.
POST /api/accounts Tambah atau update akun dinamis, wajib password.
DELETE /api/accounts/:account Hapus akun dinamis, wajib password.
POST /trigger Trigger semua akun sekarang, wajib password.
POST /trigger/:account Trigger akun spesifik.
GET /ws Realtime invalidation channel via Durable Object + WebSocket.

Process

Execution Flow

1

Pick Accounts

Gabungkan akun dari env dan KV

2

Pre-check

Cek active runs dan token

3

Trigger

workflow_dispatch atau repository_dispatch

4

Broadcast

Simpan ke KV dan kirim event