Skip to content

About

Desktop app for incremental reading and spaced repetition. FSRS-6, SM-18/20, AI flashcards, PDF/EPUB/audio/video import. Tauri 2 + React 19 + Rust.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Β 
Β 

Latest commit

Β 

History

1,122 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Incrementum

Incremental Reading + Spaced Repetition = Knowledge Retention

Build Status License Platform Tauri React

Features β€’ Demo β€’ Installation β€’ Quick Start β€’ Documentation β€’ Contributing


Overview

Incrementum is a sophisticated desktop application that combines incremental reading with spaced repetition to help you efficiently process and retain information from large volumes of content.

Built with modern technologiesβ€”Tauri, React, and Rustβ€”it offers a beautiful, fast, and cross-platform learning environment that adapts to your needs.

Core Philosophy

Principle Description
Incremental Reading Process large documents in small, manageable chunks over time
Spaced Repetition Review content at scientifically-optimized intervals using FSRS-6, SM-18, SM-20, or SM-2
Import Flexibility Bring content from anywhereβ€”PDFs, EPUBs, audiobooks, videos, websites, podcasts, Anki decks
Smart Scheduling Know exactly when you'll review each card again with preview intervals
Rich Analytics Track your progress, streaks, and performance metrics

✨ Features

πŸ“š Document Management

  • Import and read PDF, EPUB, Markdown, HTML, and TXT content
  • Import audiobooks and audio files (MP3, M4A, M4B, AAC, FLAC, OGG, OPUS, WAV, WMA)
  • Import video files (MP4, WebM, MOV, MKV, AVI, M4V) with local playback
  • Import from URLs, Arxiv papers, YouTube videos/playlists, RSS feeds, and Substack
  • Capture screenshots and run OCR extraction
  • Auto-transcribe audio/video content with local Whisper or cloud providers (OpenAI, Groq)
  • Create highlights/extracts, organize by tags/categories, and resume reading positions
  • Migrate study data from Anki (.apkg) and SuperMemo (ZIP exports)

🧠 Learning & Review

  • Multiple scheduling algorithms: FSRS-6, SM-18, SM-20, SM-2
  • Card types: Basic, Cloze, Q&A, Multiple Choice, and Image Occlusion (via Flashcard Studio)
  • Review queue with filtering/sorting, keyboard-first rating flow, and session stats
  • Preview intervals (including long-form duration-aware safety caps)
  • Focus timer (Pomodoro-style) integrated into study workflows

πŸ“Š Analytics & Insights

  • Dashboard stats (due cards, retention, progress)
  • 30-day activity views, streak tracking, and goal progress
  • FSRS metrics (stability/difficulty) and category-level breakdowns
  • Knowledge Graph with interactive 2D/3D exploration

🎨 User Experience

  • 146 built-in themes, 65 bundled fonts, plus custom theme creation/import/export
  • Command palette (Ctrl+K / Cmd+K) and full keyboard navigation
  • Vim-style navigation support in reading/review contexts
  • Mobile-responsive UI with PWA support
  • Virtualized lists and optimized document/review rendering for large libraries

πŸ”§ Advanced Features

  • AI-assisted workflows: flashcard generation, summaries, Q&A helpers
  • AI assistant with multimodal image support (paste, drag & drop, or attach images)
  • Flashcard Studio with AI-powered card creation (Basic, Cloze, Q&A, Multiple Choice, Image Occlusion)
  • OCR pipeline with local and cloud providers (including math OCR options)
  • Text-to-Speech (TTS) for reading documents and review cards aloud
  • Audio/video transcription with local Whisper.cpp or cloud providers (OpenAI, Groq)
  • NotebookLM workspace for research/chat/artifact generation and sync-to-learning flows
  • Browser extension bridge for web capture (Install Firefox Extension)
  • Obsidian integration (export and sync workflows)
  • Backup/restore tools (local and cloud-backed), plus import/export utilities

πŸš€ Installation

Prerequisites

  • Node.js 18+ and npm
  • Rust toolchain (1.70+)
  • System dependencies for your platform

Linux (Ubuntu/Debian)

sudo apt update
sudo apt install libwebkit2gtk-4.1-dev \
    build-essential \
    curl \
    wget \
    file \
    libxdo-dev \
    libssl-dev \
    libayatana-appindicator3-dev \
    librsvg2-dev

