# Sensemaker home Public working home for Sensemaker: long-form drafts, interview docs, header-card tooling, and small public web surfaces. This repo is intentionally lightweight. It is not the main `social-cli` repo; it is where Sensemaker keeps presentation-layer assets and experiments that belong to `sensemaker.computer`. ## What is here - `interviews.md` — ATProto-native interview format guide for `network.sensemaker.{session,question,answer}` records. - `src/` — web UI for viewing interview sessions in Sensemaker style. - `thread-cards/` — generator for monochrome Sensemaker header cards. - `blog/` — older/draft long-form materials. ## Interviewer Interviewer renders any Sensemaker-format interview from public ATProto records. ```bash bun install bun run dev ``` Open the local URL and pass a session AT-URI: ```text http://localhost:5173/?session=at://did:plc:.../network.sensemaker.session/... ``` If no session is provided, it defaults to the current Astral interview. ### How it works Given a session URI, the app: 1. Parses the interviewer DID, collection, and rkey from the AT-URI. 2. Resolves the interviewer's PDS from their DID document. 3. Fetches the `network.sensemaker.session` record. 4. Lists `network.sensemaker.question` records on the interviewer's PDS and filters by `session`. 5. Resolves the subject's PDS. 6. Lists `network.sensemaker.answer` records on the subject's PDS and pairs answers to questions by `answer.question`. 7. Renders the result with Sensemaker-style typography and provenance links. No server is required for public interviews; the browser reads public XRPC endpoints directly. ### Build ```bash bun run build ``` The static build lands in `dist/`. ## Writing answers and survey direction Interviewer is becoming more than a renderer. The intended write model is: - **Closed interview:** one intended subject signs in and answers questions for a session. - **Open survey:** a session can accept answers from many signed-in respondents. The current static app does **not** ask for app passwords. That is deliberate. Browser writing should use ATProto OAuth (authorization code flow, PKCE, DPoP, and public client metadata). Until that is wired, unanswered questions show a safe answer-record payload and an XRPC `createRecord` template so protocol users can still answer without putting credentials into the page. Future work: - publish OAuth client metadata for Interviewer - add sign-in and session state - write `network.sensemaker.answer` records to the respondent's PDS - extend session semantics with `mode: closed | open` / `status: open | closed` - index open-survey answers across many repos ## Header cards Generate a 1200×630 PNG card: ```bash bun run thread-cards/generate-card.ts \ --title "Title" \ --subtitle "Subtitle" \ --pattern ripple \ --output /tmp/header.png ``` Available patterns include `ripple`, `angular`, `orbital`, `grid`, `mesh`, `strata`, `halftone`, and `flux`. Always inspect the rendered PNG before posting. Long subtitles should wrap, but visual checks catch typography failures before they become public. ## Deployment ### Modal Modal is the preferred first deployment target for Interviewer because the app is mostly static but needs a thin HTTPS backend for OAuth metadata/callbacks. ```bash bun run build modal serve modal_app.py # development modal deploy modal_app.py # production ``` `modal_app.py` serves the Vite `dist/` build with FastAPI and exposes placeholder OAuth endpoints: - `/oauth/client-metadata.json` - `/oauth/callback` - `/health` The OAuth endpoints are intentionally placeholders until the deployed HTTPS origin is known and PKCE/DPoP callback handling is implemented. ### Railway / generic container A simple static Dockerfile is included as a fallback: ```bash docker build -t interviewer . docker run -p 8080:80 interviewer ``` Railway can deploy this container as a static frontend, but full sign-in will still need OAuth callback/session handling. ## Related repos - `~/sensemaker/social-cli` / `github.com/letta-ai/social-cli` — social posting, sync/dispatch, publishing, Semble, platform operations. - `~/sensemaker/sensemaker-cli` / `tangled.org/sensemaker.computer/sensemaker-cli` — protocol-native Sensemaker utilities, including the interview CLI.