Skip to content
tejasecPublic

About

Turn lecture audio into actionable tasks, key concepts, exam hints, and auto-synced Gemini Notebooks & Calendar.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

CueLM

License: AGPL-3.0 Platform Framework Hackathon Architecture

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.


Features

  • 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 portable helix-secret markdown 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 .md viewer 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

Core Note-Taking System

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:

πŸ“ Advanced Markdown & WYSIWYG Editing

  • 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 .md files or import them directly into your active vault.

πŸ•ΈοΈ Bi-directional [[Wiki-links]] & Knowledge Graph

  • 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.

πŸ“… Global Task Aggregation & Calendar View

  • 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.

πŸ” Instant Tantivy Full-Text Search

  • 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.

πŸ““ Daily Notes, Outlines, & Hierarchical Notebooks

  • 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.

Native Lecture Recording & Audio Engine

Plugging directly into the note-taking core is a high-performance native audio recording pipeline built specifically for university lectures:

πŸŽ™οΈ Hardware Audio Recording & Lock-Screen Persistence

  • Foreground Service Architecture: Declared with FOREGROUND_SERVICE_MICROPHONE and RECORD_AUDIO runtime 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.

πŸŒ‰ Bidirectional StorageBridge IPC

  • Custom JavaScript-to-Native Bridge: Exposes a clean Android bridge 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.

πŸ—‚οΈ Vault-Native Storage & Hierarchical Sub-Recordings

  • In-Vault Storage: Audio files save directly into {vault}/Recordings/ alongside standard Markdown files.
  • Nested Sub-Recordings: Support for branched sub-recordings (parent__sub__child naming 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.

🎧 In-App Audio Playback & Waveform Scrubbing

  • 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.

BharatCode Hackathon Innovation & AI Pipeline

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"
  1. 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.
  2. 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.
  3. Actionable Task & .ics Calendar Export: Automatically parses spoken deadlines into structured task items with one-click .ics calendar generation and Anki-compatible .csv flashcard exports.

Technology Breakdown

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

Building from Source

Prerequisites

  • 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

Project Structure

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

Roadmap

  • 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 StorageBridge IPC 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 .ics calendar invitation exports
  • Two-way automated sync with Gemini Notebooks via notebooklm-py
  • Whiteboard photo and lecture slide multimodal fusion

Attributions & Acknowledgments

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.

License

CueLM is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). See the LICENSE file for complete details.

About

Turn lecture audio into actionable tasks, key concepts, exam hints, and auto-synced Gemini Notebooks & Calendar.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages