Prerequisites
Before installing VibeTrader, ensure you have the following installed:Node.js
Git
VibeTrader uses modern JavaScript features (ES2022) and requires a recent version of Node.js for optimal performance.
Installation Steps
1. Clone the Repository
First, clone the VibeTrader repository from GitHub:2. Install Dependencies
Install all required npm packages:package.json, including:
- React 19 - Frontend framework
- React Spectrum - Adobe’s accessible UI components
- PineTS - PineScript compiler for custom indicators
- Vite - Build tool and dev server
- TypeScript - Type checking and compilation
- html2canvas - Screenshot functionality
- Temporal polyfill - Modern date/time handling
The installation may take a few minutes depending on your internet connection speed.
3. Verify Installation
After installation completes, verify everything is set up correctly:Project Structure
Once installed, you’ll see the following directory structure:Configuration
Environment Settings
VibeTrader’s environment settings are insrc/Env.ts:
- Switch between development and production mode
- Change the default data source (Binance, Yahoo Finance, or local)
Vite Configuration
The Vite configuration invite.config.ts includes:
The
base path is set to /vibetrader/ for GitHub Pages deployment. Change this to / if deploying to a root domain.TypeScript Configuration
VibeTrader uses TypeScript 5.9+ with strict type checking. Thetsconfig.json is configured for optimal React development with ES2022 features.
Dependencies Overview
Core Dependencies
React 19
Latest React with improved performance and new hooks
React Spectrum
Adobe’s accessible design system with 50+ components
PineTS
PineScript compiler for custom technical indicators
Vite
Lightning-fast build tool with HMR
Key Libraries
| Package | Version | Purpose |
|---|---|---|
react | 19.2.0 | UI framework |
@react-spectrum/s2 | 1.1.0 | Component library |
pinets | 0.8.12 | PineScript integration |
vite | 7.2.2 | Build tool |
typescript | 5.9.3 | Type checking |
html2canvas | 1.4.1 | Screenshot capture |
temporal-polyfill | 0.3.0 | Date/time handling |
Development Tools
Code Quality
VibeTrader includes ESLint for code quality:Testing
Run the test suite with Vitest:Tests are located in the
tests/ directory and use Vitest for fast unit testing.Troubleshooting
Build Errors
Error:Cannot find module
Installation Issues
Error:EACCES permission denied
Platform-Specific Notes
Windows
On Windows, you may need to:- Run your terminal as Administrator
- Enable long paths:
git config --system core.longpaths true - Use PowerShell or Git Bash instead of Command Prompt
macOS
On macOS, you may need to:- Install Xcode Command Line Tools:
xcode-select --install - Use Homebrew to install Node.js:
brew install node
Linux
On Linux, you may need to:- Install build essentials:
sudo apt-get install build-essential - Use nvm to manage Node.js versions
Next Steps
Now that VibeTrader is installed, you’re ready to start the development server!Quick Start Guide
Learn how to run VibeTrader and start trading
Additional Resources
- Vite Documentation - Learn about the build tool
- React Spectrum - Explore the component library
- PineTS Documentation - PineScript integration guide
- TypeScript Handbook - TypeScript reference