How alperenunalhacking/nesilai works
NesilAI is a browser-based AI assistant combining provider-backed chat with image, speech, OCR, screen-assistant, and standalone creative tools. The main user path is composing a message in the web UI, optionally attaching an image or using speech input, then receiving a streamed model response with optional speech playback. Other substantial branches include coding, multi-agent chat, and OpenView screen analysis. Edges are limited to relationships shown in the excerpts or documented by the README; several indexed modules were not sampled, so their internal wiring is not inferred.
Main entry points: app.js Chat orchestration · ai.js Provider AI layer · index.html Web app UI · nesilllm.js LLM workspace
Components 21
Conversation and AI
- Web app UI
index.html - Chat orchestration
js/app.js - Provider AI layer
js/ai.js - AI providers
- LLM workspace
js/nesilllm.js - AI chat simulator
js/aichatsim.js - Web research
js/research.js
Media and speech tools
- Image generation
js/textToPhoto.js - Audio and video engine
js/media.js - Speech recognition
js/stt.js - Speech synthesis
js/tts.js - Image OCR
js/photoToText.js - Media services
- Browser speech APIs
Assistant workspaces
- Coding workspace
js/nesilcode.js - OpenView screen assistant
js/openview.js - Screen capture and vision
js/openview-capture.js - Project files
js/projectfiles.js
Local state
- Assistant memory
js/memory.js - Persistent media store
js/storage.js
Other components
- User
Connections 19
- User → Web app UI: uses
README.md - Web app UI → Chat orchestration: hosts
README.md - Chat orchestration → Provider AI layer: requests responses
README.md - Provider AI layer → AI providers: sends requests
README.md - Chat orchestration → Image generation: routes image requests
README.md - Chat orchestration → Speech recognition: uses for speech input
README.md - Chat orchestration → Speech synthesis: offers response playback
README.md - Chat orchestration → Image OCR: extracts attachment text
js/app.js - LLM workspace → Provider AI layer: calls chat
js/nesilllm.js - AI chat simulator → Provider AI layer: calls chat
js/aichatsim.js - Screen capture and vision → Provider AI layer: sends vision analysis
js/openview-capture.js - Image generation → Media services: requests images
README.md - Audio and video engine → Media services: requests generated media
js/media.js - Speech recognition → Browser speech APIs: uses speech APIs
js/stt.js - Speech synthesis → Browser speech APIs: uses speech synthesis
README.md - User → LLM workspace: opens workspace
js/nesilllm.js - User → AI chat simulator: participates in chats
js/aichatsim.js - User → Coding workspace: opens coding mode
js/nesilcode.js - User → OpenView screen assistant: uses screen assistant
js/openview.js