Contributing¶
How the repo is laid out, how changes land, and the checklist for the most common change: a new walker.
Repository layout¶
flowline/
├── main.jac # entry point; its imports are the router
├── models.jac # every node, edge and obj, plus graph helpers
├── constants.jac # vocabularies shared by client and server
├── jac.toml # project, dependencies, serve, scale, placement
├── services/ # the walker API, one folder per section
│ ├── projects/ roster/ tasks/ board/ log/
│ ├── flowlines/ roadmap/ filters/ workspace/
│ ├── insights/ assistant/
│ ├── github/ # github.jac, events.jac (webhook), util.jac
│ └── util.jac # server-only helpers (dates, paging, tags)
├── pages/ # file-based routes
│ ├── layout.jac # path-aware app chrome
│ ├── (public)/ # /, /login, /auth/callback
│ └── (auth)/ # /board, /flowlines, /roadmap, /overview, ...
│ └── impl/ # page handler bodies
├── components/ # presentational components by area
│ └── ui/ # jac-shadcn registry copies: never edit
├── lib/ # session, project, workspace, filters, dates, ...
├── styles/global.css # brand and step colour tokens, both palettes
├── brand/ # logo.jac and social.jac draw assets/brand/
├── tests/smoke/ # CI gates: deploy, API, webhook, browser
└── docs/ # this site
Workflow¶
devis the default branch and the base for pull requests.mainis protected: branch, open a PR, merge. Direct pushes are rejected for everyone, including admins, and merged branches are deleted automatically.- Format and check with the pinned Jac (
0.39.2), not whateverjacis on yourPATH; release lines disagree on formatting. - Commit messages carry no
Co-Authored-Bytrailers for AI tools. - Product copy describes what the app does. The original design mock carried invented testimonials, metrics, pricing and integrations; none of it shipped, and the FAQ gives the honest "not yet" answers.
PLAN.md(the working plan) is gitignored; shipped plans are archived inplan-archive/.
Style¶
- No em dashes in code comments, docs or copy. Use commas, periods or parentheses.
- Comments and docstrings are at most three or four lines. Say the one
non-obvious thing; anything longer belongs in
CLAUDE.mdor a plan. - A docstring as the first statement of a plain
defis a parse error: use a#comment above thedef. .jacfile names are one lowercase word (flowlines.jac), and the route slug follows.
Adding a walker¶
- Write it in the right module under
services/<section>/, with its ability bodies inline (not in an.impl.jacannex; see Architecture). - Follow the patterns. A box-scoped walker visits its box. A jid-addressed
mutation extends the section's lookup base (
find_taskand friends) or callsresolveplusowneditself. A list that grows with history pages. - Import it in
main.jac. A walker missing from that list returns 404. - A new module needs a placement pin in
jac.toml:"services.<section>.<module>" = "server". - Document it. Add a
walker <Name>directive to the matching page underdocs/content/api/with a line on what it reports. The docs build fails until you do (Writing these docs). - Verify.
jac checkthe file, bootjac run --no-dev main.jac(only the bundle build sees client codegen failures), and call the walker.jac checkdoes not catch a name missing from an import inside a walker; only a request does. - If it takes an id, gate it. Add a foreign-account case to the API gate: calling it with another account's id must be a no-op.
Adding a UI primitive¶
That writes components/ui/<name>.jac. Import it; do not edit it, because the
next install rewrites the file. When a registry component ships broken, keep a
fixed copy under a name the installer cannot write to (the toaster lives in
toaster.jac, not sonner.jac).
Brand assets¶
brand/logo.jac generates every logo variant into assets/brand/, and
brand/social.jac draws the link preview card, assets/brand/og-image.png
(it reads the fonts from the client's node_modules, so run jac install
first). Edit a generator, then run it as a standalone file:
--no-takeover runs the file standalone and leaves the project untouched; the
plain jac run brand/logo.jac fails on Jac 0.37.14.
Reference brand assets as /static/..., never /assets/... (Vite owns
/assets/* at build time). This docs site publishes the same files.