No description
Find a file
Jameson Grieve a283fb1fcf
Some checks failed
Deploy / deploy (push) Failing after 19m56s
chore: pin server-framework 518007a9, the launch build
Zephyrex Server's latest: the migrations fix (b20c8c2b), the `authentik`
sign-in instance made at start (ca2d2e81), and no second Root_Oidc
sign-in button beside it. Booted in ENVIRONMENT=development with an
issuer set (the authentik instance made, 19 s). Targeted checks on
58137 lane 11: typecheck, lint, ratchets; SaaS e2e 11/11 with
saas-closed; pytest 62, mypy, ruff.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PxNHz9xrbswz1ZDnkEKND
2026-11-24 14:24:45 -06:00
.forgejo/workflows feat: sign in with Zephyrex Authentik only, for the public launch 2026-11-24 14:01:28 -06:00
.githooks build: the ratchets through the framework's zephyrex-gates; the gate scripts 2026-11-20 13:34:04 -06:00
.github docs: privacy requests go to privacy@zephyrex.ca; SUPPORT.md points at 16W's own repository 2026-11-20 19:13:17 -06:00
client feat: sign in with Zephyrex Authentik only, for the public launch 2026-11-24 14:01:28 -06:00
contract feat(contract): pin the server's empty-body and media-type answers 2026-11-20 02:45:28 -06:00
deploy chore: pin server-framework 518007a9, the launch build 2026-11-24 14:24:45 -06:00
docs chore: pin server-framework 518007a9, the launch build 2026-11-24 14:24:45 -06:00
scripts gate-launch: GATE_IONICE runs a job under ionice when its grant asks 2026-11-24 14:01:28 -06:00
server feat: sign in with Zephyrex Authentik only, for the public launch 2026-11-24 14:01:28 -06:00
.gitignore feat(server): the SaaS backend: scoring, saved results and the full report 2026-11-03 03:26:58 +00:00
CLAUDE.md Deploy from Forgejo Actions; the server binds loopback 2026-11-04 06:52:07 -07:00
LICENSE Update submodules; 2025-11-03 19:31:15 -07:00

16 Worldviews

A worldview assessment in the style of 16personalities. You answer multiple-choice questions and get a type code across four primary axes (governmental, economic, societal, scope) plus secondary and tertiary annotations. The framework itself is described in CLAUDE.md.

It is a Next.js app built on the Zephyrex client framework. Scoring runs server-side in Next API routes; answer weights never reach the browser.

Running it

Requires Node 24+ and pnpm. The Zephyrex packages (zephyrex, @zephyrex/auth, @jgrieve/forms, zod2gql) aren't on a registry yet, so client-framework, auth, dynamic-form and zod2gql must be checked out beside this repo with their dist/ built (pnpm compile in each); pnpm installs them as injected copies. pnpm keeps those copies as they were at install time, so after rebuilding a sibling's dist/ run pnpm refresh:zephyrex to pick up the change.

cp .env.example .env
pnpm install
pnpm dev          # http://localhost:1109

Container

Containerfile builds an OCI image with Podman. The four sibling packages go in as named build contexts and are compiled inside the image:

podman build -t 16worldviews \
  --build-context zod2gql=../zod2gql --build-context dynamic-form=../dynamic-form \
  --build-context auth=../auth --build-context client-framework=../client-framework .
podman run -d -p 1109:1109 localhost/16worldviews

The runtime image is Next's standalone server running as node.

API

Route Purpose
GET /api/v1/questions All rounds, weights stripped. ?round=N for one round.
POST /api/v1/evaluate Body { "answers": [{ "questionId": "…", "answerId": 0 }] }; returns axis scores, type and code.
GET /api/v1/alive Health check.

Checks

pnpm test         # vitest
pnpm lint
pnpm typecheck
pnpm test:e2e     # playwright, builds and serves the app

License

AGPL-3.0-or-later. See LICENSE.