Libraries
Quick Reference: Library Cheat Sheet
Scriptling provides 60+ libraries organized by capability.
Libraries
- Data Formats: JSON, YAML, TOML
- Text Processing: Regex, strings, HTML, diffing
- Math & Numbers: Math, random, statistics, hashing, UUID
- Collections & Iteration: Collections, itertools, functools
- Time & System: Time, datetime, I/O, platform, URL handling
- File System: OS, paths, binary I/O, glob
- HTTP & Process: HTTP requests, subprocesses, system, logging, secrets
- Scriptling Libraries: AI, MCP, messaging, networking, runtime, utilities
Registration
Every library is available by default in the CLI and MCP server, no setup needed there.
When embedding in Go, you register libraries explicitly. Each library page is marked Standard library or Extended library:
- Standard libraries (the 23 libraries also documented under Data Formats, Text Processing, Math & Numbers, Collections & Iteration, and Time & System) are all registered together with
stdlib.RegisterAll(p). - Extended libraries (everything under File System, HTTP & Process, and Scriptling Libraries) must be registered individually, and some take extra arguments such as
allowedPathsto restrict filesystem access.
See Library Registration for the full list of registration calls, and the Security Guide for which libraries carry filesystem, network, process, or secrets risk.
Getting Help
Use the help() function within scripts:
import json
help(json)