Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
krate-memtree
command
Command krate-memtree prints the memory of a process and all its descendants as one JSON document, using the same numbers as `krate native profile --memory` (packages/native/memstat).
|
Command krate-memtree prints the memory of a process and all its descendants as one JSON document, using the same numbers as `krate native profile --memory` (packages/native/memstat). |
|
krate-shell
command
Command krate-shell is the prebuilt Krate Native shell.
|
Command krate-shell is the prebuilt Krate Native shell. |
|
Package crashreport writes crash reports to disk and reads them back.
|
Package crashreport writes crash reports to disk and reads them back. |
|
Package desktopentry generates the freedesktop .desktop launcher of an app.
|
Package desktopentry generates the freedesktop .desktop launcher of an app. |
|
Package distinfo tells a running app how it was distributed: directly (a zip, installer, AppImage), or through a store or sandbox that delivers updates and mediates system access itself (Flatpak, Snap, the Mac App Store, the Microsoft Store).
|
Package distinfo tells a running app how it was distributed: directly (a zip, installer, AppImage), or through a store or sandbox that delivers updates and mediates system access itself (Flatpak, Snap, the Mac App Store, the Microsoft Store). |
|
Package gohost runs an app's Go host code in a separate child process, so that a Go edit restarts only the child and the window survives.
|
Package gohost runs an app's Go host code in a separate child process, so that a Go edit restarts only the child and the window survives. |
|
Package hostchild holds the JavaScript runtime of a TypeScript host child: the program that serves the host call protocol (see PROTOCOL.md) for host code running on Node, Bun or Deno, the way package gohost does for Go.
|
Package hostchild holds the JavaScript runtime of a TypeScript host child: the program that serves the host call protocol (see PROTOCOL.md) for host code running on Node, Bun or Deno, the way package gohost does for Go. |
|
Package hostjs runs a Krate Native app's TypeScript host code in one persistent embedded QuickJS VM and exposes it to the webview through a scheme.Registry.
|
Package hostjs runs a Krate Native app's TypeScript host code in one persistent embedded QuickJS VM and exposes it to the webview through a scheme.Registry. |
|
internal
|
|
|
atspi
Package atspi is a small AT-SPI client over the accessibility bus, used by the accessibility tests to walk an application's accessibility tree the way a screen reader does.
|
Package atspi is a small AT-SPI client over the accessibility bus, used by the accessibility tests to walk an application's accessibility tree the way a screen reader does. |
|
chrome
Package chrome is the page side of window chrome: the script that lets a page mark drag regions and the HTTP endpoint the script talks to.
|
Package chrome is the page side of window chrome: the script that lets a page mark drag regions and the HTTP endpoint the script talks to. |
|
dbus
Package dbus is a small, self-contained D-Bus client in pure Go.
|
Package dbus is a small, self-contained D-Bus client in pure Go. |
|
dbus/dbustest
Package dbustest starts a private dbus-daemon for tests.
|
Package dbustest starts a private dbus-daemon for tests. |
|
gohosttest
Package gohosttest builds tiny Go host child programs for tests.
|
Package gohosttest builds tiny Go host child programs for tests. |
|
hosttransport
Package hosttransport is the transport between the shell and a host child process, and between a child and the shell's SDK server.
|
Package hosttransport is the transport between the shell and a host child process, and between a child and the shell's SDK server. |
|
memory
Package memory holds the memory profiles of a Krate Native app and the process-side levers they drive: the Go soft memory limit, returning freed memory to the OS, and an idle reaper that does so when the app is quiet.
|
Package memory holds the memory profiles of a Krate Native app and the process-side levers they drive: the Go soft memory limit, returning freed memory to the OS, and an idle reaper that does so when the app is quiet. |
|
thumb
Package thumb makes PNG thumbnails of captured screens and windows.
|
Package thumb makes PNG thumbnails of captured screens and windows. |
|
Package jsruntime is Krate's embedded JavaScript engine: QuickJS (modernc.org/quickjs, no cgo) with a lazily loaded Web API prelude (fetch, URL, streams, crypto, timers, FormData and more, listed in compat.json), Go-backed fetch and crypto, raw ArrayBuffer transfer instead of base64, and resource limits.
|
Package jsruntime is Krate's embedded JavaScript engine: QuickJS (modernc.org/quickjs, no cgo) with a lazily loaded Web API prelude (fetch, URL, streams, crypto, timers, FormData and more, listed in compat.json), Go-backed fetch and crypto, raw ArrayBuffer transfer instead of base64, and resource limits. |
|
internal/qjs
Package qjs is the JavaScript engine facade of jsruntime.
|
Package qjs is the JavaScript engine facade of jsruntime. |
|
Package krate is the core API that Go host code in a Krate Native app uses: the call context, host signals and coded errors.
|
Package krate is the core API that Go host code in a Krate Native app uses: the call context, host signals and coded errors. |
|
Package memstat measures the memory of processes without cgo.
|
Package memstat measures the memory of processes without cgo. |
|
Package platform is the thin, cgo-free window and webview layer: WebKitGTK on Linux (purego), WKWebView on macOS (purego objc) and WebView2 on Windows (COM over syscall).
|
Package platform is the thin, cgo-free window and webview layer: WebKitGTK on Linux (purego), WKWebView on macOS (purego objc) and WebView2 on Windows (COM over syscall). |
|
caps
Package caps defines the optional capability interfaces of the platform layer.
|
Package caps defines the optional capability interfaces of the platform layer. |
|
darwin
Package darwin implements the macOS window and webview layer with AppKit and WKWebView, reached through purego (no cgo).
|
Package darwin implements the macOS window and webview layer with AppKit and WKWebView, reached through purego (no cgo). |
|
linux
Package linux implements the desktop platform layer on Linux with WebKitGTK, loaded at run time through purego (no cgo).
|
Package linux implements the desktop platform layer on Linux with WebKitGTK, loaded at run time through purego (no cgo). |
|
probe
Package probe holds the result type of the platform webview probe, shared by the per-OS platform packages and krate-shell --doctor.
|
Package probe holds the result type of the platform webview probe, shared by the per-OS platform packages and krate-shell --doctor. |
|
windows
Package windows is the Windows implementation of the Krate desktop platform layer: Win32 windows hosting WebView2 through hand-written COM bindings over syscall, with no cgo and no WebView2Loader.dll requirement.
|
Package windows is the Windows implementation of the Krate desktop platform layer: Win32 windows hosting WebView2 through hand-written COM bindings over syscall, with no cgo and no WebView2Loader.dll requirement. |
|
Package plugin is the Krate Native plugin system: reusable native capabilities written in Go, linked into the shell process of an app that enables them (native.plugins in krate.config.ts).
|
Package plugin is the Krate Native plugin system: reusable native capabilities written in Go, linked into the shell process of an app that enables them (native.plugins in krate.config.ts). |
|
Package scheme is the in-process http.Handler for the app origin: static files, the batched call endpoint, streams and signals described in PROTOCOL.md.
|
Package scheme is the in-process http.Handler for the app origin: static files, the batched call endpoint, streams and signals described in PROTOCOL.md. |
|
Package sdk assembles the UI half of the Krate Native SDK for the process that owns the platform (the shell): window, menu, tray, shortcut, dialog, clipboard, notify and app lifecycle.
|
Package sdk assembles the UI half of the Krate Native SDK for the process that owns the platform (the shell): window, menu, tray, shortcut, dialog, clipboard, notify and app lifecycle. |
|
all
Package all wires the whole Krate Native SDK into a scheme.Registry.
|
Package all wires the whole Krate Native SDK into a scheme.Registry. |
|
app
Package app has the application lifecycle: quit, relaunch, capability checks, single-instance enforcement and deep links.
|
Package app has the application lifecycle: quit, relaunch, capability checks, single-instance enforcement and deep links. |
|
automation
Package automation exposes the engine's remote debugging endpoint and, on WebView2, in-process DevTools protocol commands, for tests and debugging sessions.
|
Package automation exposes the engine's remote debugging endpoint and, on WebView2, in-process DevTools protocol commands, for tests and debugging sessions. |
|
badge
Package badge puts a badge and a progress indicator on the app's icon in the dock, taskbar or launcher.
|
Package badge puts a badge and a progress indicator on the app's icon in the dock, taskbar or launcher. |
|
chrome
Package chrome controls window chrome beyond the basics of package window: title bar styles and drag regions, backdrops and vibrancy, the caption buttons over a hidden title bar, traffic lights, document state, sheets, native tabs, taskbar thumbnail buttons and jump lists, the share menu, and how the app appears in the dock.
|
Package chrome controls window chrome beyond the basics of package window: title bar styles and drag regions, backdrops and vibrancy, the caption buttons over a hidden title bar, traffic lights, document state, sheets, native tabs, taskbar thumbnail buttons and jump lists, the share menu, and how the app appears in the dock. |
|
clipboard
Package clipboard reads and writes the system clipboard: text, an image as PNG bytes, and a list of files.
|
Package clipboard reads and writes the system clipboard: text, an image as PNG bytes, and a list of files. |
|
cookies
Package cookies reads and writes the cookies of the webview and clears its site data and cache.
|
Package cookies reads and writes the cookies of the webview and clears its site data and cache. |
|
crash
Package crash reports crashes of the app: Go panics and fatal errors in the shell or the Go host, and crashes of the webview's render process.
|
Package crash reports crashes of the app: Go panics and fatal errors in the shell or the Go host, and crashes of the webview's render process. |
|
db
Package db is the SQLite database of the Krate Native SDK, on the pure Go driver modernc.org/sqlite (no cgo).
|
Package db is the SQLite database of the Krate Native SDK, on the pure Go driver modernc.org/sqlite (no cgo). |
|
dialog
Package dialog shows native file and message dialogs.
|
Package dialog shows native file and message dialogs. |
|
downloads
Package downloads controls the downloads a page starts: a link with the download attribute, a blob URL, a navigation to a file response.
|
Package downloads controls the downloads a page starts: a link with the download attribute, a blob URL, a navigation to a file response. |
|
extension
Package extension loads the browser extensions an app packages (native.extensions) into its webviews.
|
Package extension loads the browser extensions an app packages (native.extensions) into its webviews. |
|
fs
Package fs is scoped file access for UI and TypeScript host code.
|
Package fs is scoped file access for UI and TypeScript host code. |
|
internal/bridge
Package bridge carries SDK operations to the process that owns the platform.
|
Package bridge carries SDK operations to the process that owns the platform. |
|
internal/codec
Package codec has the small helpers the hand-written wire codecs of the SDK share: a reader with a sticky error and a few common shapes.
|
Package codec has the small helpers the hand-written wire codecs of the SDK share: a reader with a sticky error and a few common shapes. |
|
internal/dbusiface
Package dbusiface is the minimal D-Bus client surface the UI half of the SDK needs, over the shared internal/dbus client (see Client).
|
Package dbusiface is the minimal D-Bus client surface the UI half of the SDK needs, over the shared internal/dbus client (see Client). |
|
internal/fakeplat
Package fakeplat is an in-memory platform.App with every optional capability, for tests of the SDK layers above the platform.
|
Package fakeplat is an in-memory platform.App with every optional capability, for tests of the SDK layers above the platform. |
|
internal/glue
Package glue holds the small helpers that SDK registration code shares: argument reading with uniform "bad_args" errors, and result encoding.
|
Package glue holds the small helpers that SDK registration code shares: argument reading with uniform "bad_args" errors, and result encoding. |
|
internal/jsonwire
Package jsonwire carries ordinary Go values over the SDK call protocol as JSON, for the areas whose payloads are small structs (badge, screen, power, login, theme, crash).
|
Package jsonwire carries ordinary Go values over the SDK call protocol as JSON, for the areas whose payloads are small structs (badge, screen, power, login, theme, crash). |
|
internal/picked
Package picked connects the file dialogs to the fs scope without either importing the other (each can be left out of a build): the fs area adds a listener, the dialog area reports what the user chose.
|
Package picked connects the file dialogs to the fs scope without either importing the other (each can be left out of a build): the fs area adds a listener, the dialog area reports what the user chose. |
|
internal/sdktest
Package sdktest drives a scheme.Registry through the real call endpoint, so SDK tests see exactly what the UI would.
|
Package sdktest drives a scheme.Registry through the real call endpoint, so SDK tests see exactly what the UI would. |
|
internal/sessionbus
Package sessionbus shares one session-bus connection among the SDK areas that talk to desktop services (notifications, tray, portals).
|
Package sessionbus shares one session-bus connection among the SDK areas that talk to desktop services (notifications, tray, portals). |
|
kv
Package kv is a small key-value store in the app's SQLite database (package db, file app.db, table kv).
|
Package kv is a small key-value store in the app's SQLite database (package db, file app.db, table kv). |
|
login
Package login registers the app to start when the user logs in.
|
Package login registers the app to start when the user logs in. |
|
media
Package media is the camera, microphone, screen capture and location area of the Krate Native SDK.
|
Package media is the camera, microphone, screen capture and location area of the Krate Native SDK. |
|
menu
Package menu builds the application menu bar and context menus.
|
Package menu builds the application menu bar and context menus. |
|
net
Package sdknet is the network area of the Krate Native SDK for Go host code.
|
Package sdknet is the network area of the Krate Native SDK for Go host code. |
|
notify
Package notify posts desktop notifications.
|
Package notify posts desktop notifications. |
|
offscreen
Package offscreen renders pages that no one is looking at and streams their frames: the closest honest equivalent of Electron's offscreen rendering.
|
Package offscreen renders pages that no one is looking at and streams their frames: the closest honest equivalent of Electron's offscreen rendering. |
|
os
Package sdkos is the os area of the Krate Native SDK: per-app directories, OS information, opening URLs in the default handler and secrets in the OS credential store.
|
Package sdkos is the os area of the Krate Native SDK: per-app directories, OS information, opening URLs in the default handler and secrets in the OS credential store. |
|
page
Package page controls the web contents of one view: the print dialog and PDF output, find in page, zoom and capturing the view as an image.
|
Package page controls the web contents of one view: the print dialog and PDF output, find in page, zoom and capturing the view as an image. |
|
permission
Package permission defines the SDK permission names, parses the app.json "permissions" list into a Set and gates registration of UI-facing ids.
|
Package permission defines the SDK permission names, parses the app.json "permissions" list into a Set and gates registration of UI-facing ids. |
|
port
Package port connects two ends of a channel across windows, views and workers without host code relaying each message.
|
Package port connects two ends of a channel across windows, views and workers without host code relaying each message. |
|
power
Package power reports power state and idle time, delivers suspend, resume, lock, unlock, battery and idle events, and holds sleep blockers.
|
Package power reports power state and idle time, delivers suspend, resume, lock, unlock, battery and idle events, and holds sleep blockers. |
|
remote
Package remote shows web pages from the internet in views and windows of the app, without giving them anything of the app.
|
Package remote shows web pages from the internet in views and windows of the app, without giving them anything of the app. |
|
screen
Package screen lists displays, finds the display a window is on, reports display changes and centers windows.
|
Package screen lists displays, finds the display a window is on, reports display changes and centers windows. |
|
shortcut
Package shortcut registers global (system-wide) keyboard shortcuts.
|
Package shortcut registers global (system-wide) keyboard shortcuts. |
|
theme
Package theme reads the system appearance (light or dark, high contrast), reports changes, and makes the app's native title bars follow it or a fixed choice.
|
Package theme reads the system appearance (light or dark, high contrast), reports changes, and makes the app's native title bars follow it or a fixed choice. |
|
tray
Package tray puts an icon in the system tray (notification area).
|
Package tray puts an icon in the system tray (notification area). |
|
updater
Package sdkupdater is the updater area of the Krate Native SDK: it exposes the update flow of package updater to the UI as krate/updater.* ids under the "updater" permission.
|
Package sdkupdater is the updater area of the Krate Native SDK: it exposes the update flow of package updater to the UI as krate/updater.* ids under the "updater" permission. |
|
window
Package window opens and controls application windows.
|
Package window opens and controls application windows. |
|
worker
Package worker starts background worker processes from host code or a page: the counterpart of Electron's utilityProcess.fork.
|
Package worker starts background worker processes from host code or a page: the counterpart of Electron's utilityProcess.fork. |
|
Package shell is the Krate Native shell as a library: it loads an app directory (see README.md), serves the built UI on the app origin, runs the app's TypeScript host code in-process on QuickJS, runs its Go host code in a separate child process when it has any, and opens the window.
|
Package shell is the Krate Native shell as a library: it loads an app directory (see README.md), serves the built UI on the app origin, runs the app's TypeScript host code in-process on QuickJS, runs its Go host code in a separate child process when it has any, and opens the window. |
|
Package toastscheme holds the pure parts of Windows toast activation after an app has quit: the URL scheme a toast click launches, the arguments it carries and the registry keys and manifest entries that register the scheme.
|
Package toastscheme holds the pure parts of Windows toast activation after an app has quit: the URL scheme a toast click launches, the arguments it carries and the registry keys and manifest entries that register the scheme. |
|
Package updater checks a feed for a newer version of the running app, downloads and verifies the update, replaces the installed files and relaunches.
|
Package updater checks a feed for a newer version of the running app, downloads and verifies the update, replaces the installed files and relaunches. |
|
Package wire implements the frame codec of the host call protocol (see PROTOCOL.md).
|
Package wire implements the frame codec of the host call protocol (see PROTOCOL.md). |
Click to show internal directories.
Click to hide internal directories.