Directories
¶
| Path | Synopsis |
|---|---|
|
Package app is Godwit's desktop interface: one App whose view is rebuilt every frame from state that only the UI thread changes.
|
Package app is Godwit's desktop interface: one App whose view is rebuilt every frame from state that only the UI thread changes. |
|
Package assets embeds Godwit's brand assets.
|
Package assets embeds Godwit's brand assets. |
|
Package backend is the seam between Godwit and a mail protocol (ADR 0037).
|
Package backend is the seam between Godwit and a mail protocol (ADR 0037). |
|
backendtest
Package backendtest is the protocol backend contract (ADR 0037): one suite every backend.Receiver runs, against a fixture that starts the backend and puts mail on, or injects faults into, its server.
|
Package backendtest is the protocol backend contract (ADR 0037): one suite every backend.Receiver runs, against a fixture that starts the backend and puts mail on, or injects faults into, its server. |
|
conn
Package conn dials and authenticates IMAP and SMTP connections for the protocol backends.
|
Package conn dials and authenticates IMAP and SMTP connections for the protocol backends. |
|
ews
Package ews is the EWS protocol backend (Exchange Web Services, on-premises Exchange 2016 and later; ADR 0037): a backend.Receiver over an account's EWS URL, through the thin SOAP layer in this package.
|
Package ews is the EWS protocol backend (Exchange Web Services, on-premises Exchange 2016 and later; ADR 0037): a backend.Receiver over an account's EWS URL, through the thin SOAP layer in this package. |
|
gmailapi
Package gmailapi is the Gmail REST API v1 protocol backend (ADR 0037): a backend.Receiver and backend.Sender over https://gmail.googleapis.com.
|
Package gmailapi is the Gmail REST API v1 protocol backend (ADR 0037): a backend.Receiver and backend.Sender over https://gmail.googleapis.com. |
|
gmailapi/gmailapitest
Package gmailapitest is an in-process fake Gmail REST API v1 server for backend contract tests and coretest end-to-end tests, with zero external network dependency.
|
Package gmailapitest is an in-process fake Gmail REST API v1 server for backend contract tests and coretest end-to-end tests, with zero external network dependency. |
|
graph
Package graph is the Microsoft Graph receiving and sending backend (ADR 0037).
|
Package graph is the Microsoft Graph receiving and sending backend (ADR 0037). |
|
imapbackend
Package imapbackend is the IMAP protocol backend (ADR 0037): it speaks IMAP, with Gmail's extensions, and hands over change sets.
|
Package imapbackend is the IMAP protocol backend (ADR 0037): it speaks IMAP, with Gmail's extensions, and hands over change sets. |
|
jmap
Package jmap is the JMAP protocol backend (RFC 8620, 8621; ADR 0037): a backend.Receiver and backend.Sender over an account's JMAP session.
|
Package jmap is the JMAP protocol backend (RFC 8620, 8621; ADR 0037): a backend.Receiver and backend.Sender over an account's JMAP session. |
|
pop3
Package pop3 is the POP3 receiving backend (ADR 0037, spec #627).
|
Package pop3 is the POP3 receiving backend (ADR 0037, spec #627). |
|
smtpbackend
Package smtpbackend is the SMTP sending backend (ADR 0037).
|
Package smtpbackend is the SMTP sending backend (ADR 0037). |
|
cmd
|
|
|
godwit
command
Command godwit is the Godwit desktop app, its headless server and the command-line client of its Local API (see run).
|
Command godwit is the Godwit desktop app, its headless server and the command-line client of its Local API (see run). |
|
godwit-registry
command
Command godwit-registry builds, checks and signs a Godwit plugin registry.json (docs/registry/README.md).
|
Command godwit-registry builds, checks and signs a Godwit plugin registry.json (docs/registry/README.md). |
|
Package contract checks that the Local API behaves like *core.Service: the same scenarios run against the typed service and through JSON-RPC.
|
Package contract checks that the Local API behaves like *core.Service: the same scenarios run against the typed service and through JSON-RPC. |
|
Package core is Godwit's mail engine.
|
Package core is Godwit's mail engine. |
|
ai
Package ai talks to model services.
|
Package ai talks to model services. |
|
ai/mask
Package mask is 脱敏 (docs/adr/0025-mask-at-cloud-egress.md): the keys, ID and card numbers in what goes to a model service off this device are replaced by placeholders, {{KIND_<12 base32>}}, and the placeholders in what comes back are restored to their values.
|
Package mask is 脱敏 (docs/adr/0025-mask-at-cloud-egress.md): the keys, ID and card numbers in what goes to a model service off this device are replaced by placeholders, {{KIND_<12 base32>}}, and the placeholders in what comes back are restored to their values. |
|
ai/mask/guard
Package guard runs AstrLink Guard (QuantumNous/astrlink-guard, Apache-2.0), a token classifier for secrets and personal data in Chinese and English text: its int8 ONNX model (37 MB) read by onnx.go and run by bert.go on the CPU in pure Go, or on a Mac by CoreML through a Swift bridge loaded with purego (coreml.go), its tokenizer by tokenizer.go.
|
Package guard runs AstrLink Guard (QuantumNous/astrlink-guard, Apache-2.0), a token classifier for secrets and personal data in Chinese and English text: its int8 ONNX model (37 MB) read by onnx.go and run by bert.go on the CPU in pure Go, or on a Mac by CoreML through a Swift bridge loaded with purego (coreml.go), its tokenizer by tokenizer.go. |
|
ai/pi
Package pi runs pi-ai, the model layer of the pi agent harness, on moejs, a JavaScript runtime in pure Go (docs/adr/0024-pi-moejs-agent-runtime.md).
|
Package pi runs pi-ai, the model layer of the pi agent harness, on moejs, a JavaScript runtime in pure Go (docs/adr/0024-pi-moejs-agent-runtime.md). |
|
auth
Package auth holds the provider table and account auto-detection.
|
Package auth holds the provider table and account auto-detection. |
|
coretest
Package coretest is a real core.Service for tests outside core: a mocked keychain, fake IMAP / SMTP servers per account, a fake model service, a fake MCP server and fixture plugins, all on this machine.
|
Package coretest is a real core.Service for tests outside core: a mocked keychain, fake IMAP / SMTP servers per account, a fake model service, a fake MCP server and fixture plugins, all on this machine. |
|
events
Package events is a lossy in-process event bus for UI notifications.
|
Package events is a lossy in-process event bus for UI notifications. |
|
gateway
Package gateway decides whether an AI tool call may run, needs approval, or is denied, and audits every decision.
|
Package gateway decides whether an AI tool call may run, needs approval, or is denied, and audits every decision. |
|
internal/testclock
Package testclock is a fake clock for tests: time moves only on Advance.
|
Package testclock is a fake clock for tests: time moves only on Advance. |
|
internal/testllm
Package testllm is a fake model service for tests: the model-list endpoint and a scripted, streaming chat endpoint for each protocol (openai, openai-responses, anthropic).
|
Package testllm is a fake model service for tests: the model-list endpoint and a scripted, streaming chat endpoint for each protocol (openai, openai-responses, anthropic). |
|
internal/testmail
Package testmail provides in-memory IMAP and SMTP servers for tests.
|
Package testmail provides in-memory IMAP and SMTP servers for tests. |
|
internal/testoauth
Package testoauth is a fake OAuth 2.0 authorization and token server for tests, with a stand-in for the user's browser.
|
Package testoauth is a fake OAuth 2.0 authorization and token server for tests, with a stand-in for the user's browser. |
|
mail
Package mail parses MIME messages and sanitizes HTML bodies.
|
Package mail parses MIME messages and sanitizes HTML bodies. |
|
mailsync
Package mailsync stores what an account's protocol backend reports (ADR 0037): folders, server locations, claims, orphans, merges and threads.
|
Package mailsync stores what an account's protocol backend reports (ADR 0037): folders, server locations, claims, orphans, merges and threads. |
|
plugins
Package plugins runs third-party TypeScript plugins: manifest validation, the sandbox and the ctx API.
|
Package plugins runs third-party TypeScript plugins: manifest validation, the sandbox and the ctx API. |
|
skills
Package skills loads SKILL.md directories (Agent Skills standard).
|
Package skills loads SKILL.md directories (Agent Skills standard). |
|
store
Package store is Godwit's SQLite storage layer.
|
Package store is Godwit's SQLite storage layer. |
|
internal
|
|
|
avatar
Package avatar discovers ordinary sender avatars without asserting brand trust.
|
Package avatar discovers ordinary sender avatars without asserting brand trust. |
|
i18n
Package i18n shares MyGo's message catalogs with the native UI and pages.
|
Package i18n shares MyGo's message catalogs with the native UI and pages. |
|
icons
Package icons parses the Remix Icon icons Godwit uses (web.RemixIcons, embedded from the remixicon package, v4.8.0, the last Apache-2.0 release), the line style, and the fill style of those a selected rail button or sidebar row shows.
|
Package icons parses the Remix Icon icons Godwit uses (web.RemixIcons, embedded from the remixicon package, v4.8.0, the last Apache-2.0 release), the line style, and the fill style of those a selected rail button or sidebar row shows. |
|
imagecache
Package imagecache is the privacy proxy's store for remote mail images: a directory of files named by their URL's hash, shared by all messages, bounded in size and evicted least recently used first.
|
Package imagecache is the privacy proxy's store for remote mail images: a directory of files named by their URL's hash, shared by all messages, bounded in size and evicted least recently used first. |
|
imagefetch
Package imagefetch fetches and checks images: the reader's image proxy and prefetch download remote ones through a client of its own (public hosts only, no cookies, no Referer, a generic User-Agent), and a message's inline ones count against one Budget.
|
Package imagefetch fetches and checks images: the reader's image proxy and prefetch download remote ones through a client of its own (public hosts only, no cookies, no Referer, a generic User-Agent), and a message's inline ones count against one Budget. |
|
kit
Package kit is Godwit's component set: shadcn/ui Nova looks (neutral) built on mygo's *Base widgets.
|
Package kit is Godwit's component set: shadcn/ui Nova looks (neutral) built on mygo's *Base widgets. |
|
mcpclients
Package mcpclients connects godwit mcp to the AI apps that read MCP servers from a config file of their own: Claude Code, Codex, Antigravity and Grok.
|
Package mcpclients connects godwit mcp to the AI apps that read MCP servers from a config file of their own: Claude Code, Codex, Antigravity and Grok. |
|
palette
Package palette holds the Tailwind CSS colors Godwit draws with, copied verbatim from tailwindcss v4.1.14 theme.css (oklch lightness as 0–1).
|
Package palette holds the Tailwind CSS colors Godwit draws with, copied verbatim from tailwindcss v4.1.14 theme.css (oklch lightness as 0–1). |
|
perftrace
Package perftrace records timings for scripts/perfbench, only when its environment variables ask for it; unset (always, outside a benchmark) every call returns after reading a package variable.
|
Package perftrace records timings for scripts/perfbench, only when its environment variables ask for it; unset (always, outside a benchmark) every call returns after reading a package variable. |
|
richtext
Package richtext is Godwit's rich text model: mail bodies, compose content and Markdown become a flat list of blocks that the native UI draws, and compose content goes back to HTML.
|
Package richtext is Godwit's rich text model: mail bodies, compose content and Markdown become a flat list of blocks that the native UI draws, and compose content goes back to HTML. |
|
syslang
Package syslang detects the system UI language as a BCP 47 tag.
|
Package syslang detects the system UI language as a BCP 47 tag. |
|
sysproxy
Package sysproxy is the proxy the user set for this computer: the usual *_PROXY variables (NO_PROXY honoured), else the system's settings (macOS network settings, Windows Internet Options) with their bypass list.
|
Package sysproxy is the proxy the user set for this computer: the usual *_PROXY variables (NO_PROXY honoured), else the system's settings (macOS network settings, Windows Internet Options) with their bypass list. |
|
theme
Package theme turns Godwit's settings into semantic colors and sizes drawn from internal/palette, and installs them as the mygo theme.
|
Package theme turns Godwit's settings into semantic colors and sizes drawn from internal/palette, and installs them as the mygo theme. |
|
worddiff
Package worddiff compares compose documents word by word, formatting included: the unit is a word (a CJK character, a run of whitespace, a punctuation mark) with its style and link.
|
Package worddiff compares compose documents word by word, formatting included: the unit is a word (a CJK character, a run of whitespace, a punctuation mark) with its style and link. |
|
Package mcpserver is godwit mcp: an MCP server that lets an agent read the user's mail, write drafts and ask to send them through the running Godwit's Local API, as the mcp role.
|
Package mcpserver is godwit mcp: an MCP server that lets an agent read the user's mail, write drafts and ask to send them through the running Godwit's Local API, as the mcp role. |
|
Package ownerlock makes one process the owner of a data directory.
|
Package ownerlock makes one process the owner of a data directory. |
|
Package rpc is Godwit's line-delimited JSON-RPC 2.0 transport: a strict subset of the spec (positive integer IDs, positional params, no batches), reflective dispatch over a target's methods, and cancellable streams.
|
Package rpc is Godwit's line-delimited JSON-RPC 2.0 transport: a strict subset of the spec (positive integer IDs, positional params, no batches), reflective dispatch over a target's methods, and cancellable streams. |
|
Package rpcbind composes core with rpc: core's error codes, redaction and the methods exposed over the Local API.
|
Package rpcbind composes core with rpc: core's error codes, redaction and the methods exposed over the Local API. |
|
scripts
|
|
|
imgproto
command
Imgproto is a throwaway WebKit probe for the remote-image redesign (not shipped): does a sandboxed srcdoc iframe load images from a custom scheme under its CSP, does loading="lazy" work inside it, and does CSS background-image.
|
Imgproto is a throwaway WebKit probe for the remote-image redesign (not shipped): does a sandboxed srcdoc iframe load images from a custom scheme under its CSP, does loading="lazy" work inside it, and does CSS background-image. |
|
perfbench
command
Command perfbench measures Godwit's opening time, memory, idle cost, hot paths, sync throughput and web boot on a synthetic mailbox shaped like a heavy user's (8 accounts, 45,000 messages, 2.6 GB).
|
Command perfbench measures Godwit's opening time, memory, idle cost, hot paths, sync throughput and web boot on a synthetic mailbox shaped like a heavy user's (8 accounts, 45,000 messages, 2.6 GB). |
|
procbench
command
Command procbench measures process-level metrics of the packaged Godwit desktop app before and after the #714 backend process split without relying on internal process structure:
|
Command procbench measures process-level metrics of the packaged Godwit desktop app before and after the #714 backend process split without relying on internal process structure: |
|
Package uiclient implements the UI's Service interfaces over the Local API socket under the ui role.
|
Package uiclient implements the UI's Service interfaces over the Local API socket under the ui role. |
|
cmd/gen
command
Command gen regenerates uiclient/client_gen.go from app/service.go and webui/service.go.
|
Command gen regenerates uiclient/client_gen.go from app/service.go and webui/service.go. |
|
Package webui owns the web UI's Go side: compose windows, their bound service and the theme variables.
|
Package webui owns the web UI's Go side: compose windows, their bound service and the theme variables. |
Click to show internal directories.
Click to hide internal directories.