Everything you need to measure people well.
CPVL is a continuous psychometric validation platform for mass-communication research. It combines a validated scale library, IRT scoring, study governance, surveys and ecological momentary assessment in one system — usable from a browser or from any application through the REST and agent APIs.
Overview
The platform has one measurement engine and three faces:
Install and build instruments, run validation, create surveys, collect data, export to R/CSV.
Public survey links, a social feed and live radio — all privately instrumented with EMA prompts.
Accounts, roles, approvals, platform settings, content, EMA and a full audit trail.
API keys and bearer sessions for scripts, mobile apps, ABM simulations and LLM agents.
Accounts and roles
Create an account at /register or sign in at /login. Administrators can also create accounts and issue API keys from the console.
| Role | Home | Can do |
|---|---|---|
| Administrator | /admin | Everything, including settings, users, approvals and audit |
| Supervisor | /researcher | Oversee researchers, publish, decide approvals, validate |
| Reviewer | /researcher | Review and validate instruments, read analytics |
| Researcher | /researcher | Instruments, scales, validation, surveys, exports |
| Participant | /social | Respond to surveys and EMA prompts |
Passwords are hashed with PBKDF2-HMAC-SHA256 (600,000 iterations). Sessions are revocable server-side tokens delivered as a bearer token and an HttpOnly cookie. Self-registration and approval-before-first-login are configurable in Admin → Tool Settings.
Researcher workflow
- Install or create an instrument. Start from one of 49 mass-communication scales, a discipline template, or a blank instrument.
- Review items and constructs. Each item carries a construct, response format, optional reverse scoring and IRT parameters.
- Validate. Run item statistics, reliability, structural validity, DIF and IRT fit checks. Fix weak items and re-run.
- Request approval. If approval-before-publish is enabled, a supervisor or admin reviews the validation report.
- Build a survey. Select an instrument, add quantitative, qualitative or demographic questions, then activate.
- Collect responses. Share
/survey/<survey_id>. Participants need no account. EMA triggers can deliver prompts inside an app. - Analyse and export. Inspect results, download CSV or JSON, or generate an R script with the full response matrix.
Scales library
The library at /scales contains 49 instruments and 259 items across three families:
- Quantitative 34 Likert, frequency and NPS scales covering media literacy, trust, engagement, innovation, fatigue, credibility and more.
- Qualitative 10 structured open-response protocols for experience, trust narratives and feedback.
- EMA 5 in-the-moment prompts for mood, activity, social context and content switching.
Installing a scale creates a registry instrument, copies its items with the correct response bounds (5-point, 7-point, 0–10 NPS) and records the original author reference. Installed scales can be versioned and validated like any other instrument.
Instruments and governance
An instrument moves through a controlled lifecycle:
draft → review → validated → approved → published → archived
↘ rejected
Transitions are permission-checked and audited. Publishing can require a passed validation report (α above the configured threshold) and an approval decision. Versions are immutable snapshots, so a live study never silently changes its measurement model.
Validation methods
Validation is computed from raw response matrices and produces a structured report with a quality score and recommendations.
- Item statistics
- n, mean, variance, range, skewness, kurtosis, floor/ceiling and non-response.
- Reliability
- Cronbach’s α, McDonald’s ω, standard error of measurement, item–total correlations and α-if-item-deleted.
- Structural validity
- Kaiser–Meyer–Olkin, Bartlett’s test, communalities, eigenvalues and variance explained, with the number of factors above eigenvalue 1.
- DIF
- Mantel–Haenszel odds ratios and χ² per subgroup, flagging marginal, moderate and large differential item functioning.
- IRT fit
- Infit/outfit mean squares and z-statistics, RMSD and expected category probabilities.
- Scoring
- 2PL IRT with EAP theta estimation, standard errors and per-administration aberrant-response risk.
- Drift
- CUSUM monitoring of item parameters with governance gates for quarantine or rollback.
Item parameters are versioned and reproducible across restarts, so a participant's θ remains comparable over time until a new calibration is published through the governance gates.
These checks do not replace a full psychometric study — they operationalise it. For publication, report sample size, dimensionality evidence, reliability, measurement invariance and IRT calibration alongside the platform output.
Surveys
Surveys support quantitative (Likert, binary, NPS, ranking, matrix, semantic differential), qualitative and demographic questions. Lifecycle: draft → active → paused → closed.
Participant links are public by default (configurable). Each response records value, text, response time and session. Results are private to authorised researchers and include per-question N, mean, minimum, maximum and exports.
POST /ecosystem/surveys
{"title":"Media trust study","instrument_id":"mc_media_trust"}
POST /ecosystem/surveys/{id}/questions
{"question_type":"quantitative","question_text":"I trust this outlet","construct":"trust"}
POST /ecosystem/surveys/{id}/activate
Ecological momentary assessment
EMA delivers short surveys in the flow of daily life. Three trigger families are supported:
- Time — fixed times of day with a delivery window and daily cap.
- Event — when an app event occurs, with a cooldown to avoid over-prompting.
- Interval — every N minutes with optional jitter.
Mobile clients poll /ecosystem/ema/prompt?user_id=… and receive the due survey and its questions in one response. Compliance is tracked per survey at /ecosystem/ema/compliance/{survey_id} (authorised users).
Analysis and export
Survey exports are available as JSON, CSV or a ready-to-run R script using jsonlite and psych. Thesis/agent response data can be exported as JSON or CSV from the researcher dashboard, and the analytics endpoint returns theta distribution, response-time statistics, item summaries and construct means.
export:read. Participant-level data should be handled under your ethics approval and data-protection policy.App integrations & the embeddable SDK
Any product can use CPVL through the integration API. Administrators register an app in Admin → Integrations; each app receives a public key (browser use, restricted to allowed origins) and a secret key (server-side data export).
Add the SDK
<script src="https://cpvl.mediahubnetwork.net/sdk/cpvl.js"></script>
<script>
const cpvl = CPVL.init({
baseUrl: 'https://cpvl.mediahubnetwork.net',
apiKey: 'cpvl_pub_…', // public key
instrumentId: 'radio_platform',
autoStart: true, // or call cpvl.start() after a user gesture
autoPrompt: true,
theme: 'blue'
});
cpvl.track('media_play', {title: 'Track name'}); // events → CPVL
cpvl.onScore = s => console.log('theta', s.theta); // live score ← CPVL
</script>
The SDK creates a pseudonymous session, receives EMA prompts over a WebSocket, renders an accessible check-in card, posts responses, queues events through temporary offline periods, and exposes live θ/SE. It never blocks the host application.
REST surface
| Method | Path | Purpose |
|---|---|---|
| POST | /integration/v1/session | Start or resume a measurement session |
| GET | /integration/v1/session/{id} | Current θ, SE, item count and next question |
| POST | /integration/v1/session/{id}/respond | Submit a 0–4 response and receive an updated score |
| POST | /integration/v1/events | Log play, pause, reaction, vote, chat and custom events |
| GET | /integration/v1/aggregate | Privacy-safe aggregate mood/theta (minimum 5 completed sessions) |
| GET | /integration/v1/export | Full sessions + responses + events (secret key) |
Multiway WebSocket
wss://cpvl.mediahubnetwork.net/ws/integration?token=… pushes ema_popup and score_update messages in real time and accepts respond, event, get_prompt, ping and complete. Tokens are returned once by the session endpoint and expire with the session.
Radio integration
LOKLOK Radio is the first production integration. The player loads the SDK and boot script at the edge, starts a session on the first play, streams listening/reaction/vote/chat events, and shows listener check-ins. A dedicated bridge exposes the full CPVL dataset under the radio research API:
GET /api/v1/research/cpvl # summary + CPVL analytics
GET /api/v1/research/cpvl/export # sessions, responses and events (CSV/JSONL/JSON)
GET /api/v1/research/cpvl/sessions
GET /api/v1/research/cpvl/events
API and agents
Interactive reference: /docs (OpenAPI/Swagger). Base URL: https://cpvl.mediahubnetwork.net.
Create a key
Sign in, open Researcher → API Keys, and create a key. The raw value is shown once. Administrators can also issue keys from the console.
Authenticate
curl https://cpvl.mediahubnetwork.net/agent/instruments \
-H "X-API-Key: cpvl_…"
Humans may alternatively send Authorization: Bearer cpvl_st_….
Agent loop
POST /agent/session {"instrument_id":"social_platform"}
POST /agent/session/{id}/respond {"item_id":"…","value":3,"response_time_ms":1500}
GET /agent/session/{id}/question
POST /agent/engage {"content_id":"radio_1","event_type":"listen"}
WebSocket scoring
wss://cpvl.mediahubnetwork.net/ws/social and /ws/radio stream EMA prompts and return theta, SE and aberrant-risk after each response.
Administration
The console at /admin is restricted to administrators and includes:
- Overview — users, pending accounts, instruments, surveys, responses and live sessions.
- Users & roles — create, edit, enable/disable, reset passwords, issue keys, delete accounts.
- Approvals — decide instrument publication requests.
- Content — instruments, templates, 49 scales, surveys with results and lifecycle controls.
- EMA — configure time, event and interval triggers.
- Tool settings — self-registration, approval requirement, validation thresholds, EMA limits, maintenance mode.
- Audit log — authentication, user, content, approval and settings events with actor and IP.
Operations
- Service
systemctl status cpvl· logs:journalctl -u cpvl -f- Health
GET /healthreturns version, services and auth modes.- Data
- SQLite WAL databases under
data/: auth, RBAC, registry, ecosystem, behavioral, EMA. - Secrets
- Admin password in the service environment (mode-600
.env); automation key indata/.admin-api-key. Data files are mode 600. - Backups
- Daily compressed snapshots run at 03:30 via
cpvl-backup.timerand are retained for 14 days inbackups/daily/. - Tests
venv/bin/python test_full_e2e.py(103 checks) andtest_auth_e2e.py(39 checks).- CORS
- Configurable with
CPVL_CORS_ORIGINS; defaults to*for API integrations. Browser cookies are same-origin only.