Files
stork/scripts/create_board.py
T
ilia b91ba3490c
CI / secret-scan (pull_request) Successful in 32s
CI / python-ci (pull_request) Successful in 50s
Add shareable multi-board links with paper UI and voice notes.
Boards use /b/<uid> with no invite password; restore renamable columns,
recordings, and seeded locale notes, with first column locked.
2026-08-07 14:47:28 -04:00

30 lines
776 B
Python

"""Create an extra Stork board (or use the public Start button).
Usage:
STORK_URL=https://stork.levkin.ca \\
STORK_BOARD_TITLE='Dan & Mira' \\
.venv/bin/python scripts/create_board.py
"""
from __future__ import annotations
import os
import httpx
def main() -> int:
base = os.environ.get("STORK_URL", "http://127.0.0.1:8094").rstrip("/")
title = os.environ.get("STORK_BOARD_TITLE", "").strip() or "Name board"
with httpx.Client(base_url=base, timeout=30.0) as client:
res = client.post("/api/boards", json={"title": title})
res.raise_for_status()
data = res.json()
print(f"Board: {data['title']} ({data['id']})")
print(f"Share URL: {data['url']}")
return 0
if __name__ == "__main__":
raise SystemExit(main())