- Visit Node.js official website
- Download the LTS version (18.x or higher)
- Run the installer and follow the setup wizard
- Restart your terminal/PowerShell after installation
# Install Chocolatey first (if not installed)
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# Install Node.js
choco install nodejswinget install OpenJS.NodeJSAfter installing Node.js, restart your terminal and verify:
node --version
npm --versionYou should see version numbers (e.g., v18.17.0 and 9.6.7).
npm installCopy the environment template:
copy env.example .envEdit .env file and add your API keys:
# AI API Keys (at least one required)
CLAUDE_API_KEY=your_claude_api_key_here
OPENAI_API_KEY=your_openai_api_key_here
GEMINI_API_KEY=your_gemini_api_key_here
# Security
JWT_SECRET=your_secure_random_string_herenpm run buildnpm testnpm run dev- Visit Anthropic Console
- Sign up/login to your account
- Navigate to API Keys section
- Create a new API key
- Copy the key to your
.envfile
- Visit OpenAI Platform
- Sign up/login to your account
- Go to API Keys section
- Create a new secret key
- Copy the key to your
.envfile
- Visit Google AI Studio
- Sign up/login with your Google account
- Create a new API key
- Copy the key to your
.envfile
- Node.js is not installed or not in PATH
- Restart terminal after Node.js installation
- Reinstall Node.js with "Add to PATH" option checked
# Run PowerShell as Administrator and execute:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install# Change port in .env file
PORT=3001# Start development with hot reload
npm run dev
# Build for production
npm run build
# Run tests
npm test
# Run tests in watch mode
npm run test:watch
# Lint code
npm run lint
# Format code
npm run format
# Start production server
npm startSynaptic/
├── src/ # Source code
│ ├── core/ # Core protocol
│ ├── storage/ # Memory storage
│ ├── ai/ # AI integrations
│ ├── blockchain/ # Blockchain logic
│ ├── privacy/ # Privacy protection
│ ├── utils/ # Utilities
│ ├── types/ # TypeScript types
│ └── config/ # Configuration
├── tests/ # Test files
├── apps/ # Applications (desktop, mobile, extension)
├── contracts/ # Smart contracts
├── docs/ # Documentation
└── dist/ # Built files
- Install Node.js following the guide above
- Install dependencies with
npm install - Configure environment by copying and editing
.env - Get API keys from AI providers
- Run the project with
npm run dev
For detailed usage examples, see the main README.md file.
If you encounter issues:
- Check this troubleshooting guide
- Ensure Node.js version >= 18.0.0
- Verify all dependencies are installed
- Check environment variables are set correctly
- Open an issue on GitHub with error details