Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
feature
|
|
|
announce
Package announce keeps the portal's announcements (design/announcements.md): the configuration's `announcements[]` is the base, and the admins' changes are the store's overrides (the document `announcements`, design/config-baseline.md): an announcement by id replaces the file's or is added, and `removed` names the file's ones taken away.
|
Package announce keeps the portal's announcements (design/announcements.md): the configuration's `announcements[]` is the base, and the admins' changes are the store's overrides (the document `announcements`, design/config-baseline.md): an announcement by id replaces the file's or is added, and `removed` names the file's ones taken away. |
|
assistant
Package assistant is the feature that answers questions about the catalogue (design/assistant.md): a streaming chat with a language model that calls read-only tools over the viewer's view of the snapshot.
|
Package assistant is the feature that answers questions about the catalogue (design/assistant.md): a streaming chat with a language model that calls read-only tools over the viewer's view of the snapshot. |
|
badges
Package badges serves local SVG badges for repositories and groups.
|
Package badges serves local SVG badges for repositories and groups. |
|
catalog
Package catalog discovers the public repositories of the configured organisations, tracks their identity and old addresses, assigns them to the configured groups and contributes repositories, groups and aliases to the snapshot.
|
Package catalog discovers the public repositories of the configured organisations, tracks their identity and old addresses, assigns them to the configured groups and contributes repositories, groups and aliases to the snapshot. |
|
commits
Package commits keeps the latest default-branch commits of every catalogued repository and serves the merged commit feeds.
|
Package commits keeps the latest default-branch commits of every catalogued repository and serves the merged commit feeds. |
|
docs
Package docs keeps every catalogued repository's README and the Markdown files under docs/, rendered to SafeHTML with a table of contents, and serves them.
|
Package docs keeps every catalogued repository's README and the Markdown files under docs/, rendered to SafeHTML with a table of contents, and serves them. |
|
docs/chromacss
command
Command chromacss writes the CSS for the token classes the docs pipeline puts on highlighted code, light and dark.
|
Command chromacss writes the CSS for the token classes the docs pipeline puts on highlighted code, light and dark. |
|
insights
Package insights answers what the data the portal holds says about the fleet (design/insights.md, P-83): how often it ships, what it is built on, what it leans on, where knowledge sits with one person and what has gone quiet.
|
Package insights answers what the data the portal holds says about the fleet (design/insights.md, P-83): how often it ships, what it is built on, what it leans on, where knowledge sits with one person and what has gone quiet. |
|
issues
Package issues keeps every repository's open issues and says for each where it stands (design/issues.md, P-69).
|
Package issues keeps every repository's open issues and says for each where it stands (design/issues.md, P-69). |
|
layout
Package layout keeps the composition of the portal's pages (design/layout.md): which elements a page shows, in which order and with which options, as data an admin edits in the design mode.
|
Package layout keeps the composition of the portal's pages (design/layout.md): which elements a page shows, in which order and with which options, as data an admin edits in the design mode. |
|
llms
Package llms serves the Markdown surface for LLM agents and scripts: /llms.txt (an llmstxt.org index), /llms-full.txt (every README in one file), raw Markdown of documents and READMEs, and Markdown answers to pages when the client asks for text/markdown.
|
Package llms serves the Markdown surface for LLM agents and scripts: /llms.txt (an llmstxt.org index), /llms-full.txt (every README in one file), raw Markdown of documents and READMEs, and Markdown answers to pages when the client asks for text/markdown. |
|
manifests
Package manifests reads the package manifests of every catalogued repository (go.mod, package.json, pom.xml) as untrusted input and keeps the technology and the dependencies they declare.
|
Package manifests reads the package manifests of every catalogued repository (go.mod, package.json, pom.xml) as untrusted input and keeps the technology and the dependencies they declare. |
|
packages
Package packages finds what a repository publishes to package registries and the newest release there (design/packages.md): one Provider per package manager reads the coordinates from the build files, and asks the registries the build file names, the configured ones and the public one.
|
Package packages finds what a repository publishes to package registries and the newest release there (design/packages.md): one Provider per package manager reads the coordinates from the build files, and asks the registries the build file names, the configured ones and the public one. |
|
pulls
Package pulls keeps every repository's open pull requests and says for each whose turn it is (design/pulls.md, P-68).
|
Package pulls keeps every repository's open pull requests and says for each whose turn it is (design/pulls.md, P-68). |
|
releases
Package releases keeps every repository's recent releases (design/releases.md, P-82): the 20 newest published ones as a conditional REST listing, read when a release is published and every 6 hours as the net.
|
Package releases keeps every repository's recent releases (design/releases.md, P-82): the 20 newest published ones as a conditional REST listing, read when a release is published and every 6 hours as the net. |
|
search
Package search is the portal's search (design/search.md): an inverted index in memory of what the portal holds, one segment per repository built from its facets through Options.Read and reused while the repository's content digest is unchanged.
|
Package search is the portal's search (design/search.md): an inverted index in memory of what the portal holds, one segment per repository built from its facets through Options.Read and reused while the repository's content digest is unchanged. |
|
visibility
Package visibility is who sees what (design/visibility.md, VS1): every product and repository has an audience, everyone, only signed-in viewers (those who see private repositories) or no one, and an item everyone sees may be kept from search engines.
|
Package visibility is who sees what (design/visibility.md, VS1): every product and repository has an audience, everyone, only signed-in viewers (those who see private repositories) or no one, and an item everyone sees may be kept from search engines. |
|
webhook
Package webhook receives GitHub deliveries on POST /webhooks/github: it verifies the signature over the raw body, drops repeated deliveries and hands each event, normalised to a sync event and a repository or owner, to a Sink.
|
Package webhook receives GitHub deliveries on POST /webhooks/github: it verifies the signature over the raw body, drops repeated deliveries and hands each event, normalised to a sync event and a repository or owner, to a Sink. |
|
lib
|
|
|
actor
Package actor tells automation from people by the names GitHub shows: one test for the commits and the pull requests.
|
Package actor tells automation from people by the names GitHub shows: one test for the commits and the pull requests. |
|
egress
Package egress is the way out to addresses that untrusted content names: https to public unicast addresses only, checked on the address dialled, so neither a redirect nor a DNS answer reaches the portal's own network.
|
Package egress is the way out to addresses that untrusted content names: https to public unicast addresses only, checked on the address dialled, so neither a redirect nor a DNS answer reaches the portal's own network. |
|
jsonstream
Package jsonstream reads JSON as a stream in bounded memory: a value not asked for is skipped as it is read, never held, and a string keeps at most the bytes asked for, its start and its end.
|
Package jsonstream reads JSON as a stream in bounded memory: a value not asked for is skipped as it is read, never held, and a string keeps at most the bytes asked for, its start and its end. |
|
lru
Package lru is a least-recently-used cache bounded by the total weight of what it holds.
|
Package lru is a least-recently-used cache bounded by the total weight of what it holds. |
|
safehtml
Package safehtml holds SafeHTML, HTML that passed the portal's one sanitiser policy, and that policy.
|
Package safehtml holds SafeHTML, HTML that passed the portal's one sanitiser policy, and that policy. |
|
untrusted
Package untrusted cleans repository-authored text for display: one line, no control, bidirectional-formatting or zero-width characters, bounded length.
|
Package untrusted cleans repository-authored text for display: one line, no control, bidirectional-formatting or zero-width characters, bounded length. |
|
platform
|
|
|
analytics
Package analytics is the optional Plausible Analytics of the pages (design/analytics.md, P-113).
|
Package analytics is the optional Plausible Analytics of the pages (design/analytics.md, P-113). |
|
auth
Package auth signs people in (design/auth.md): sessions are cookies sealed with AES-256-GCM, so no instance keeps state; OpenID Connect with PKCE identifies people at their provider; bearer tokens identify machines.
|
Package auth signs people in (design/auth.md): sessions are cookies sealed with AES-256-GCM, so no instance keeps state; OpenID Connect with PKCE identifies people at their provider; bearer tokens identify machines. |
|
auth/oidctest
Package oidctest is a fake OpenID Connect provider for tests, on a loopback listener: discovery, JWKS, an authorization endpoint that approves at once as the configured user, the token endpoint with PKCE, userinfo and end session.
|
Package oidctest is a fake OpenID Connect provider for tests, on a loopback listener: discovery, JWKS, an authorization endpoint that approves at once as the configured user, the token endpoint with PKCE, userinfo and end session. |
|
cluster
Package cluster lets several instances serve one portal.
|
Package cluster lets several instances serve one portal. |
|
cluster/clustertest
Package clustertest is an in-memory cluster backend for tests: a Hub is the cluster, each Dial a member with its own connection.
|
Package clustertest is an in-memory cluster backend for tests: a Hub is the cluster, each Dial a member with its own connection. |
|
config
Package config loads and validates the configuration of SCP: built-in defaults, then a YAML file, then SCP_* environment variables, then command-line flags.
|
Package config loads and validates the configuration of SCP: built-in defaults, then a YAML file, then SCP_* environment variables, then command-line flags. |
|
docstore
Package docstore keeps what an admin edits in the portal's pages (core): the layouts, the announcements.
|
Package docstore keeps what an admin edits in the portal's pages (core): the layouts, the announcements. |
|
ghlogin
Package ghlogin signs a person in to a GitHub host for the personal edition (design/personal.md): the host's forms (github.com, a GitHub Enterprise Server, a GHE.com tenant), the device flow, and the two read-only calls that say who the token is and which organisations it reaches.
|
Package ghlogin signs a person in to a GitHub host for the personal edition (design/personal.md): the host's forms (github.com, a GitHub Enterprise Server, a GHE.com tenant), the device flow, and the two read-only calls that say who the token is and which organisations it reaches. |
|
github
Package github reads repositories from GitHub for the sync jobs: GitHub App or token authentication, REST calls through go-github, conditional requests with ETags, rate-limit observation and error classification.
|
Package github reads repositories from GitHub for the sync jobs: GitHub App or token authentication, REST calls through go-github, conditional requests with ETags, rate-limit observation and error classification. |
|
github/githubtest
Package githubtest is a fake GitHub REST server for tests: App and token authentication, organisation and user account listings with pagination, single repositories, rate-limit headers, ETags and 304s, fault injection and a request ledger.
|
Package githubtest is a fake GitHub REST server for tests: App and token authentication, organisation and user account listings with pagination, single repositories, rate-limit headers, ETags and 304s, fault injection and a request ledger. |
|
health
Package health scores repositories and weighs them into products, so an owner sees what needs attention.
|
Package health scores repositories and weighs them into products, so an owner sees what needs attention. |
|
httpapi
Package httpapi builds the HTTP handlers of the two listeners: the public port (web UI, API, badges, LLM surface, webhook) and the admin port (probes, metrics, profiling, status).
|
Package httpapi builds the HTTP handlers of the two listeners: the public port (web UI, API, badges, LLM surface, webhook) and the admin port (probes, metrics, profiling, status). |
|
httpapi/oapi
Package oapi is generated from api/openapi.yaml: the API types and the strict server interface.
|
Package oapi is generated from api/openapi.yaml: the API types and the strict server interface. |
|
llm
Package llm streams tool-using chat from a language-model provider: two wire formats (Anthropic Messages and the OpenAI-compatible Chat Completions) over net/http, one adapter each, for five providers.
|
Package llm streams tool-using chat from a language-model provider: two wire formats (Anthropic Messages and the OpenAI-compatible Chat Completions) over net/http, one adapter each, for five providers. |
|
mcpserver
Package mcpserver serves the tool catalogue over the Model Context Protocol (design/agents.md, W2): /mcp in Streamable HTTP, stateless, with JSON answers.
|
Package mcpserver serves the tool catalogue over the Model Context Protocol (design/agents.md, W2): /mcp in Streamable HTTP, stateless, with JSON answers. |
|
prereq
Package prereq is what each feature needs from GitHub (read permissions, webhook events) and the check of it against what a source's credential is granted (design/prerequisites.md, P-71).
|
Package prereq is what each feature needs from GitHub (read permissions, webhook events) and the check of it against what a source's credential is granted (design/prerequisites.md, P-71). |
|
scope
Package scope is what the listings of one feature's items (commits, pull requests, issues) share: which repositories a request's group and repository parameters name, the numbered page asked for and the freshness of the scope.
|
Package scope is what the listings of one feature's items (commits, pull requests, issues) share: which repositories a request's group and repository parameters name, the numbered page asked for and the freshness of the scope. |
|
setup
Package setup is the personal edition's first-run page (design/personal.md): in the browser the person signs in to GitHub, chooses the accounts, and sorts their repositories into products.
|
Package setup is the personal edition's first-run page (design/personal.md): in the browser the person signs in to GitHub, chooses the accounts, and sorts their repositories into products. |
|
snapshot
Package snapshot holds the immutable serving state of SCP: the catalogue, the facets features hang on its repositories and the indexes they derive.
|
Package snapshot holds the immutable serving state of SCP: the catalogue, the facets features hang on its repositories and the indexes they derive. |
|
store
Package store keeps everything the portal holds on to in SQLite, so a restart (or a crash) serves it before the first GitHub call: the catalogue, the documents administrators save, sealed credentials, parked webhook events.
|
Package store keeps everything the portal holds on to in SQLite, so a restart (or a crash) serves it before the first GitHub call: the catalogue, the documents administrators save, sealed credentials, parked webhook events. |
|
sync
Package sync runs the jobs that read GitHub.
|
Package sync runs the jobs that read GitHub. |
|
theme
Package theme is what makes a deployment look like its owner's without rebuilding the portal (design/theme.md, P-108): a directory of files the portal serves under /theme/ (a stylesheet that sets the colour tokens, a logo, a favicon) and a product name, both read at the start.
|
Package theme is what makes a deployment look like its owner's without rebuilding the portal (design/theme.md, P-108): a directory of files the portal serves under /theme/ (a stylesheet that sets the colour tokens, a logo, a favicon) and a product name, both read at the start. |
|
tools
Package tools is the catalogue of the read-only tools agents call (design/agents.md): the assistant in process, MCP clients at /mcp and browser agents through WebMCP.
|
Package tools is the catalogue of the read-only tools agents call (design/agents.md): the assistant in process, MCP clients at /mcp and browser agents through WebMCP. |
|
vault
Package vault seals the credentials the portal reads GitHub with (design/personal.md): AES-256-GCM under a key that lives in the operating system's keychain, else in a 0600 file beside the store, never in the store.
|
Package vault seals the credentials the portal reads GitHub with (design/personal.md): AES-256-GCM under a key that lives in the operating system's keychain, else in a 0600 file beside the store, never in the store. |
|
webui
Package webui runs the web UI's server, the Next.js standalone build in web.dir, as a child process on a loopback port: started with the portal, restarted when it exits or its bundle is replaced, stopped at shutdown.
|
Package webui runs the web UI's server, the Next.js standalone build in web.dir, as a child process on a loopback port: started with the portal, restarted when it exits or its bundle is replaced, stopped at shutdown. |
Click to show internal directories.
Click to hide internal directories.