{"id":31109412,"url":"https://github.com/deftio/spellcatcher","last_synced_at":"2026-02-15T15:04:50.400Z","repository":{"id":314042620,"uuid":"1053905081","full_name":"deftio/SpellCatcher","owner":"deftio","description":"A live app for catching spells from magical wands","archived":false,"fork":false,"pushed_at":"2025-09-10T17:02:59.000Z","size":119,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-17T13:23:13.678Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://deftio.github.io/SpellCatcher/dist/public/index.html","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/deftio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-10T05:18:34.000Z","updated_at":"2025-09-11T09:33:53.000Z","dependencies_parsed_at":"2025-09-10T08:57:36.370Z","dependency_job_id":"0111e498-b5db-423e-a401-0a9d157718b1","html_url":"https://github.com/deftio/SpellCatcher","commit_stats":null,"previous_names":["deftio/spellcatcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deftio/SpellCatcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2FSpellCatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2FSpellCatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2FSpellCatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2FSpellCatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deftio","download_url":"https://codeload.github.com/deftio/SpellCatcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deftio%2FSpellCatcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29481925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-17T07:00:32.413Z","updated_at":"2026-02-15T15:04:50.383Z","avatar_url":"https://github.com/deftio.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪄 Spell Caster\n\nA magical web application that uses computer vision and machine learning to track wand movements and recognize spell patterns in real-time.\n\n**✨ [Live Demo](https://deftio.github.io/SpellCatcher/dist/public/index.html)**\n                 \nInspired by a visit to Hogsmeade :) \n\n## ✨ Features\n\n### 🎯 Real-time Wand Tracking\n- **Advanced Hand Detection**: Uses MediaPipe ML models to detect hand positions with high accuracy\n- **Multi-finger Tracking**: Tracks multiple finger positions to find the best \"wand tip\"\n- **Signal Processing**: Applies smoothing filters and noise reduction for stable tracking\n- **Visual Trail Rendering**: Beautiful purple trails that fade over time (1-20 seconds)\n- **Pause \u0026 Freeze**: Pause tracking to freeze trails on screen\n\n### 🔮 Spell Recognition\n- **Pattern Learning**: Learn custom spell patterns by drawing with your wand (3 repetitions for accuracy)\n- **Harry Potter Spells**: Pre-load 15 classic Harry Potter spells with traditional wand movements\n- **Advanced Recognition**: Pattern matching using geometric normalization and vector comparison\n- **Spell Library**: Save and manage multiple spells with persistent storage\n- **Recognition Feedback**: Visual notifications when spells are detected\n- **Configurable Memory**: Adjust how many tracking points are analyzed for spell recognition\n\n### 📱 Responsive Design\n- **Mobile Optimized**: Collapsible controls and touch-friendly interface for phones and tablets\n- **Desktop Support**: Full-featured experience on larger screens\n- **Adaptive Layout**: Automatically adjusts to screen size and orientation\n- **Clean Interface**: Minimal, distraction-free tracking area\n\n### ⚙️ Customizable Settings\n- **Camera Controls**: Show/hide video feed (defaults to off), flip horizontal/vertical\n- **Trail Customization**: Adjust trail length (1-20 seconds, default 6s) and persistence\n- **Sensitivity Tuning**: Fine-tune detection sensitivity (0.1-1.0, default 0.8)\n- **Smoothing Controls**: Reduce jitter with adjustable smoothing (1-10 points, default 3)\n- **Spell Memory Length**: Control pattern recognition sensitivity (10-50 points, default 20)\n- **Persistent Storage**: All settings and spells saved automatically\n\n## 🚀 Getting Started\n\n### 1. Camera Permission\nWhen you first open the app, you'll be prompted to allow camera access. This is required for wand tracking.\n\n### 2. Basic Tracking\n- Hold your hand up to the camera with your index finger extended (like holding a wand)\n- Move your finger to see the magical purple trail appear on screen\n- Use the **Pause** button in the top status bar to freeze trails on screen\n- The trail will fade over time based on your trail length setting\n\n### 3. Learning Spells\n\n#### Option 1: Load Harry Potter Spells\n1. Switch to the **Spells** tab at the bottom\n2. Click **\"Activate Harry Potter Spells\"** to load 15 pre-configured spells\n3. Enable the **Spells** toggle in the top-left if it's not already on\n4. Try casting: Lumos (up stroke), Alohomora (key turn), Expelliarmus (flick), etc.\n\n#### Option 2: Learn Custom Spells\n1. Switch to the **Spells** tab at the bottom\n2. Enter a spell name (e.g., \"Lumos\", \"My Custom Spell\")\n3. Click **Learn Spell** to start recording\n4. Draw the spell pattern with your wand 3 times consistently\n5. Click **Capture Pattern** after each drawing\n6. The spell will be automatically saved after 3 successful patterns\n\n#### Tips for good spell patterns:\n- Make distinctive shapes (circles, zigzags, letters)\n- Draw at moderate speed for best recognition\n- Keep patterns simple but unique\n- Practice the same pattern consistently for all 3 repetitions\n\n### 4. Casting Spells\n- Ensure the **Spells** toggle in the top-left is enabled\n- Draw learned patterns with your wand\n- When recognized, the spell name will appear at the bottom of the screen for 2 seconds\n\n## 🎮 Controls\n\n### Main Interface\n- **Top-Left**: Spells toggle (enable/disable spell recognition)\n- **Top-Center**: \"Spell Caster\" title\n- **Top-Right**: Status indicators (Camera, Tracking, Wand) and Pause button\n- **Bottom**: Tabbed interface with Tracker, Spells, and Settings\n\n### Tracker Tab\n- Clean, minimal interface focused on tracking\n- No controls - just watch the magic happen!\n\n### Spells Tab\n- **Learn New Spell**: Enter name and record 3 consistent patterns\n- **Harry Potter Spells**: Load pre-configured spell library\n- **Learned Spells**: View and delete saved spells\n- **Debug Information**: View tracking details when enabled\n\n### Settings Tab\n\n#### Camera Settings\n- **Show Video Feed**: Toggle webcam preview visibility (defaults to off)\n- **Flip Horizontal**: Mirror the video feed horizontally (useful for front-facing cameras)\n- **Flip Vertical**: Flip the video feed vertically\n\n#### Tracking Settings\n- **Trail**: How long trails persist on screen (1-20 seconds, default 6s)\n- **Sensitivity**: Detection sensitivity - higher = more responsive (0.1-1.0, default 0.8)\n- **Smooth**: Reduce tracking jitter (1-10 points, default 3)\n- **Spell Memory Length**: How many recent points analyzed for spell recognition (10-50, default 20)\n- **Clear Trail**: Remove all current trail points from the screen\n\n## 📊 Status Indicators\n\n- **Camera**: Green when webcam is active and accessible\n- **Tracking**: Green when MediaPipe hand detection is running, shows \"Paused\" when frozen\n- **Wand**: Green when hand/wand is detected and being tracked\n- **Pause Button**: Freeze/resume tracking (trails stay visible when paused)\n\n## 💡 Tips for Best Performance\n\n### Lighting\n- Use good lighting - avoid backlighting\n- Avoid harsh shadows on your hands\n- Natural daylight works best\n- Indoor lighting should be bright and even\n\n### Hand Position\n- Keep your hand clearly visible to the camera\n- Extend your index finger like holding a wand\n- Avoid rapid movements for better tracking\n- Use deliberate, smooth motions for spell casting\n\n### Environment\n- Use a contrasting background (your hand vs background)\n- Minimize distracting objects in camera view\n- Keep camera stable if possible\n- Ensure good internet connection for initial MediaPipe model loading\n\n### Spell Recognition\n- Enable the Spells toggle in the top-left corner\n- Draw patterns at moderate speed (not too fast, not too slow)\n- Be consistent with learned patterns\n- Adjust \"Spell Memory Length\" in settings if recognition is too sensitive/loose\n\n## 🔧 Troubleshooting\n\n### Poor Tracking\n- Check lighting conditions\n- Ensure hand is clearly visible to camera\n- Try adjusting sensitivity in Settings tab\n- Make sure camera has clear view of your hand\n- Check if other apps are using the camera\n\n### Spells Not Recognized\n- Ensure Spells toggle is enabled (top-left)\n- Practice drawing patterns consistently\n- Try re-learning spells if recognition is poor\n- Adjust \"Spell Memory Length\" in Settings (lower = more responsive, higher = more stable)\n- Check that you're drawing at moderate speed\n\n### Camera Issues\n- Refresh the page and re-grant camera permission\n- Check that no other apps are using the camera\n- Ensure camera is not blocked or covered\n- Try using a different browser if issues persist\n\n### Performance Issues\n- Close other browser tabs using camera/microphone\n- Ensure good internet connection for initial loading\n- Try reducing trail length and smoothing settings\n- Use a modern browser with WebGL support\n\n## 🧙‍♂️ Pre-loaded Harry Potter Spells\n\nThe app includes 15 classic spells with traditional wand movements:\n\n- **Lumos**: Simple upward stroke (light spell)\n- **Nox**: Simple downward stroke (extinguish light)\n- **Alohomora**: Key-turning motion (unlocking spell)\n- **Accio**: Pulling gesture (summoning charm)\n- **Expelliarmus**: Quick flick away (disarming spell)\n- **Wingardium Leviosa**: Swish and flick (levitation charm)\n- **Stupefy**: Straight thrust (stunning spell)\n- **Petrificus Totalus**: Binding cross pattern (full body-bind)\n- **Incendio**: Flame flick (fire spell)\n- **Aguamenti**: Water wave motion (water spell)\n- **Expecto Patronum**: Protective circle (patronus charm)\n- **Riddikulus**: Laugh gesture (boggart banishing)\n- **Flipendo**: Push force (knockback jinx)\n- **Impedimenta**: Blocking wall (impediment jinx)\n- **Rictusempra**: Tickle wiggle (tickling charm)\n\n\nThis project is for educational and entertainment purposes. MediaPipe is used under Google's Apache 2.0 license.\n\n\n*Cast responsibly and may your spells be ever in your favor!* ✨🪄","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeftio%2Fspellcatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeftio%2Fspellcatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeftio%2Fspellcatcher/lists"}