|
Some checks failed
Deploy / deploy (push) Failing after 19m56s
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 |
||
|---|---|---|
| .forgejo/workflows | ||
| .githooks | ||
| .github | ||
| client | ||
| contract | ||
| deploy | ||
| docs | ||
| scripts | ||
| server | ||
| .gitignore | ||
| CLAUDE.md | ||
| LICENSE | ||
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.