Job management client ​
You can use a web client to check the execution status of jobs.
Set the Kiribi client to the Kiribi Worker.
typescript
// src/index.ts
import { Kiribi } from 'kiribi'
import { client } from 'kiribi/client'
import { rest } from 'kiribi/rest'
export default class extends Kiribi {
client = client
rest = rest
}
toml
# wrangler.toml
name = "my-kiribi"
compatibility_date = "2024-04-03"
main = "src/index.ts"
[site]
bucket = "./node_modules/kiribi/client"
# ...Omited...
Deploy.
bash
npx wrangler deploy
To use the Kiribi client, access the endpoint of the Kiribi Worker.
WARNING
The client is currently exposed globally. We recommend using Cloudflare Zero Trust to restrict access.