How kevinbwrightgmu/metacode works
MetaCode is a browser-based, AI-assisted research platform. Researchers collect or import social-media data, organize projects and codebooks, apply AI or human coding, assess coder reliability, and analyze engagement or social networks; results can be exported. Separate branches provide Survey Studio, an Ultra-tier AI Coding Lab, and an AI Scraper collector. The server exposes APIs and coordinates scraping, accounts, and AI features, while project and survey data are primarily browser-owned. Connections below follow README-described workflows and shown source references; unsampled implementation details are not inferred.
Main entry points: app.js Coding app · server.js Application server · surveys/index.js Survey API · ai-lab/index.js AI Lab API
Components 29
Research and coding
- Coding app
public/js/app.js - Data import
public/js/data.js - Codebook builder
public/js/codebook.js - AI auto-coding
server.js - Human coding
public/js/human-coding.js - Reliability analysis
public/js/reliability.js - Network analysis
python/network_analysis.py - Metrics
public/js/engagement.js - Research exports
public/js/data.js - Projects
projects/index.js - MetaCode assistant
public/js/assistant.js
Data collection
- Scraper interface
public/js/scraper.js - Scraper jobs and API
scraper/index.js - Job manager
scraper/jobs/job-manager.js - Reddit collection
scraper/reddit/standard-scraper.js - YouTube and X
scraper/platforms/index.js - Scraper transport
scraper/network/network-manager.js - AI Scraper collector
collector/src/ui/App.tsx - Collector browser store
collector/src/store/db.ts
Survey Studio
- Survey editor
public/js/survey/survey-studio.js - Survey API
surveys/index.js - Survey persistence
surveys/store.js
AI Coding Lab
- AI Lab workbench
public/js/ai-lab/lab-workbench.js - AI Lab API
ai-lab/index.js - Coding profiles
ai-lab/profiles.js - Model providers
ai-lab/providers.js
Server and accounts
- Accounts and plans
accounts/index.js - Application server
server.js
Other components
- Researcher
Connections 35
- Researcher → Coding app: opens
- Researcher → Scraper interface: collects with
- Researcher → Survey editor: builds surveys
- Coding app → Data import: imports data
- Coding app → Codebook builder: defines codes
- Coding app → AI auto-coding: requests coding
- Coding app → Human coding: supports coding
- Human coding → Reliability analysis: compares coders
- Coding app → Network analysis: analyzes CSV
- Coding app → Metrics: shows metrics
- Coding app → Research exports: exports results
- Coding app → Projects: saves projects
- Coding app → MetaCode assistant: asks for help
- Scraper interface → Scraper jobs and API: starts jobs
scraper/index.js - Scraper jobs and API → Job manager: manages jobs
scraper/index.js - Job manager → Reddit collection: runs scraper
scraper/jobs/job-manager.js - Job manager → YouTube and X: runs platform job
scraper/platforms/index.js - Reddit collection → Scraper transport: sends requests
scraper/network/network-manager.js - Scraper interface → Coding app: adds posts
- Researcher → AI Scraper collector: describes posts
- AI Scraper collector → Collector browser store: stores records
collector/src/ui/App.tsx - AI Scraper collector → Coding app: adds collected posts
- Researcher → Survey editor: designs survey
- Survey editor → Survey API: publishes survey
surveys/index.js - Survey API → Survey persistence: reads and writes
surveys/index.js - Survey API → Coding app: sends text answers
- Researcher → AI Lab workbench: uses workbench
- AI Lab workbench → AI Lab API: calls API
- AI Lab API → Coding profiles: uses profiles
ai-lab/index.js - AI Lab API → Model providers: queries providers
ai-lab/index.js - Application server → Scraper jobs and API: mounts routes
server.js - Application server → Survey API: mounts routes
server.js - Application server → AI Lab API: mounts routes
server.js - Application server → Accounts and plans: mounts routes
server.js - Accounts and plans → Scraper jobs and API: applies policy
accounts/index.js