Skip to content

Hacksgiving on your computer

Use Bun 1.4.4 and run commands from the Hacksgiving project directory. Begin with the first check-in for a provider-free run.

Command Result
bun run demo Starts the loopback inbox and sends the first wake. Open the printed URL.
APP_MODE=local bun run start Starts the loopback inbox. Send a wake separately to create cards.
APP_MODE=local bun run snapshot Prints the fixture date, register counts, and check-in text without opening a provider session.
bun run typecheck and bun test Check the app and vendored SDK using synthetic data and fake providers.

The demo starts at port 8080 and tries through 8089 if needed. Set PORT to select one explicitly. The default database is state/inbox.sqlite. Keep using it to retain answers and deduplicate wakes.

Set REGISTER_PATH to read another local register and AS_OF=YYYY-MM-DD to test a different day. Set BUDGET_PATH to a standard or custom budget file when the categories live outside the register. The register format and samples live in docs/box.md, fixtures/accounts.json, fixtures/budget-standard.json, and fixtures/budget-custom.json in the Hacksgiving project.

With the local inbox running, send a POST to /wake. If you set WAKE_TOKEN, make the same value available to the shell running this command. Otherwise, the loopback fixture uses its built-in demo token.

Terminal window
curl --fail-with-body -X POST http://127.0.0.1:8080/wake \
-H "X-Wake-Token: ${WAKE_TOKEN:-hacksgiving-local-demo}"

Use the port printed by the server if you changed it. The first wake reports five new cards on a fresh bundled fixture. Repeating it returns {"created":0}.

Terminal window
bun run demo:setup local
bun run demo:setup --help

Setup prompts for Telegram pairing and optional TypeSafe AI and Ollama configuration. Enter credentials in its hidden prompts. Local Telegram uses long polling. Use a separate bot for a Sprite webhook.

After setup, use a fresh database so the new cards can be delivered.

Terminal window
STATE_DB=state/telegram-demo.sqlite bun run demo

Use Telegram’s /inbox command to retrieve open cards. Run bun run doctor to make a health request to each configured provider without sending a Telegram message. If classification fails, Julius still lists the categories. If generated wording fails, Julius uses its built-in template.

Install Claude Code or Codex on PATH and sign in to your chosen CLI. Run either command in an interactive terminal.

Terminal window
APP_MODE=local bun run chat claude
APP_MODE=local bun run chat codex

The CLI receives a limited budget snapshot and can retain conversation history. Use the fictional register to try chat without sharing personal spending. See provider data handling.