r/softwarearchitecture • • 9d ago

Tool/Product CodeNib: a wiki and architecture map generated from your repository

CodeNib is an open-source tool that writes a wiki for a repository. The wiki starts from a map: each area of the code is assigned to a node, and arrows show their relations in the code.

Every area has its page. The overview page starts at a public entry point and walks the main call path step by step, and each step has its location in the repo.

Wikis to browse, no account needed:

For your own repository, the CodeNib Wiki GitHub Action is one workflow file. It writes the pages in your CI with a model key you provide, publishes them to GitHub Pages, and stay synced with your code in main.

71 Upvotes

4 comments sorted by

2

u/trakdtor 4d ago

What do you mean by area of the code?

-3

u/Opening-Round5528 4d ago

An area is a group of related code in the repository, like a subsystem. The grouping follows what the code does, not the folders: in the requests repo, for example, Session Orchestration, Response Handling, and Cookies and Hooks.

A model proposes the areas from the README, the main files and the most-used symbols, and assigns files to each, so every function or type belongs to one area. Each area then gets its own page in the wiki.

2

u/Prize_Industry2887 4d ago

AWS just opensourced codeKB. is this different?

1

u/Opening-Round5528 3d ago

Some overlap (a call graph, model-written summaries, MCP tools), but a different aim: CodeKB picks the relevant repositories across an organization for autonomous agents, while CodeNib works within one repository at a time.

The call graphs are also built differently: CodeKB links a call to a function with the same name, while CodeNib's references come from indexers like SCIP, which follow imports and types to the definition actually called. The same index serves two readers:

  • Coding agents, through the Claude Code or Codex plugin: they can find definitions, follow callers and read the source in the local checkout.
  • People, as the wiki in this post: a map of the code's areas, a page for each area, and an overview that walks the main call path with a file and line range for each step. A GitHub Action builds it in CI and publishes it to GitHub Pages.