Skip to content
JayDev-27Public

About

A holographic Three.js assistant with voice cloning, TTS and real macOS system actions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

JARVIS app icon

JARVIS

Talk to your Mac. It talks back, and gets things done.

A voice-first AI assistant with a living 3D interface. Hold Space, speak, and JARVIS answers in a cloned voice while it opens apps, manages files and checks on your system. The brain runs on your own machine.

Live UI on Vercel macOS Python 3.10+ React 19 + Three.js MIT License

Live UI · Quick start · Commands · How it works · Configuration



Demo: JARVIS loads, greets you, and answers 'Open YouTube' while the orb reacts

✨ Why JARVIS

  • 🎙 Voice first, hands free. Hold-to-talk, tap-to-toggle or continuous conversation. The orb reacts to your voice in real time and stops talking the moment you start.
  • 🧠 Never stuck on one model. Routes across Groq, Mistral and OpenRouter, and falls back to fully local Ollama when you're offline.
  • 🗣 Sounds like JARVIS. Kyutai Pocket-TTS clones a voice from a few seconds of reference audio, with gTTS as an automatic fallback.
  • ⚙️ Actually does things. Opens apps and sites, reads, writes and lists files, takes screenshots and reports battery, CPU and memory.
  • 🛡 Careful by design. Deletions go to the Trash, never rm, only inside Desktop, Documents and Downloads. Remote actions are off by default.
  • 🌗 A studio-grade interface. Glossy WebGL orb, oversized type, light and dark themes, and a layout that works from phone to ultrawide.

🖼 Interface

JARVIS home: a dark rounded stage with a glossy ultramarine orb and orbiting spheres, greeting 'Good afternoon, Sir.'
Conversation view: the latest reply in large type beside the transcript Systems dashboard in dark mode: time, location, assistant state, providers, spectrum and terminal
Conversation: the latest reply set large, with what JARVIS just did underneath Systems: providers, live audio spectrum and a terminal of everything happening
Settings modal: choosing Groq and a model Full-height navigation menu with oversized links
Settings: pick a provider and model, voice, hotkey, API keys and backend URL Menu: oversized navigation, closes with Esc

JARVIS on a phone, light theme   JARVIS on a phone, dark theme

Note

The replies in these screenshots come from a scripted stand-in backend, so the capture wouldn't open real apps or need API keys. Everything else is the real UI.

🚀 Quick start

You'll need: macOS, Python 3.10+ (brew install [email protected]), Node 20+ and Chrome or Edge (for the Web Speech API).

git clone https://github.com/JayDev-27/Jarvis.git
cd Jarvis && ./start.sh

start.sh finds a Python 3.10+ interpreter, creates backend/.venv, installs dependencies, copies backend/.env.example to backend/.env, then starts FastAPI on :8000 and Vite on :5173. Ctrl+C stops both.

Open http://localhost:5173, add at least one API key under Menu → Settings → API keys (or run Ollama locally), and hold Space.

Use the hosted UI instead of running Vite

The interface is deployed at https://jarvis-ai-hud-one.vercel.app. It still talks to the backend on your Mac at http://127.0.0.1:8000, so nothing you say goes to Vercel.

  1. Make sure backend/.env contains JARVIS_ALLOWED_ORIGINS=https://jarvis-ai-hud-one.vercel.app (it's in .env.example).
  2. Start the backend (./start.sh, or the manual steps below).
  3. Open the live UI and allow local network access if your browser asks.

A different backend address can be set under Settings → Connection.

Manual setup
cd backend
python3.12 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
uvicorn app.main:app --reload --port 8000
cd frontend
npm install
npm run dev

💬 What it can do

Say or type What happens
"Open Spotify", "Launch Terminal" Launches the app with open -a
"Open github.com", "Open YouTube" Opens the site in your default browser
"Create file notes.txt", "Make folder Projects" Creates it on your Desktop (or the path you name)
"Write 'hello' to notes.txt" Writes or appends; can draft the content with the LLM
"Read file notes.txt", "What's in Downloads?" Reads files and lists folders
"Delete file old.txt" Moves it to the Trash, only inside Desktop, Documents or Downloads
"Take a screenshot" Saves a timestamped PNG to your Desktop
"Check battery", "Show memory usage" Reports battery, CPU and memory
Anything else A normal conversation, with the last 20 turns as context

Controls

Action How
Push to talk Hold Space (change it in Settings, e.g. Meta+J)
Toggle mic Click the blue mic in the composer, or Talk in the header
Type instead Use the composer at the bottom of the screen
Continuous conversation Settings → General → Continuous conversation
Theme The sun/moon button in the header (remembered per browser)

