AnnaSuSu/TechSpar
About
A continuously evolving interview training system. Try it online: https://techspar.cn
Learning & EducationMeasured star growth
- in 24h
- -1
- in 7 days
- +2
- in 15 days
- +5
- in 1 month
- +11
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalConnect focused drills, resume interviews, JD prep, realtime Copilot, and recording review into one continuously improving technical interview loop.
Online Demo · Quick Start · 中文
|
|
AK47 AI Subscription Top-ups(author-run promotion) offers affordable AI subscriptions with fully automated service, 24/7. Order and activate online without contacting support. Plus top-up (Philippines): CNY 115; a 4-person shared plan: CNY 35 / 30 days (desktop only). View plans & pricing →. Prices and availability follow the live store listings. |

TechSpar is more than a question generator. Focused drills, resume interviews, JD prep, realtime Copilot, and recording review share the same long-term profile, knowledge base, weak points, and review schedule. Every result changes what the next round focuses on.
Versions and branches
mainis the current product. The backend is fully TypeScript, Bun, and Hono, with one Bun workspace for backend and frontend dependencies. All new work continues here.legacy/python-backendpreserves the final Python and FastAPI implementation at commit73d1a7c. It is a read-only historical fallback and receives no new features.
Never run both branches against the same writable data directory. Use a separate checkout and a copied dataset when inspecting the legacy implementation.
Capabilities
- Adaptive focused drills backed by knowledge, mastery, and training history
- Resume mock interviews with a durable TypeScript state machine
- JD-specific preparation and questioning strategies
- Realtime Copilot with ASR, follow-up prediction, answer guidance, alerts, and optional voiceprint roles
- Long and short recording transcription with structured review
- Long-term profile, weak-point tracking, and SM-2 review scheduling
- Personal document library and personal Agent context
- Safe per-account and administrator data migration archives
Quick start
Requirements: Bun 1.3.14 or a compatible 1.3.x release.
git clone https://github.com/AnnaSuSu/TechSpar.git
cd TechSpar
bun install --frozen-lockfile
cp .env.example .env
Electron desktop client
Download macOS and Windows installers from GitHub Releases and sign in online to use them. The commands below build a desktop application with a local backend from source.
Before starting the API, copy .env.example to .env and replace the sample values for JWT_SECRET, VOICEPRINT_ENCRYPTION_KEY, and DEFAULT_PASSWORD. The server refuses to start while JWT or password placeholders remain.
Run Vite, Hono, and Electron together in development:
bun run dev:desktop
Build an unpacked application or distributable artifacts for the current platform:
bun run pack:desktop
bun run dist:desktop
Build for a specific target platform:
bun run dist:desktop:mac-arm64 # macOS Apple Silicon: DMG + ZIP
bun run dist:desktop:win-x64 # Windows x64: NSIS installer
Artifacts are written to dist/desktop/. Applications built from source include Electron and a compiled Bun backend, so end users do not need Bun. The repository configures macOS DMG/ZIP, Windows NSIS, and Linux AppImage/DEB targets.
Web development
Start the API and Web app in separate terminals:
bun run dev:api
bun run dev:web
Open http://localhost:5173. The server no longer has a fixed default password. The Electron desktop app creates random local credentials and signs in automatically.
Docker is also supported:
docker compose up --build
Then open http://localhost.
Models and optional services
When self-hosting or building the desktop application from source, configure LLM, embedding, DashScope, Tavily, OSS, and Tencent VPR credentials in Settings. Credentials are user-scoped. .env only contains bootstrap settings and optional platform fallback models.
- Any OpenAI-compatible chat and embeddings API is supported.
- Local embeddings use Transformers.js and ONNX. The default is
Xenova/bge-m3; it downloads and caches on first use with no Python, PyTorch, or pip dependency. - DashScope powers voice input, recording transcription, and Copilot realtime ASR.
- Tavily adds company research, OSS supports long-audio jobs, and Tencent VPR optionally distinguishes interviewer and candidate voices.
Validation
bun run check
bun run gen:api
The first command runs Bun and Node type checks, architecture checks, backend and frontend tests, and production builds. The second regenerates OpenAPI and frontend types.
Desktop-specific validation is available through bun run smoke:desktop, bun run smoke:local-embedding, and bun run pack:desktop.
Data and backups
Data defaults to data/: SQLite stores sessions and tasks, while user files live under data/users/{user_id}/. The Settings page exports portable personal backups and administrator system backups. Imports validate paths, links, tar checksums, and expanded size, then safely rebind personal data to the current account. Vector indexes are rebuilt after import.
Electron uses the operating system's standard application-data directory for databases, user files, model caches, and per-install random runtime secrets. Its Hono sidecar listens only on a dynamic 127.0.0.1 port.
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md for development conventions.
Explore related projects
Loading…