ActivityWatch OpenAPI spec and SDK in typescript.
bun install activitywatch-api
- save this into ./aw-script.ts
import { ActivityWatchAPI } from "./Api";
const api = new ActivityWatchAPI({
baseUrl: "http://localhost:5600/api",
}).v0
const info = await api.getInfoResource();
console.log(info);
- git clone this repo
bun install
code examples/
bun src/get-info.ts
This project was created using bun init
in bun v1.1.10. Bun is a fast all-in-one JavaScript runtime.