Skip to content

Refactor README and add docs/api.md + docs/development.md#2

Merged
devlux76 merged 2 commits intomainfrom
copilot/refactor-readme-and-api-docs
Mar 12, 2026
Merged

Refactor README and add docs/api.md + docs/development.md#2
devlux76 merged 2 commits intomainfrom
copilot/refactor-readme-and-api-docs

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 12, 2026

README was being used as a session journal — handoff notes, nightly status bullets, priority lists, and debug instructions all mixed with the project description. Separate developer documentation didn't exist.

Changes

README.md

Stripped to essentials only: project description, the three living regions, core design principles, a four-command quick start, and a docs index table.

docs/api.md (new)

Full API reference for current public interfaces:

  • Core data types — Page, Book, Volume, Shelf, Edge, MetroidNeighbor
  • VectorStore / MetadataStore — all methods with signatures
  • VectorBackend + createVectorBackend — backend detection and WASM fallback
  • EmbeddingBackend, EmbeddingRunner, resolveEmbeddingBackend — provider resolution options
  • ModelProfileResolver, buildModelProfileFromSeed — model profile construction
  • createRoutingPolicy, resolveRoutingPolicyForModel — routing policy derivation
// Resolve a model profile and derive all routing dimensions in one call
const { modelProfile, routingPolicy } = resolveRoutingPolicyForModel(
  { modelId: "nomic-embed-text-v1.5" },
  { resolverOptions: { registry: { "nomic-embed-text-v1.5": { embeddingDimension: 768, contextWindowTokens: 8192 } } } },
);

docs/development.md (new)

Build/test/lint reference, runtime harness usage, benchmark commands, VS Code Electron debug configs (table), Docker lane setup, and the model-derived numeric guard with examples of what it blocks.

Original prompt

This section details on the original issue you should resolve

<issue_title>README.md is a mess</issue_title>
<issue_description>The README.md file is presently a mess.
The only thing it should contain is the statement of what it is and brief instructions on using it.
However since the code base is in flux the instructions on use belong elsewhere in a docs folder.

We need to refactor and we also need to document what the API for this looks like (or at least will look like) for users of the system.</issue_description>

<agent_instructions>This should be straightforward, clean up the README and create proper docs for the API so that developers can actually use this when we are done.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: devlux76 <86517969+devlux76@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor README.md and create API documentation Refactor README and add docs/api.md + docs/development.md Mar 12, 2026
@devlux76 devlux76 marked this pull request as ready for review March 12, 2026 08:16
@devlux76 devlux76 merged commit 5204827 into main Mar 12, 2026
2 checks passed
@devlux76 devlux76 deleted the copilot/refactor-readme-and-api-docs branch March 12, 2026 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

README.md is a mess

3 participants