Skip to content

API Reference

Starkite exposes Go's standard library as type-safe, scriptable Starlark modules. All modules are auto-loaded in every .star script — no import statement, no load() call.

For the auto-loading mechanism and the try_ error pattern that every function supports, see Modules and Language.

Foundations

System primitives, control flow, and built-in utilities every script needs.

  • os


    Environment, process info, command execution.

  • fs


    Filesystem operations and Path objects.

  • fmt


    Formatted printing — printf, sprintf, errorf.

  • io


    Interactive user input — confirm, prompt.

  • vars


    Typed variable access — var_str, var_int, var_list, …

  • runtime


    Runtime and platform information.

  • log


    Structured logging with slog backend.

  • test


    Testing assertions and helpers.

  • inventory


    Inventory management — file, list, filter, group_by, merge.

  • concur


    Concurrent execution — map, each, exec, worker pools.

  • retry


    Retry logic with fixed delay and exponential backoff.

Network

Remote services — HTTP and SSH.

  • http


    HTTP client, server, and URL builder.

  • ssh


    Remote command execution and SCP file transfer.

Data

Database connectivity, encoding, serialization, text processing, and value utilities.

  • sql


    SQL databases (SQLite, PostgreSQL, MySQL): query, exec, transactions, batch.

  • json


    JSON encoding, decoding, and file I/O.

  • yaml


    YAML encoding, decoding, and file I/O.

  • csv


    CSV reading, writing, and file I/O.

  • gzip


    Gzip compression and decompression.

  • zip


    ZIP archive reading and writing.

  • base64


    Base64 encoding and decoding.

  • hash


    Cryptographic hash functions.

  • strings


    String utility functions.

  • regexp


    Regular expression matching and replacement.

  • template


    Go text/template rendering.

  • time


    Time, duration, and arithmetic.

  • uuid


    UUID generation.

  • table


    ASCII table rendering.

Cloud

Kubernetes and cloud-native resource management — cloud edition (kitecloud or kite).

  • k8s


    Full Kubernetes API — CRUD, kubectl-equivalents, typed constructors, controllers, webhooks.

AI

LLM clients and Model Context Protocol — AI edition (kiteai or kite).

  • ai


    Multi-provider LLM client with chat, tools, streaming, and structured output.

  • mcp


    Model Context Protocol — mcp.serve() server and mcp.connect() client.