{"modulePath":"github.com/cantara/source-code-portal","version":"v0.0.0-20261116181611-0c7236809c49","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/cantara/source-code-portal/api","name":"api","synopsis":"Package api embeds the /api/v1 contract so the binary can serve it.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/cmd/scp","name":"main","synopsis":"Command scp runs Source Code Portal.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/app/fleethealth","name":"fleethealth","synopsis":"","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/app/searchfeed","name":"searchfeed","synopsis":"","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/app/toolset","name":"toolset","synopsis":"","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/announce","name":"announce","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/assistant","name":"assistant","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/badges","name":"badges","synopsis":"Package badges serves local SVG badges for repositories and groups.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/catalog","name":"catalog","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/commits","name":"commits","synopsis":"Package commits keeps the latest default-branch commits of every catalogued repository and serves the merged commit feeds.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/docs","name":"docs","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/docs/chromacss","name":"main","synopsis":"Command chromacss writes the CSS for the token classes the docs pipeline puts on highlighted code, light and dark.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/insights","name":"insights","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/issues","name":"issues","synopsis":"Package issues keeps every repository's open issues and says for each where it stands (design/issues.md, P-69).","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/layout","name":"layout","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/llms","name":"llms","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/manifests","name":"manifests","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/packages","name":"packages","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/pulls","name":"pulls","synopsis":"Package pulls keeps every repository's open pull requests and says for each whose turn it is (design/pulls.md, P-68).","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/releases","name":"releases","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/search","name":"search","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/visibility","name":"visibility","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/feature/webhook","name":"webhook","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/lib/actor","name":"actor","synopsis":"Package actor tells automation from people by the names GitHub shows: one test for the commits and the pull requests.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/lib/egress","name":"egress","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/lib/jsonstream","name":"jsonstream","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/lib/lru","name":"lru","synopsis":"Package lru is a least-recently-used cache bounded by the total weight of what it holds.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/lib/safehtml","name":"safehtml","synopsis":"Package safehtml holds SafeHTML, HTML that passed the portal's one sanitiser policy, and that policy.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/lib/untrusted","name":"untrusted","synopsis":"Package untrusted cleans repository-authored text for display: one line, no control, bidirectional-formatting or zero-width characters, bounded length.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/analytics","name":"analytics","synopsis":"Package analytics is the optional Plausible Analytics of the pages (design/analytics.md, P-113).","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/auth","name":"auth","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/auth/oidctest","name":"oidctest","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/cluster","name":"cluster","synopsis":"Package cluster lets several instances serve one portal.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/cluster/clustertest","name":"clustertest","synopsis":"Package clustertest is an in-memory cluster backend for tests: a Hub is the cluster, each Dial a member with its own connection.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/config","name":"config","synopsis":"Package config loads and validates the configuration of SCP: built-in defaults, then a YAML file, then SCP_* environment variables, then command-line flags.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/docstore","name":"docstore","synopsis":"Package docstore keeps what an admin edits in the portal's pages (core): the layouts, the announcements.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/ghlogin","name":"ghlogin","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/github","name":"github","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/github/githubtest","name":"githubtest","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/health","name":"health","synopsis":"Package health scores repositories and weighs them into products, so an owner sees what needs attention.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/httpapi","name":"httpapi","synopsis":"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).","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/httpapi/oapi","name":"oapi","synopsis":"Package oapi is generated from api/openapi.yaml: the API types and the strict server interface.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/llm","name":"llm","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/mcpserver","name":"mcpserver","synopsis":"Package mcpserver serves the tool catalogue over the Model Context Protocol (design/agents.md, W2): /mcp in Streamable HTTP, stateless, with JSON answers.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/people","name":"people","synopsis":"","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/prereq","name":"prereq","synopsis":"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).","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/scope","name":"scope","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/setup","name":"setup","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/snapshot","name":"snapshot","synopsis":"Package snapshot holds the immutable serving state of SCP: the catalogue, the facets features hang on its repositories and the indexes they derive.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/store","name":"store","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/sync","name":"sync","synopsis":"Package sync runs the jobs that read GitHub.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/theme","name":"theme","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/tools","name":"tools","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/vault","name":"vault","synopsis":"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.","isRedistributable":true},{"path":"github.com/cantara/source-code-portal/internal/platform/webui","name":"webui","synopsis":"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.","isRedistributable":true}],"total":55}}
