ESC
Type to search...
S
Soli Docs

Built-in Functions Reference

Complete reference for all 170+ built-in functions in Soli. From I/O and string manipulation to HTTP requests, cryptography, testing utilities, caching, rate limiting, and security headers.

Category Overview

Core Functions

I/O operations, type conversion, array/hash manipulation, string functions, math utilities, and file operations.

System Functions

Execute shell commands with System.run() and backtick syntax. Returns async results with stdout, stderr, and exit_code.

HTTP Functions

HTTP client for GET, POST, PUT, PATCH, DELETE requests with JSON support and parallel requests.

S3 Functions

Amazon S3 and S3-compatible storage for buckets, objects, and file operations.

SOAP Class

SOAP web service calls, XML envelope wrapping, parsing, and XML escaping.

JSON Functions

Parse and stringify JSON data.

Markdown Class

Convert Markdown text to HTML with tables, strikethrough, and task list support.

Cryptography Functions

Password hashing with Argon2, X25519 key exchange, Ed25519 signatures.

JWT Functions

Create, verify, and decode JSON Web Tokens for authentication.

Regex Functions

Regular expression matching, finding, replacing, splitting, and capturing.

Environment Functions

Read, set, and manage environment variables with .env file support.

DateTime Functions

Date/time parsing, formatting, arithmetic, and comparison using Unix timestamps.

Validation Functions

Schema-based validation with the V class and chainable validators.

Session Functions

Server-side session management for user state.

Testing Functions

Test DSL with describe/it blocks, assertions, and factory functions.

I18n Functions

Internationalization with translations, pluralization, and locale-aware formatting.

Cache Functions

Persistent caching backed by SoliKV with automatic TTL expiration.

KV Store

Full-featured key-value store with strings, counters, lists, sets, and hashes via SoliKV.

Rate Limiting Functions

Sliding window rate limiter for API protection and abuse prevention.

Security Headers Functions

Automatic security header injection including CSP, HSTS, X-Frame-Options, and more.

File Upload Functions

Multipart form parsing and file uploads to SolidB blob storage.

WebSocket Functions

WebSocket messaging, presence tracking, and room management for real-time applications.

Start Exploring

Begin with Core Functions for the most commonly used utilities.