Hacksgiving on a Sprite
Use a dedicated Sprite, a signed-in Sprites CLI, and Bun 1.4.4 on the Sprite. Use fictional data for the contest demo. Upload fixtures/accounts.json to Box, grant the Sprite access through the Box connector, and note the connector ID and numeric Box file ID. Fly.io Box connector
Set up the private web inbox
Section titled “Set up the private web inbox”Set SPRITE_NAME to your dedicated Sprite. Run these from the Hacksgiving project directory.
sprite config update -s "$SPRITE_NAME" --url-auth sprite --private-access adminssprite info -s "$SPRITE_NAME"sprite exec -s "$SPRITE_NAME" -- mkdir -p /home/sprite/juliussprite file push -s "$SPRITE_NAME" -r package.json bun.lock src vendor fixtures /home/sprite/julius/sprite console -s "$SPRITE_NAME"On the Sprite, create .env.sprite in the app directory with permissions 0600.
| Setting | Value |
|---|---|
APP_MODE |
sprite |
SPRITE_ORIGIN |
Exact HTTPS URL from sprite info, without a trailing slash |
BOX_CONNECTION_ID, BOX_FILE_ID |
Connector ID and numeric ID of the uploaded register |
BOX_BUDGET_FILE_ID |
Optional numeric ID of a standard or custom budget file on the same connector. When set, it supplies categories instead of the register’s budget. |
YNAB_CONNECTION_ID, YNAB_PLAN_ID |
Optional Sprites custom API connector and YNAB plan UUID. When both are set, YNAB supplies categories. Do not also set BOX_BUDGET_FILE_ID. |
WAKE_TOKEN |
A random URL-safe secret of at least 32 characters, also held by the scheduler |
STATE_DB |
A persistent SQLite file, such as state/inbox.sqlite in the app directory |
PORT |
8080 to match the HTTP service |
TIME_ZONE |
The operator’s IANA time zone |
AS_OF |
2026-11-25 for the contest fixture. Omit for live calendar dates. |
With Telegram and Slack unset, check-ins stay in the private inbox. Register the HTTP service inside the Sprite.
cd /home/sprite/juliusbun install --frozen-lockfilesprite-env services create julius-renewals \ --cmd "$(command -v bun)" --args "--env-file=.env.sprite,src/server.ts" \ --dir "$PWD" --http-port 8080Exit the console so the Sprite can idle. Sign in to Fly.io as an organization admin to open the private inbox. Sprite service configuration
Wake it from a scheduler
Section titled “Wake it from a scheduler”Have an external scheduler load SPRITES_TOKEN and WAKE_TOKEN from its secret store. The Sprites organization token authenticates the private URL and the wake token authenticates the app request. Use that same HTTPS origin for SPRITE_ORIGIN in the scheduler.
curl --fail-with-body --silent --show-error --max-time 40 \ -X POST "$SPRITE_ORIGIN/wake" \ -H "Authorization: Bearer $SPRITES_TOKEN" \ -H "X-Wake-Token: $WAKE_TOKEN"Expect HTTP 200 and a JSON created count. Save an answer in the inbox and repeat the wake after the Sprite idles. With the same input and date, there are no new cards and the answer stays on disk. Sprite URL authentication
Use Telegram on a Sprite
Section titled “Use Telegram on a Sprite”Run bun run demo:setup sprite from the Hacksgiving project on your computer. Telegram needs a public Sprite URL for its webhook. Setup asks for approval before changing the URL and checks that the inbox returns 404 before registering the webhook. The wake and Telegram endpoints each require a secret. Julius processes messages from the paired private chat. Keep the bot token in the connector and use a different bot for local polling.
The private inbox can also use optional Slack DMs through its Slack Bot connector. The DM contains a count and a private inbox link. Choose one delivery channel. See the provider reference.

