Documentation
Scriptling is a minimal, sandboxed interpreter for Python-like scripting designed for embedding in Go applications. Use the sections below to get started, integrate with Go, or explore tutorials.
Choose by task
- Learn the language: Start with the Language Guide, then use its syntax, types, control-flow, function, and class references.
- Use the command line: Follow the CLI Guide for scripts, packages, policies, and runtime options.
- Embed Scriptling in Go: Use Go Integration to create an interpreter and expose host functions, classes, and libraries.
- Run a server: Choose the CLI guide for HTTP, JSON-RPC, MCP, or plugin server modes.
- Find a library: Browse the Library Reference by capability and check registration requirements for your runtime.
- Build or use plugins: Start with the Plugins Guide for supported plugin models and host integration.
- Connect to a database: Choose a driver or ORM from the Database Libraries.
Guides
Getting Started
Install the CLI or embed Scriptling in Go
CLI Guide
Running scripts, HTTP server mode, MCP server mode, and packages
Go Integration
Embed the interpreter, register functions, and create custom libraries
Security Guide
Sandbox configuration, path restrictions, and network access control
Plugins
Extend Scriptling with Go, C, PHP, or any JSON-RPC language
LLM Script Generation Guide
Guidance for generating accurate Scriptling code with LLMs
Tutorials
Step-by-step guides for real-world scenarios:
- Fetching and Processing API Data: HTTP requests, JSON processing, and file output
- Embedding a Rules Engine: Go integration with custom functions
- Building an MCP Tool Server: Custom tools for AI assistants
Reference
For language syntax, built-in functions, and library APIs, see the Reference section.