Aventuras is a desktop and mobile interactive fiction application offering multiple story modes (Adventure Mode, Creative Writing Mode), deep AI integration via major providers, an advanced Memory System, dynamic Lorebook, and an autonomous Lore Management Agent. The app provides a robust set of writing tools and world tracking features, ensuring contextually rich and coherent AI-generated narratives.
- Adventure Mode - Interactive fiction with multiple-choice actions and world tracking
- Creative Writing Mode - Freeform collaborative writing with AI-generated suggestions
- POV Options - First, second, or third person perspective
- Tense Control - Past or present tense narrative style
- Use any OpenAI-compatible gateway or provider like OpenRouter, NanoGPT, llama.cpp, LM Studio, and more
- Streaming responses with real-time text generation
- Configurable models, temperature, and token limits
- Extended thinking/reasoning support with configurable effort levels
- API profiles for saving multiple configurations
- Automatic chapter summarization to manage context windows
- Configurable token thresholds and chapter buffers
- Manual chapter creation and resummarization
- AI-powered memory retrieval for relevant past events
- Chapter metadata tracking (keywords, characters, locations, plot threads)
- In-story time tracking per chapter
- Unified entry system for characters, locations, items, factions, concepts, and events
- Dynamic state tracking (relationships, inventory, discoveries)
- Keyword-based and relevance-based context injection
- Hidden information and secrets system
- Aliases for flexible entry referencing
- Import/export support (JSON, YAML, SillyTavern format)
- SillyTavern character card import (V1/V2 JSON and PNG)
- AI-assisted autonomous lore management agent
- Local grammar checking powered by Harper.js (WebAssembly)
- AI-powered style analysis for repetitive words and phrases
- Action suggestions that match player writing style
- Persistent action suggestions between sessions
- Character relationships and dispositions with portrait support
- Location visits and changes with automatic discovery
- Inventory management with equipment tracking
- Quest/story beat progression (milestones, revelations, plot points)
- In-story time tracking (years, days, hours, minutes)
- Collapsible UI cards for all world elements
- Built-in genre templates (fantasy, sci-fi, mystery, horror, slice of life)
- Custom template creation with system prompts
- Initial state configuration (protagonist, locations, items)
- Opening scene text support
- Embedded image generation in story entries
- AI-powered imageable scene detection
- NanoGPT provider integration
- Character portrait support for visual consistency
- Configurable image size (512x512 or 1024x1024)
- Named checkpoints with full state snapshots
- Retry system for undoing actions and generating alternatives
- Character and time state preservation on retry
- Local network sync between devices
- QR code connection for easy pairing
- Push/pull stories between devices
- Server mode for sharing stories
- Multiple themes (dark, light, light solarized, retro console, fallen down)
- Custom font selection (system or Google fonts)
- Adjustable text size (small, medium, large)
- Word count display toggle
- Desktop (Windows, macOS, Linux)
- Android (APK)
- iOS (planned)
Pre-compiled binaries are available on the Releases page:
| Platform | Download |
|---|---|
| Windows | aventuras_x.x.x_x64-setup.exe |
| macOS | aventuras_x.x.x_x64.dmg |
| Linux | aventuras_x.x.x_amd64.deb / .AppImage |
| Android | aventuras-release.apk |
- Language: TypeScript (strict mode)
- Frontend Framework: SvelteKit 2
- State Management: Svelte 5 runes (
$state,$derived,$props) - Backend Framework: Tauri 2 (Desktop/Android via Rust)
- Styling: Tailwind CSS, shadcn-svelte
- Database: SQLite (via
@tauri-apps/plugin-sql) - AI: OpenAI-compatible APIs (OpenRouter, AI SDK), Local NLP via Harper.js (WASM)
- Package Manager: npm
- Node.js 18+
- Rust (latest stable)
- (Optional) Android SDK, NDK, Java 17+ for Android builds
# Clone the repository
git clone https://github.com/AventurasTeam/Aventuras.git
cd aventuras
# Install dependencies
npm install
# Start Tauri development window (Desktop)
# Hot-reloading is fully supported for all Svelte/TypeScript code changes
npx tauri devAvailable npm run scripts:
build: Build for productioncheck: Runsvelte-check(type checking)check:watch: Watch mode type checkingtauri: Tauri CLI commandsrelease: Run release script (node scripts/release.js)lint: Run ESLintlint:fix: Fix ESLint issuesformat: Format code with Prettier
Current Status: No test suite is currently configured.
- TODO: Add testing framework (e.g., Vitest/Playwright) and configure tests.
- TODO: Document any required or optional environment variables (e.g., specific build or deployment variables).
- API Keys: Configured primarily via the UI (Settings -> API Settings).
aventuras/
├── src/ # SvelteKit frontend source
│ ├── routes/ # SvelteKit pages (+page.svelte, +layout.svelte)
│ ├── lib/ # Shared application logic and components
│ │ ├── components/ # UI components (PascalCase.svelte)
│ │ ├── services/ # Business logic classes/modules (AI, DB, etc.)
│ │ ├── stores/ # Svelte stores (*.svelte.ts for runes)
│ │ ├── types/ # TypeScript types
│ │ └── utils/ # Utility functions
├── src-tauri/ # Rust backend
│ ├── gen/android/ # Android scaffold files (DO NOT OVERWRITE)
│ ├── src/ # Rust source code
│ ├── Cargo.toml # Rust dependencies
│ └── tauri.conf.json # Tauri configuration
├── static/ # Static web assets
├── scripts/ # Build and utility scripts
├── package.json # Node dependencies and scripts
Click to expand build instructions
npx tauri buildIMPORTANT: The Android project scaffold (src-tauri/gen/android/) is tracked in git.
Do NOT run npx tauri android init as it will overwrite customizations.
# Dev build + deploy to device/emulator
npx tauri android dev
# Release build (unsigned APK)
npx tauri android buildThe unsigned APK will be at:
src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release-unsigned.apk
# Create keystore (first time only)
keytool -genkey -v -keystore release.keystore -alias myalias -keyalg RSA -keysize 2048 -validity 10000
# Align APK
zipalign -v 4 app-universal-release-unsigned.apk app-aligned.apk
# Sign APK
apksigner sign --ks release.keystore --ks-key-alias myalias --out app-release.apk app-aligned.apk- Tauri - Desktop/mobile app framework
- SvelteKit - Frontend framework
- OpenRouter - LLM API aggregator
- Harper - Grammar checking
- Lucide - Icon library
AGPL-3.0