An archive for recorded speech and video. Lens transcribes recordings in batches, recognises speakers by voice within a namespace, extracts people, organisations and topics into a knowledge graph, makes everything searchable, and publishes recordings as IIIF. It also offers an assistant that answers with citations to the exact moment in a recording.
- Sources: audio and video from watched folders on S3, Dropbox, Google Drive, OneDrive, SFTP, SMB, WebDAV or local disks, plus uploaded or pasted transcripts (txt, md, docx, pdf, srt, vtt, json and more).
- Processing: transcription (SenseVoice, faster-whisper, mlx-whisper), diarisation and voice IDs, entities, chapters and keywords, LLM summaries and templated outputs, and for video: shots, text on screen and (opt-in) faces.
- Exploring: full-text search with stemming, a speaker registry with merge and undo, an entity index and graph explorer, collections, batch runs with cost estimates, and chat scoped to what each person may read.
- Publishing: an embeddable transcript player, static reports, and IIIF Presentation 3 with Content Search, Change Discovery and the Authorization Flow.
- Multi-user: roles per namespace (viewer, editor, owner), API tokens, share links, and an audit log.
fastapi_backend/ |
FastAPI API (/api/v1), the processing engine, and the lens CLI and workers |
nextjs-frontend/ |
Next.js web app with NextAuth (Auth.js v5) and a typed client generated from the API's OpenAPI schema |
| SurrealDB | all data: documents, graph edges, full-text indexes, the job queue |
make run # builds once and runs everything (Docker)
make setup-code # the first-admin setup codeOpen http://localhost:3000 and create the first admin with the setup code. For hot reload while working on the
code, make dev (the API docs are then at http://localhost:8000/docs); see Get started.
Start with Get started, then:
- Architecture: how the pieces fit, and why
- Web app: structure, design system, data layer
- Authentication: NextAuth, API tokens, share links, IIIF sign-in
- Database: SurrealDB modes, schema, and the traps the code avoids
- Configuration
- Processing, Video, Chat and batch runs, IIIF
- API, what the design needs from the API next
- Deployment, Contributing
Built on the Next.js FastAPI Template (MIT).