Repository F# setup
open System
open System.IO
open System.Threading
open System.Threading.Tasks
open Axial
open Axial.Console
open Axial.FileSystem
open Axial.Hosting
open Axial.Hosting.Browser
open Axial.Hosting.Node
open Axial.State
open Axial.Telemetry
open Axial.Telemetry.JavaScript

Platform services

Platform services expose host capabilities that are runtime-scoped rather than application authority. They support Axial Core rather than defining separate documentation contexts.

Other packages build on these capabilities and have their own guides and API references:

  • Console: standard streams, redirection, terminal control, and test doubles.
  • FileSystem: file and directory access, streaming traversal, atomic writes, and the append log.
  • Configuration: layered environment, argument, JSON, browser, and host configuration.
  • WebSocket: typed WebSocket client sessions.
  • Process: external process composition and streaming.
  • HTTP: typed requests, responses, and reliability.
Service Wraps Axial API
Clock DateTimeOffset.UtcNow Current time and derived Unix-time readers
Logging Host logging Structured messages and exception-preserving logging
Randomness and GUIDs System.Random, Guid.NewGuid() Explicit random values, byte generation, and GUID creation
Culture, time zone, and formatting CultureInfo, TimeZoneInfo Explicit culture and zone values with pure formatting
Using existing services Application authority and runtime values Compose explicit dependencies with runtime clock, random, GUID, and log values
Verified
open Axial

A workflow declares the authority it needs. Runtime services such as Clock.now need no environment member; package services such as Console.writeLine constrain the environment to their IHas* contract.

In this section

  1. Platform-service bundle: clock, logging, randomness, culture, time zone, and formatting.
  2. Using existing services: compose application dependencies with runtime values.

Telemetry instruments the runtime rather than defining a workflow dependency. Hosting supplies environments and process/server lifecycle integration.