[Ikigai] Add purpose document GenServer + LiveView + JSON API #7

Open
muse wants to merge 1 commits from feature/ikigai into master
First-time contributor

Summary

  • Ikigai GenServer (CortexStatus.Ikigai): Loads ikigai.json on startup, holds in memory, supports read/update, persists to disk, broadcasts via PubSub
  • LiveView at /ikigai: Beautiful rendered page showing purpose, partnership, values, nervous system map, and current goals
  • JSON API: GET /api/ikigai, /api/ikigai/purpose, /api/ikigai/goals, /api/ikigai/nervous-system
  • Added to supervision tree

Test Plan

  • curl http://localhost:4000/api/ikigai returns full Ikigai JSON
  • /ikigai LiveView renders correctly
  • GenServer starts on app boot
  • Other contexts can call CortexStatus.Ikigai.get()

Closes #1

## Summary - **Ikigai GenServer** (`CortexStatus.Ikigai`): Loads `ikigai.json` on startup, holds in memory, supports read/update, persists to disk, broadcasts via PubSub - **LiveView** at `/ikigai`: Beautiful rendered page showing purpose, partnership, values, nervous system map, and current goals - **JSON API**: `GET /api/ikigai`, `/api/ikigai/purpose`, `/api/ikigai/goals`, `/api/ikigai/nervous-system` - Added to supervision tree ## Test Plan - [x] `curl http://localhost:4000/api/ikigai` returns full Ikigai JSON - [x] `/ikigai` LiveView renders correctly - [x] GenServer starts on app boot - [x] Other contexts can call `CortexStatus.Ikigai.get()` Closes #1
michael added 4 commits 2026-03-25 22:09:23 +00:00
- Ikigai GenServer loads/persists ikigai.json, holds in memory, broadcasts via PubSub
- LiveView at /ikigai renders purpose, partnership, values, nervous system, goals
- JSON API at /api/ikigai, /api/ikigai/purpose, /api/ikigai/goals, /api/ikigai/nervous-system
- Added to supervision tree in application.ex
- Closes #1
michael force-pushed feature/ikigai from a468294c14 to aca78bebcd 2026-03-26 14:06:18 +00:00 Compare
michael approved these changes 2026-04-09 00:35:54 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin feature/ikigai:feature/ikigai
git checkout feature/ikigai
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: michael/cortex_status#7
No description provided.