macOS

xcode-select --install

macOS Security: Opening Self-Signed Applications

When you first run Incrementum on macOS, you may encounter a security warning since the application is self-signed. This is normal for unsigned apps. Here's how to proceed:

Method 1: Open via Finder (Recommended)

  1. In Finder, locate the Incrementum.app
  2. Right-click (or Control-click) the app β†’ Open
  3. A security warning dialog will appear
  4. Click "Open" again to confirm

The right-click β†’ Open path adds a security exception for that application.

Method 2: Allow via System Settings

  1. Try to open the app normally (double-click). It will fail with a security warning
  2. Open System Settings β†’ Privacy & Security
  3. Scroll down to the security section
  4. Look for a message saying "Incrementum was blocked from use because it is not from an identified developer"
  5. Click "Open Anyway" and confirm with "Open" in the dialog

After following either method, macOS will remember your choice, and you can open the app normally in the future.

Windows

No additional dependencies required.

Build from Source

# Clone the repository (includes whisper.cpp submodule)
git clone --recurse-submodules https://github.com/melpomenex/incrementum-tauri.git
cd incrementum-tauri

# If you already cloned without submodules
git submodule update --init --recursive

# Install dependencies
npm install

# Run development server
npm run tauri:dev

# Build for production
npm run tauri:build

The production bundle will be in src-tauri/target/release/bundle/.

Download Pre-built Binaries

Visit the Releases page to download pre-built binaries for your platform.


🎯 Quick Start

Step 1: Import Your First Document

Documents β†’ Import Document β†’ Choose source
Source Description
πŸ“ Local Files Select PDF, EPUB, or text files from your computer
πŸ“‚ Local Folder Import every supported file in a folder recursively, including subdirectories (entire Books libraries). Uses the native folder picker on desktop, Android Storage Access Framework, and iOS document picker
🎧 Audiobook / Audio Import audiobooks or audio files (MP3, M4A, M4B, FLAC, etc.) with auto-transcription
🎬 Video Import video files (MP4, WebM, MOV, MKV, etc.) with local playback and transcription
🌐 URL Enter any web URL to fetch and process content
πŸ“Ί YouTube Import YouTube videos or playlists
πŸ“„ Arxiv Paste Arxiv ID or URL for research papers
πŸ“Έ Screenshot Capture your screen directly
πŸƒ Anki Import .apkg files from Anki
πŸ“¦ SuperMemo Import ZIP exports from SuperMemo

Step 2: Process Content

Once a document is loaded, select text to create extracts β€” the building blocks for learning items.

  • Create extracts: Select text while reading, or use Segmentation (smart, paragraph, semantic, or fixed) to batch-split a document into extracts
  • Review & organize: Edit, categorize, and tag extracts in the Extracts tab
  • Convert to flashcards:
    • Click Create Card on an individual extract β†’ opens Flashcard Studio with the extract as seed content
    • Select multiple extracts β†’ Bulk Generate AI-powered flashcards from them
  • Optionally enable Auto-Extract on Load in OCR settings to automatically run extraction when opening documents

Step 3: Start Reviewing

Review β†’ See due cards β†’ Rate your recall (1-4)

Rating Scale

Rating Label Description Next Review
1 πŸ”΄ Again Forgot completely ~10 minutes
2 🟑 Hard Remembered with difficulty ~1-2 days
3 🟒 Good Remembered easily ~5-7 days
4 πŸ”΅ Easy Too easy ~10-14 days

Preview Intervals: See exactly when each card will appear next before you rate!


Step 4: Track Progress

Analytics β†’ View stats, charts, and streaks

πŸ“– Documentation

User Documentation

Document Description
Feature Overview Complete feature list and implementation status
Installation Guide Detailed setup instructions
OCR Features Text extraction from images

Developer Documentation

Document Description
Project Summary Architecture and technical details
Implementation Status Current progress and roadmap
OpenSpec Workflow Contribution guide and proposal process

πŸ› οΈ Development

Project Structure

