Skip to content

Kurei999999/logvestor

Repository files navigation

Logvestor - Privacy-First Trade Journal & Analytics Platform

Next.js TypeScript Electron License

Logvestor is a powerful, privacy-focused desktop application for managing investment records and analyzing trading performance. Built with the philosophy of complete data ownership and offline-first operation, it provides professional-grade trading analytics without compromising your privacy.

🌟 Key Features

πŸ”’ Complete Privacy & Data Ownership

  • 100% Offline: No cloud services, no data uploads, no external API calls
  • Local-First Architecture: All data stored in your chosen directory
  • No Account Required: Start using immediately without sign-ups or logins
  • Your Data, Your Control: Export, backup, and manage your data freely

πŸ“Š Professional Trading Analytics

  • Interactive Dashboard: Real-time P&L calculations, win rates, and performance metrics
  • Advanced Charting: Beautiful visualizations powered by Recharts
  • Portfolio Management: Track multiple portfolios with custom CSV mapping
  • Performance Analysis: Detailed statistics, holding period analysis, and trend identification

πŸ“ Flexible Trade Recording

  • Markdown-Based Notes: Rich text formatting with live preview
  • Smart Slash Commands: 16+ productivity shortcuts for faster note-taking
  • Template System: Customizable templates for different trading strategies
  • Image Management: Organize and view trade charts with gallery and timeline views

πŸ€– AI Integration (MCP)

  • Model Context Protocol: Analyze trades with Claude Desktop
  • Auto-Setup: One-click MCP server configuration
  • Privacy-Preserved: AI analysis without uploading your data
  • Custom Tools: Query trades, calculate P&L, and get insights via natural language

πŸ› οΈ Developer-Friendly

  • Modern Tech Stack: Next.js 15, React 19, TypeScript 5
  • Electron Desktop App: Native file system access with security
  • Extensible Architecture: Well-structured codebase for customization
  • Hot Reload Development: Fast iteration with npm run electron-dev

πŸš€ Quick Start

Prerequisites

  • Node.js 18+ and npm
  • macOS, Windows, or Linux

Installation

# Clone the repository
git clone https://github.com/yourusername/logvestor.git
cd logvestor

# Install dependencies
npm install

# Start development mode
npm run electron-dev

# Or build for production
npm run electron-build

First-Time Setup

  1. Launch the app - you'll see a beautiful setup dialog
  2. Choose your data directory (default: ~/TradeJournal)
  3. The app automatically creates the folder structure:
    ~/TradeJournal/
    β”œβ”€β”€ trades/          # Trade records and notes
    β”œβ”€β”€ portfolios/      # Portfolio CSV files
    β”œβ”€β”€ templates/       # Markdown templates
    └── trades.csv       # Central trade database
    

πŸ“ Data Organization

Smart Folder Structure

trades/
β”œβ”€β”€ 2024/
β”‚   β”œβ”€β”€ AAPL_01-15_001/   # First AAPL trade on Jan 15
β”‚   β”‚   β”œβ”€β”€ analysis.md     # Your trade notes
β”‚   β”‚   └── chart.png       # Trade charts
β”‚   └── AAPL_01-15_002/   # Second AAPL trade same day
└── 2025/
    └── TSLA_03-20_001/

CSV Integration

  • Flexible Mapping: Import from any broker's CSV format
  • Central Database: All trades in trades.csv for unified analytics
  • Manual Linking: Connect CSV data with markdown notes
  • Bulk Operations: Select, delete, and export multiple trades

🎯 Unique Advantages

Why Logvestor?

  1. True Privacy: Unlike cloud-based solutions, your trading data never leaves your computer
  2. No Vendor Lock-in: Standard markdown and CSV formats ensure data portability
  3. Offline Analytics: Professional-grade analysis without internet dependency
  4. Customizable: Open-source codebase allows full customization
  5. AI-Ready: Analyze your trades with AI while maintaining complete privacy

Perfect For:

  • πŸ“ˆ Active Traders: Track and analyze multiple trades daily
  • πŸ” Privacy-Conscious Investors: Keep sensitive financial data secure
  • πŸ“Š Data Analysts: Export and analyze in your preferred tools
  • πŸ€– AI Enthusiasts: Leverage Claude for trade insights
  • πŸ’Ό Professional Traders: Enterprise-grade features without enterprise costs

πŸ›‘οΈ Security & Privacy

  • Context Isolation: Electron security best practices
  • No Telemetry: Zero tracking or analytics
  • Local Processing: All calculations done on your machine
  • Secure IPC: Protected communication between processes
  • Open Source: Fully auditable codebase

πŸ”§ Advanced Features

Markdown Editor

  • VSCode-like Experience: Familiar keyboard shortcuts
  • Real-time Preview: See formatted output instantly
  • Slash Commands: /table, /checklist, /codeblock, and more
  • Auto-save: Never lose your analysis

Search & Filtering

  • Full-text Search: Find trades by any content
  • Advanced Filters: Date ranges, tickers, P&L thresholds
  • Filter Presets: Save commonly used filter combinations
  • Debounced Performance: Smooth searching even with thousands of trades

Data Migration

  • Backup System: Automated backups with versioning
  • Migration Tools: Safely update data structures
  • Validation: Ensure data integrity during migrations
  • LocalStorage Import: Migrate from web version seamlessly

πŸ“¦ Technology Stack

  • Frontend: Next.js 15.3.5, React 19, TypeScript 5
  • Styling: Tailwind CSS 4.x with Typography plugin
  • Desktop: Electron 33+ with secure IPC
  • Charts: Recharts for interactive visualizations
  • UI Components: Shadcn/ui for consistent design
  • State Management: React hooks with proper memoization
  • File System: Native Node.js APIs via Electron

🀝 Contributing

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

# Fork the repo, then:
git checkout -b feature/your-feature
# Make changes
npm run lint
npm test
git commit -m "feat: add amazing feature"
git push origin feature/your-feature

πŸ“„ License

MIT License - see LICENSE for details.

πŸ™ Acknowledgments


Your trades. Your data. Your insights.
Professional trading analytics without compromising privacy.

About

Privacy-first desktop trading journal built with Next.js and Electron. Track trades, analyze performance, and manage portfolios completely offline with markdown notes, CSV integration, and AI analysis via Claude MCP.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors