Drillbit
Hard questions. Good company.
System design practice with an AI interviewer you can think out loud with.
The experience · Under the hood · Run it · Engineering notes
The experience
Technical interviews are a skill you can practise. Drillbit makes room for the messy part: trying an approach, asking a question, changing your mind, and understanding why something works.
- One problem to work through. System design questions scoped from Intern to Principal, with visible requirements and optional requests for that session.
- An interviewer, not a worksheet. Streamed follow-ups respond to your reasoning. Ask for a nudge or an example when you need one. A little personality is welcome; an interrogation isn't.
- Write first. Talk when you want. Live voice continues the same interview. Return to text with your draft intact and the conversation in your history.
- A library that remembers. Revisit completed questions, recover skipped ones, and explore related concepts. Generation receives a historical snapshot to help choose what comes next.
- Come back without starting over. Cached Home stats, saved drafts, and resumable interviews. The first visit of the day can prepare a question when nothing is waiting; reminders don't spend inference money while you're away.
Under the hood
flowchart LR
iOS["iPhone · SwiftUI<br/>SwiftData drafts + outbox"] -->|Versioned API| API["Cloudflare Worker<br/>Account-scoped operations"]
API --> DB["D1<br/>Questions, attempts, history"]
API --> Jobs["Workflows<br/>Generation + recovery"]
Jobs --> Models["OpenRouter<br/>Technical reasoning"]
API --> Auth["Clerk<br/>Authentication"]
iOS <-->|Live audio · WebRTC| Voice["OpenAI<br/>Voice conversation"]
API -.->|Authorizes voice session| Voice
SwiftUI · SwiftData · WidgetKit · TypeScript · Hono · Cloudflare Workers, D1 & Workflows · Clerk · OpenRouter · WebRTC
Three decisions shape the app:
- Native where interaction matters. System controls, keyboard behaviour, accessibility and a readable interview document. Text and voice share the interview instead of creating two disconnected histories.
- The backend owns the rules. Question generation, account boundaries and lifecycle operations sit behind a versioned contract. A future Kotlin client can use that boundary; no Android client is implemented yet.
- Your work survives the network. Local drafts and an outbox preserve input. Revision checks, durable jobs and explicit conflict recovery keep retries from silently overwriting work. Provider credentials stay on the server.
Run it
You need Bun, Xcode 26+ with an iOS simulator runtime, and XcodeGen (brew install xcodegen).
git clone https://github.com/dawi369/drillbit.git
cd drillbit
bun install --frozen-lockfile
bun run ios:generate
open apps/ios/Drillbit.xcodeproj
For a quick UI tour, add --fixtures to the Debug scheme's launch arguments and run in Simulator. This uses isolated sample data; it does not exercise authentication, inference or real audio.
For live use, configure your own backend and Clerk instance using the setup and operations guide. The configuration templates are apps/api/.dev.vars.example and apps/ios/Config/Local.xcconfig.example. Provider calls require funded credentials; voice has separate configuration. Local secrets are ignored and never belong in an iOS build.
With the API configured:
bun run --cwd apps/api db:local
bun run dev
Run the checks:
bun run typecheck
bun run test
bun run contracts
swift test --package-path apps/ios -j 2
scripts/check-ios.sh
bun run test runs the backend's Vitest/D1 suite. scripts/check-ios-ci.sh runs the isolated release smoke journeys used by GitHub Actions; scripts/check-ios.sh runs the complete screenshot-heavy Simulator suite for local visual acceptance. Contract generation should leave checked-in contracts unchanged.
Engineering notes
| Start here | What it covers |
|---|---|
| Architecture | Domain boundaries, persistence, lifecycle and compatibility |
| Product vision | Positioning, principles and surviving product decisions |
| Context engineering | Interview context, history and prompt structure |
| Operations | Configuration, deployment and recovery |
| App Store readiness | What's left before review, store listing drafts and screenshots |
| OpenAPI | The shared service contract |
Status: actively developed. Text and live voice are implemented; simulator checks, live-service checks and physical-device acceptance are tracked separately. This repository is not a claim of App Store availability or production readiness. The earlier Expo prototype remains in legacy/expo, outside active build targets.
Found a rough edge? Open an issue. Include the smallest reproduction and whether it happened in Simulator or on a phone. Keep private answers and credentials out of reports.
