How harshit-dev-on/simhub works
SimHub is a web platform for finding, testing, running, and discussing verified STEM simulations. The main creator-to-learner path is: submit a simulation, run six security checks, review it, publish it to the catalogue, then let learners open it in a sandbox and use the POE learning loop. The map also preserves documented community, Markdown, subscription, and moderation capabilities. Some paths are based on README documentation because their source was not sampled; links are omitted where the available evidence does not establish a caller or data transfer.
Main entry points: GatesConsole.tsx Submission console · page.tsx App shell · WatchView.tsx Simulation player · FeedView.tsx Simulation catalogue
Components 28
Discovery and playback
- Header and search
frontend/components/layout/Header.tsx - Category navigation
frontend/components/layout/Sidebar.tsx - Simulation catalogue
frontend/components/views/FeedView.tsx - Simulation player
frontend/components/views/WatchView.tsx - Creator subscriptions
frontend/components/views/SubscriptionsFeed.tsx
Verification and publishing
- Submission console
frontend/components/views/GatesConsole.tsx - Ownership gate
frontend/app/api/gates/ownership/route.ts - Linkage gate
frontend/app/api/gates/linkage/route.ts - Liveness gate
frontend/app/api/gates/liveness/route.ts - Safe browsing gate
frontend/app/api/gates/safebrowsing/route.ts - License gate
frontend/app/api/gates/license/route.ts - Tracker scan gate
frontend/app/api/gates/scan/route.ts - Submission intake
frontend/app/api/submissions/route.ts - Review and reverify
frontend/components/views/AdminQueue.tsx - Moderation API
frontend/app/api/admin/approve/route.ts
Learning and community
- Simulation workbench
frontend/components/views/SimulationWorkbench.tsx - POE challenge
frontend/components/modals/PoeModal.tsx - Quiz and grading API
frontend/app/api/quiz/grade/route.ts - Threaded discussions
frontend/components/comments/RedditCommentsSection.tsx - Comments API
frontend/app/api/simulations/[id]/comments/route.ts - Markdown editor and renderer
frontend/components/markdown/MarkdownRenderer.tsx
Identity and profiles
- Authentication dialog
frontend/components/modals/AuthModal.tsx - Supabase auth client
frontend/lib/supabase.ts - Supabase service
Application and data
- App shell
frontend/app/page.tsx - Simulation registry API
frontend/app/api/simulations/route.ts - Local simulation store
frontend/lib/store.ts
Other components
- Learner or creator
Connections 26
- Learner or creator → App shell: opens
README.md - App shell → Header and search: presents
README.md - App shell → Category navigation: presents
README.md - App shell → Simulation catalogue: presents
README.md - App shell → Simulation player: presents
README.md - App shell → Creator subscriptions: presents
README.md - Learner or creator → Submission console: submits simulation
README.md - Submission console → Ownership gate: checks
frontend/components/views/GatesConsole.tsx - Submission console → Linkage gate: checks
frontend/components/views/GatesConsole.tsx - Submission console → Liveness gate: checks
frontend/components/views/GatesConsole.tsx - Submission console → Safe browsing gate: checks
frontend/components/views/GatesConsole.tsx - Submission console → License gate: checks
frontend/components/views/GatesConsole.tsx - Submission console → Tracker scan gate: checks
frontend/components/views/GatesConsole.tsx - Submission console → Submission intake: queues submission
frontend/components/views/GatesConsole.tsx - Learner or creator → Review and reverify: moderates
README.md - Review and reverify → Moderation API: approves or restricts
README.md - Simulation catalogue → Simulation registry API: loads catalogue
- Simulation player → Simulation workbench: opens simulation stage
README.md - Simulation player → Threaded discussions: shows discussion
README.md - Simulation player → Markdown editor and renderer: renders description
README.md - Simulation workbench → POE challenge: starts challenge
README.md - POE challenge → Quiz and grading API: submits answers
- Threaded discussions → Comments API: syncs votes and comments
README.md - Authentication dialog → Supabase auth client: maps auth user
frontend/components/modals/AuthModal.tsx - Supabase auth client → Supabase service: authenticates
README.md - Submission console → Markdown editor and renderer: edits README
README.md