incrementum-tauri/
β”œβ”€β”€ src/                    # Frontend (React + TypeScript)
β”‚   β”œβ”€β”€ components/         # UI components
β”‚   β”œβ”€β”€ pages/             # Page components
β”‚   β”œβ”€β”€ stores/            # Zustand state management
β”‚   β”œβ”€β”€ api/               # Tauri command wrappers
β”‚   β”œβ”€β”€ themes/            # Theme definitions
β”‚   └── utils/             # Utility functions
β”œβ”€β”€ src-tauri/             # Backend (Rust)
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ commands/      # Tauri command handlers
β”‚   β”‚   β”œβ”€β”€ models/        # Data models
β”‚   β”‚   β”œβ”€β”€ database/      # SQLite database layer
β”‚   β”‚   β”œβ”€β”€ algorithms/    # FSRS, SM-2, SM-18, SM-20 implementations
β”‚   β”‚   β”œβ”€β”€ processor/     # Document processors
β”‚   β”‚   └── integrations/  # External integrations
β”‚   └── Cargo.toml         # Rust dependencies
└── package.json           # Node.js dependencies

Available Scripts

Command Description
npm run tauri:dev Start development server
npm run dev Web-only development server
npm run tauri:build Build production application
npm run build Build web frontend only
npm run test Run test suite
npm run test:ui Launch test UI
npm run test:coverage Generate coverage report
npm run tauri:build:linux Build for Linux
npm run tauri:build:macos Build for macOS
npm run tauri:build:windows Build for Windows
npm run tauri:android:init Initialize Android project scaffolding
npm run tauri:android:build Build Android ARM64 APK
npm run tauri:android:dev Run Android dev build on ARM64
npm run tauri:ios:init Initialize iOS project scaffolding (macOS)
npm run tauri:ios:build:sim Build iOS simulator app (Apple Silicon)
npm run tauri:ios:dev:sim Run iOS simulator dev build (Apple Silicon)

Mobile note: desktop sidecar binaries (like whisper) are disabled on Android/iOS builds via src-tauri/tauri.android.conf.json and src-tauri/tauri.ios.conf.json.


Tech Stack

Frontend
  • Framework: React 19 with TypeScript
  • State Management: Zustand
  • Styling: Tailwind CSS
  • Build Tool: Vite
  • Icons: Lucide React
Backend
  • Framework: Tauri 2.0
  • Language: Rust
  • Database: SQLite with SQLx
  • Algorithm: FSRS-6, SM-18, SM-20, SM-2 (spaced repetition)
  • Runtime: Tokio (async)
Key Libraries
  • React Query: Data fetching and caching
  • React Router: Client-side routing
  • Recharts: Analytics visualizations
  • EPUB.js: EPUB parsing
  • PDF.js: PDF rendering
  • Three.js: 3D visualizations
  • Whisper.cpp: Local audio/video transcription

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Workflow

graph LR
    A[Check OpenSpec Proposals] --> B[Create Issue/Proposal]
    B --> C[Fork Repository]
    C --> D[Create Feature Branch]
    D --> E[Make Changes]
    E --> F[Write Tests]
    F --> G[Submit Pull Request]
Loading
  1. Check OpenSpec proposals for planned features
  2. Create an issue or proposal for new features
  3. Fork the repository
  4. Create a feature branch (git checkout -b feature/amazing-feature)
  5. Make your changes
  6. Write tests if applicable
  7. Submit a pull request

Code Style Guidelines

Language Tool Guidelines
Rust cargo fmt Follow Rust naming conventions
TypeScript Prettier Functional components, proper typing
General - Self-documenting code, comment complex logic

πŸ“Š Performance Benchmarks

Operation Time Notes
Startup <500ms Cold start
Queue Loading <100ms 10,000+ cards
Review Submission <50ms Database write
Preview Intervals <20ms FSRS calculation
Analytics Dashboard <200ms All charts loaded
Document Import <2s* Varies by file size

*Average PDF/EPUB, processing time included


πŸ“ License

Apache 2.0 License - see LICENSE for details.


πŸ™ Acknowledgments

Project Contribution
FSRS Excellent spaced repetition algorithm
Tauri Amazing desktop framework
Open Spaced Repetition Research and insights

Built with ❀️ using Tauri + React + Rust

Website Documentation Issues Changelog

⬆ Back to Top

About

Desktop app for incremental reading and spaced repetition. FSRS-6, SM-18/20, AI flashcards, PDF/EPUB/audio/video import. Tauri 2 + React 19 + Rust.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages