Reference

Capabilities

Built-in std modules with straight use syntax.

Summary

Point ships built-in capabilities — std modules you import with one word:

use http
use json
use time

Each shorthand resolves to use std.<name>. Run point capabilities to list them.

Frontend is not a capability. Views, pages, layouts, and navigation are native App blocks — you write them directly in .point, not via capabilities. Capabilities cover host I/O and std batteries (HTTP, SQL, crypto, AI, files, etc.).

Syntax

FormMeaning
capabilities http jsonOne-line import for multiple built-ins
use httpSingle built-in HTTP capability (std/http.point)
use std.httpExplicit std import (same module)
use Billing from "./billing.point"Local file import

Use lowercase names for built-ins. PascalCase names without from are package modules (for example lockfile packages added with point add).

Discover

point capabilities
point capabilities --json

JSON output uses schema point.capabilities.v1 for agent scripts.

Catalog

CapabilitySummary
textText parse, format, and pad helpers
jsonJSON parse and stringify
httpHTTP fetch and route test assertions
timeInstant, duration, and timezone formatting
fsFilesystem read and write actions
envEnvironment variable access
pathPath join and basename helpers
processSpawn and run host processes
ptyPseudo-terminal subprocess spawn and line streaming
cryptoHashing, HMAC, and JWT helpers
authBearer tokens, JWT auth checks, unauthorized responses
yamlYAML parse and stringify
streamStream route helpers
sqlSQLite query actions and schema helpers
aiOpenAI and Anthropic complete/stream actions
moneyCents-based money formatting

Example

module CapabilitiesDemo

use http
use json

calculation pass through
  input value: Text
  output result: Text
  result is value

action fetch snapshot
  input url: Text
  output body: Text or Error
  touches network
  return await httpGetResponse(url)

See examples/capabilities-demo.point in the repository.

Expand beyond built-ins

  • `point add npm:…` — third-party Point packages via lockfile
  • `use Module from "./file.point"` — your modules
  • `command` / `pipeline` — runnable entrypoints agents and humans invoke

See also