🧩 How it works

flowchart LR
    subgraph Browser["Browser · React 19 + Three.js"]
        STT["Web Speech API"] --> UI["JARVIS UI"]
        UI <--> ORB["WebGL orb<br/>(audio-reactive)"]
    end
    subgraph Mac["Your Mac · FastAPI"]
        ACT["Intent matcher"] --> TOOLS["macOS tools<br/>open · screencapture · pmset · Finder"]
        ACT --> LLM["LLM router"]
        LLM --> G["Groq"] & M["Mistral"] & O["OpenRouter"] & L["Ollama (local)"]
        LLM --> TTS["Pocket-TTS → gTTS fallback"]
    end
    UI -- "POST /chat" --> ACT
    TTS -- "/audio/*.wav" --> UI
Loading
  1. The browser transcribes your speech and sends it to POST /chat.
  2. The backend first checks whether you asked for a system action and runs it.
  3. The LLM router answers, including the action's result, trying providers in order until one responds.
  4. The reply is synthesised to audio, and the UI plays it back while the orb follows the voice.

⚙️ Configuration

Everything lives in backend/.env. API keys can also be saved from Settings → API keys, which writes them to that same file.

Variable Purpose
GROQ_API_KEY, GROQ_MODEL Groq (tried first)
MISTRAL_API_KEY, MISTRAL_MODEL Mistral
OPENROUTER_API_KEY, OPENROUTER_MODEL OpenRouter
OLLAMA_MODEL, OLLAMA_SECOND_MODEL Local models at localhost:11434
HUGGINGFACE_TOKEN, HF_TTS_MODEL Pocket-TTS voice cloning weights
JARVIS_ALLOWED_ORIGINS Extra browser origins allowed to call the backend (comma-separated)
TELEGRAM_BOT_TOKEN, TELEGRAM_SECRET_TOKEN Optional Telegram webhook
ALLOW_REMOTE_SYSTEM_ACTIONS Let Telegram trigger Mac actions (default false)

Voice cloning: replace backend/voices/jarvis.wav (or the bundled backend/assets/jarvis.wav) with 5–10 seconds of clean speech. Without the gated weights, JARVIS uses Pocket-TTS's built-in marius voice, then gTTS.

🔒 Security

  • Local only by default. The backend accepts browser requests only from localhost and the origins you list in JARVIS_ALLOWED_ORIGINS.
  • Validated input. Messages, history and roles are length-checked and type-checked, and API keys that could break out of a .env line are rejected.
  • Recoverable deletes. Files go to the Trash through Finder. If that fails, JARVIS leaves the file alone instead of deleting it permanently. Paths are passed to AppleScript as arguments, never pasted into the script.
  • Contained paths. Deletes are refused outside Desktop, Documents and Downloads, for dotfiles, and for the JARVIS project itself.
  • Remote actions off. Telegram messages need the webhook secret, and can't touch your Mac unless you opt in.

📂 Project structure

Jarvis/
├── backend/app/
│   ├── main.py          # FastAPI routes, CORS, audio serving
│   ├── brain.py         # Provider router + health checks
│   ├── tools.py         # macOS actions with safety guards
│   ├── voice_engine.py  # Pocket-TTS (cloning / catalog voice)
│   ├── tts.py           # Hugging Face / Coqui / gTTS fallbacks
│   └── telegram_bot.py  # Optional webhook
├── frontend/src/
│   ├── App.tsx          # Layout, conversation, hotkeys
│   ├── components/      # OrbScene, Panels, SettingsModal, MenuOverlay, Loader
│   └── hooks/           # Speech-to-text, audio playback, persisted settings
├── assets/              # App icon + README screenshots
└── start.sh             # One-command launcher

🗺 Roadmap

  • Multi-provider routing with local fallback
  • Voice cloning with Pocket-TTS
  • Redesigned 3D interface with light and dark themes
  • Hosted UI on Vercel that connects to your local core
  • Streaming replies and audio
  • Wake word ("Hey JARVIS")
  • Calendar, reminders and Spotify control

🤝 Contributing

Issues and pull requests are welcome. Before opening a PR, run:

cd frontend && npm run lint && npm run build

📄 License

MIT © Jatin Pandey


If JARVIS made you smile, a ⭐ helps more people find it. · Back to top ↑

About

A holographic Three.js assistant with voice cloning, TTS and real macOS system actions.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages