Submitted to: Next Byte Hacks: V4
Tracks: Education, Machine Learning/AI, Beginner Friendly
Founder / Lead Judge: Venkat Kakarla
Video Walkthrough: Watch on YouTube
Live App: ayoola-tech2024.github.io/synapse-study
SynapseStudy is an interactive, visual-first study laboratory that turns dense textbooks and unstructured lecture notes into interactive, physics-based knowledge graphs paired with a voice-guided Socratic AI tutor.
Instead of flipping static text flashcards or reading passive summaries, students explore concept relationships through dynamic spring-mass graphs, KaTeX formula breakdowns, 3D flip recall cards, and scaffolded Socratic inquiry that guides them to true conceptual breakthroughs.
flowchart TD
subgraph Client["SynapseStudy Frontend Engine"]
UI["Modern Linear Dark Dashboard"]
Physics["Spring-Mass Physics Graph Canvas (Euler / Verlet)"]
Inspector["Sliding Concept Inspector & Active Recall Lab"]
Audio["Web Audio Synthesizer & Web Speech Engine"]
end
subgraph Intelligence["Dual-Mode Socratic Engine"]
Gemini["Live Google Gemini 2.0 Flash REST API"]
Offline["Zero-Config Offline Socratic Curriculum Bank"]
Store["Browser LocalStorage (Mastery, Streaks, Notes)"]
end
Physics -->|Select Node| Inspector
Inspector -->|Ask Socratic Question| Intelligence
Intelligence -->|Spoken Guidance| Audio
Inspector -->|Pass Active Recall Quiz| Store
Store -->|Update Glow Halos| Physics
-
πΏ Physics-Based Knowledge Graph Canvas:
- Spring-mass relaxation engine simulating repulsion, spring tension, and directional prerequisite links.
- Real-time dragging, zooming, panning, and orbital restructuring.
- Dynamic color-coded halos reflecting retention: Emerald (Mastered), Amber (In Progress), Rose (Needs Review).
-
π€ Voice-Guided Socratic AI Tutor:
- Strict pedagogical Socratic engine that guides students with questions and analogies rather than rote answers.
- Hands-free audio speech synthesis via the Web Speech API.
-
3-Stage Scaffolded Hint Ladder: Level 1 (Intuition)
$\rightarrow$ Level 2 (Constraint)$\rightarrow$ Level 3 (Derivation).
-
π KaTeX High-Definition Formula Typesetting:
- Native LaTeX rendering for complex STEM equations across neural network calculus, quantum mechanics, and biochemistry.
-
π 3D Flip Active Recall Cards:
- Interactive flip cards bridging everyday mental models with formal scientific definitions.
- Instant mastery rating slider and confetti victory celebrations.
-
β‘ 4 Curated STEM Curriculum Presets + Custom Notes Ingestion:
- Machine Learning: Perceptrons, Activation Functions, Cross-Entropy, Gradient Descent, Backpropagation, Scaled Dot-Product Attention.
- Quantum Physics: Wave-Particle Duality, Heisenberg Uncertainty, SchrΓΆdinger Equation, Quantum Superposition.
- Cellular Bioenergetics: Glycolysis, Krebs Cycle, Electron Transport Chain, ATP Synthase.
- Computer Science: Graph Representations, BFS vs DFS, Dijkstra's Shortest Path.
- Custom Ingestion: Paste any textbook chapter or notes to dynamically generate a custom graph in seconds!
-
π‘οΈ 100% Fail-Safe Offline Mode:
- Zero-latency, zero-cost deterministic fallback ensuring hackathon judges never hit broken API quotas or rate limits.
# 1. Clone the repository
git clone https://github.com/Ayoola-tech2024/synapse-study.git
# 2. Navigate into the project folder
cd synapsestudy
# 3. Install dependencies
npm install
# 4. Start local development server
npm run devOpen your browser at http://localhost:5173 to explore the workspace!
npm run build
npm run previewsynapsestudy/
βββ package.json # Project dependencies & scripts
βββ vite.config.ts # Vite configuration
βββ tsconfig.json # TypeScript strict configuration
βββ tailwind.config.js # Tailwind theme & custom glow animations
βββ postcss.config.js # PostCSS configuration
βββ index.html # App shell with Google Fonts & KaTeX CSS
βββ DEMO_SCRIPT.md # 3-minute video presentation script for Venkat
βββ DEVPOST_SUBMISSION.md # Devpost copy-paste submission pack
βββ README.md # Project documentation & architecture
βββ src/
βββ main.tsx # React DOM entrypoint
βββ App.tsx # Master state coordinator & layout
βββ types/
β βββ graph.ts # ConceptNode, Edge, Quiz, & Curriculum contracts
βββ data/
β βββ presets.ts # Curated STEM curricula (ML, Physics, Bio, CS)
βββ services/
β βββ aiService.ts # Live Gemini + offline Socratic heuristics
β βββ soundService.ts # Web Audio API click, chime & fanfare synthesizer
β βββ storageService.ts # LocalStorage persistence manager
βββ components/
β βββ Navbar.tsx # Preset selector, search, mastery meter, sound toggle
β βββ GraphCanvas.tsx # Spring-mass force physics SVG canvas
β βββ NodeInspector.tsx # Multi-tab sliding drawer
β βββ SocraticTutor.tsx # Socratic AI chat with speech synthesis & hint ladder
β βββ ActiveRecallCard.tsx # 3D flip card with intuition vs formula derivation
β βββ QuizModal.tsx # Active recall diagnostic challenge
β βββ KaTeXRenderer.tsx # High-definition LaTeX math renderer
β βββ CustomInputModal.tsx # Text/notes ingestion engine
β βββ ApiKeyModal.tsx # Optional Gemini API key manager
βββ styles/
βββ index.css # Custom scrollbars, KaTeX dark styling, animations
This project is open-source software licensed under the MIT License.