@scramjet/sth
v2.0.0
Published
Scramjet Transform Hub is a deployment and execution platform. Once installed on a server, it will allow you to start your programs and keep them running on a remote machine. You will be able to start programs in the background or connect to them and see
Downloads
447
Readme
@scramjet/sth
Scramjet Transform Hub (STH) is the core runtime process that deploys, executes, and monitors Transform Sequences on a host. It is the primary server component of the Scramjet Transform Hub platform.
When to use
Install and run @scramjet/sth on any machine where you want to execute Sequences — a development workstation, a production server, an edge device, or a cloud VM. The Hub manages Sequence lifecycle, inter-process communication via Topics, health monitoring, and adapter-based runner execution (process, Docker, or Kubernetes).
For multi-host orchestration, connect STH instances to a Manager or MultiManager.
Quick start
Install globally:
npm install -g @scramjet/sthStart the Hub (defaults to port 8000 with automatic adapter detection):
scramjet-transform-hubWith the CLI installed, deploy a sequence from another terminal:
si sequence pack /path/to/sequence -o sequence.tar.gz
si sequence deploy sequence.tar.gzConfiguration
STH accepts command-line flags and a configuration file. Common options:
--port,-P— API port (default: 8000)--hostname,-H— API bind address (default: 0.0.0.0)--log-level,-L— log level (trace, debug, info, warn, error)--cpm-url,-C— Manager URL for Hub-to-Manager connectivity--runtime-adapter— runner adapter:process,docker, orkubernetes--config,-c— path to JSON configuration file
Run scramjet-transform-hub --help for the full option listing.
Stability
This package is stable. The core Hub runtime contract is part of the public API surface.
See also
- Transform Hub overview for architecture and workflow.
- Transform Hub configuration for detailed configuration reference.
- Build and run workflows for Sequence lifecycle details.
- Manager overview for multi-host orchestration.
Install
npm install @scramjet/sthImport
import { /* ... */ } from "@scramjet/sth";Documentation
See the package docs for full documentation.
