CueLM is a local-first academic note-taking application that combines rich Markdown notes, tasks, and knowledge graphs with embedded native lecture recording, waveform playback, and agentic AI cue extraction.
College lectures are fast-paced and cognitively demanding. Students routinely split their attention between absorbing complex theoretical explanations and frantically noting down spoken assignments, upcoming exam hints, and formula derivations. Traditional note apps force students to toggle between separate voice memo apps, cloud transcription tools, and text editorsβcreating fragmented notes and passive audio graveyards.
CueLM provides a unified solution: at its foundation, it is a complete, distraction-free academic note-taking environmentβfeaturing live KaTeX math formula rendering, TipTap/CodeMirror editing, bi-directional [[wiki-links]], global task checklist aggregation, interactive calendar scheduling, and full-text Tantivy search. Seamlessly integrated into this note-taking foundation is a native Android hardware audio recorder and agentic AI engine, allowing students to record classroom audio directly into their personal vaults, scrub waveforms right from their notes, and extract spoken deadlines with zero cloud lock-in.
- Markdown editor with toolbar, slash commands, source mode, code highlighting, Find and Replace
- Side-by-side image grids, image reordering and hover text
- Tasks view: aggregate
- [ ]checklists from across all notes, set priority and due dates, filter Today or Overdue tasks, work in a list or a calendar (drag a task to reschedule) [[Wiki-links]]and graph view- Full-text search (Tantivy), CJK-aware for Chinese, Japanese, and Korean
- Outline panel, daily notes with calendar view, tags with autocomplete, drag-and-drop
- Live KaTeX math editor (
/math,/imath) with modal preview, double-click to edit - Mermaid diagrams (opt-in render, copy as PNG, save as PNG/SVG)
- Encrypted secret blocks (
/secret) stored as portablehelix-secretmarkdown fences - Insert date/time (
/date,/time,/now) with 12-hour or 24-hour timestamps, color swatches (/color), configurable week start - Manual notebook sorting (drag to reorder above, into, or below)
- External
.mdviewer mode with import-to-vault flow - PDF preview, Obsidian import, "Show in File Manager"
- Editable Live preview alongside rich text and Markdown source, with one compact editor-mode selector and a three-button new-note preference
- Quick vault switching from the title bar, with saved-vault paths, Add vault and Manage Vaults
- AI writing tools (Ollama / OpenAI-compatible / Anthropic / OpenAI)
- Provider model discovery and opt-in image input
- Optional WebDAV sync to your own server (Nextcloud, ownCloud, a NAS): manual or automatic, with keep-both conflict copies
- Version history with main-area diffs and rendered read-only snapshots, automatic backups
- Multi-window, file associations, focus mode, view mode
- Themes (light, dark, and built-in palettes), accent colors, fonts including bundled Ubuntu and Ubuntu Mono, 80-200% interface scale
- Daily-note templates, with per-vault Markdown import/editing and date/title placeholders, applied only to new notes
- Interface languages: English, Russian, Dutch, German, Spanish, French, Italian, Portuguese (Portugal) and Portuguese (Brazil), with live switching
- MCP integration in Settings, with a packaged helper, per-vault read-only access and opt-in native note editing; no Node.js installation required
- Native Lecture Recording & Waveform Playback: In-vault recording (
.aac), foreground service persistence, and waveform scrubbing directly on Android - Local plain-text files, no company cloud
Most of CueLM's codebase and day-to-day functionality provides a local-first, distraction-free academic workspace built with SvelteKit, TipTap, CodeMirror, and Rust:
- Dual-Mode Writing: Seamlessly switch between rich TipTap v3 editing and raw CodeMirror source mode with full Markdown syntax highlighting.
- Slash Commands (
/): Quick-insert blocks for headers, callouts, bullet lists, code blocks, color swatches (/color), and timestamps (/date,/time,/now). - External Document Support: Open and view standalone
.mdfiles or import them directly into your active vault.
- Interconnected Notes: Link concepts across lectures, subjects, and semesters using standard
[[Note Title]]syntax. - Visual Graph View: Interactive node graph mapping inter-note connections to help students visualize syllabus progress and conceptual relationships.
- Universal Checklist Harvester: Scans every note across your vault to aggregate all
- [ ]checklist tasks into a centralized workspace. - Interactive Calendar View: Drag-and-drop task rescheduling, priority flags, and due-date tracking to keep assignments organized.
- Rust-Powered Search Engine: Embedded Tantivy engine provides sub-millisecond full-text search across thousands of Markdown documents, outlines, and tags.
- CJK-Aware: Built-in tokenization support for Chinese, Japanese, and Korean text.
- Structured Hierarchy: Organize notes into nested notebook trees with drag-and-drop reordering.
- Daily Journaling: Dedicated calendar view for automated daily lecture logs.
- Outline & Tag System: Dynamic table of contents outline panel and tag autocomplete with custom color styling.
Plugging directly into the note-taking core is a high-performance native audio recording pipeline built specifically for university lectures:
- Foreground Service Architecture: Declared with
FOREGROUND_SERVICE_MICROPHONEandRECORD_AUDIOruntime permissions to record lectures continuously without interruption when the screen locks. - Embedded Audio Engine: Powered by an embedded native AAR from AudioRecorder v2.5.0, offering live waveform rendering, mono AAC encoding at 48 kbps, and minimal battery consumption.
- Custom JavaScript-to-Native Bridge: Exposes a clean
Androidbridge interface to the SvelteKit WebView (StorageBridge.kt/MainActivity.kt). - Dynamic Theme Synchronization: Automatically propagates UI theme changes (light/dark mode, accent colors, background tones) into native Android activities for a unified visual experience.
- Native Intent Handoffs: Direct triggering of recording sessions, directory preparation, and external file viewers.
- In-Vault Storage: Audio files save directly into
{vault}/Recordings/alongside standard Markdown files. - Nested Sub-Recordings: Support for branched sub-recordings (
parent__sub__childnaming scheme) to segment lectures into specific discussions, derivations, or Q&A periods. - Unified Tantivy Indexing: Audio file metadata and titles are indexed alongside text notes for rapid searching.
- Seamless Playback Handoff: Launch audio playback directly from note attachments or the recordings sidebar (
playRecordingInAudioRecorder). - Waveform Navigation: Inspect waveforms, adjust playback speed, and jump directly to points of interest during study sessions.
CueLM was developed as part of the BharatCode Build League hackathon, focusing on active, student-first workflows powered by the hackathon's qwen-3.8-27b model API:
[Live Lecture Audio] βββΊ [Foreground AAC Capture] βββΊ [BharatCode qwen-3.8-27b]
β
βββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββ
βΌ βΌ βΌ
[Exam Hint Radar] [Actionable Tasks] [Confusion Marker]
"Midterm derivation cue" "Lab 3 due Friday" βββΊ Export .ics / Anki "ELI5 explanation at 18:42"
- Exam Hint Radar: Trains prompt extraction to identify high-stakes verbal cues ("This will be on the exam", "Make sure you memorize this derivation", "Common viva question"), displaying them in prioritized alert cards with timestamps.
- Live "Wait, What?" Confusion Marker: A single-tap button for students during fast lectures. It logs the exact timestamp and prompts the AI to generate a simplified "Explain Like I'm 5" breakdown and step-by-step derivation for that lecture segment.
- Actionable Task &
.icsCalendar Export: Automatically parses spoken deadlines into structured task items with one-click.icscalendar generation and Anki-compatible.csvflashcard exports.
| Layer | Technologies | Role |
|---|---|---|
| Note-Taking Frontend | SvelteKit, Svelte 5, TailwindCSS v4, TipTap v3, CodeMirror, KaTeX, Mermaid.js | Reactive academic notes dashboard, KaTeX math editor, task calendar, and playback UI |
| Native Core | Rust, Tauri v2, Tantivy, Notify | File system operations, vault watching, and high-speed full-text search indexing |
| Android Host | Kotlin, Java 17, Jetpack Compose, Room SQLite 2.8.4, Jaudiotagger | Hardware audio management, foreground service, and JavaScript-to-Android IPC |
| Embedded Engine | AudioRecorder v2.5.0 (AAR) | Low-level PCM/AAC recording, audio waveform computation, and playback dialogs |
| AI Layer | BharatCode API (qwen-3.8-27b), Gemini Multimodal |
Spoken task extraction, exam cue detection, and multimodal note generation |
- Java Development Kit: OpenJDK 17 or 21 (
JAVA_HOME) - Android SDK: API Level 34+ with
build-tools/37.0.0 - Node.js: v18+ with
pnpm - Rust: 1.88+ with Android compilation targets installed:
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
src-tauri/gen/android/
βββ app/
β βββ build.gradle.kts # Android build configuration, Room 2.8.4, Compose BOM
β βββ libs/
β β βββ audiorecorder.aar # Embedded AudioRecorder v2.5.0 native library
β βββ src/main/
β βββ AndroidManifest.xml # Foreground service permissions and activity declarations
β βββ java/com/cuelm/app/
β βββ CueLMApplication.java
β βββ MainActivity.kt # StorageBridge implementation and IPC handlers
β βββ StorageBridge.kt # JavaScript interface exposed to Tauri WebView
βββ buildSrc/ # Custom Gradle plugin for cross-compiling Rust libraries
βββ gradle/wrapper/ # Gradle wrapper distribution (v8.11.1)
βββ build.gradle.kts # Top-level Gradle project configuration
βββ gradle.properties # Build environment properties and JVM args
βββ LICENSE # AGPL-3.0 License
βββ README.md # Project documentation
- Full-featured academic Markdown editor with live KaTeX math formula rendering
- Global
- [ ]checklist task aggregator and interactive calendar view - Bi-directional
[[wiki-links]]and interactive knowledge graph view - Embed native AudioRecorder v2 AAR into Tauri v2 Android host
- Implement bidirectional
StorageBridgeIPC for theme and audio controls - In-app audio playback and nested sub-recordings hierarchy (
__sub__) - Local vault storage (
{vault}/Recordings/) with Tantivy search indexing - Connect BharatCode Hackathon API (
qwen-3.8-27b) for localized task extraction - Live "Wait, What?" confusion button with audio timestamp seeking
- Exam Hint Radar warning cards and
.icscalendar invitation exports - Two-way automated sync with Gemini Notebooks via
notebooklm-py - Whiteboard photo and lecture slide multimodal fusion
CueLM builds upon exceptional open-source software:
- HelixNotes by Yuri Karamian (ArkHost): The local-first Markdown note-taking engine, Tantivy search integration, and SvelteKit desktop/mobile client.
- AudioRecorder by Dmytro Ponomarenko: The Android audio recording engine, waveform visualizer, and low-level audio processing implementation.
- BharatCode Build League: Hackathon host providing model endpoints and compute infrastructure.
CueLM is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for complete details.