Introduction

Portable Scripting
for Modern Apps

KodiScript is a lightweight, embeddable scripting language with cross-platform SDKs for Go, Kotlin, TypeScript, Dart, and PHP.

Get Started →

Why Choose KodiScript?

KodiScript is designed for developers who need to embed custom scripting logic into their applications without the overhead of full-blown runtimes. Whether you’re building a workflow engine, a rule-based system, or a user-customizable platform, KodiScript provides a safe, sandboxed execution environment.

Cross-Platform Script Interpreter

Embed the same scripting language across your entire stack:

  • Go – Native SDK for backend services
  • Kotlin – JVM support for Android and server-side
  • TypeScript – Browser and Node.js environments
  • Dart – Flutter mobile and web applications
  • PHP – Web backends and CMS integrations

Code Example

// Named functions, ternaries, and string templates
fn greet(name) {
    return name == "" ? "Hello, Stranger!" : "Hello, ${name}!"
}
print(greet("Developer"))
 
// Method chaining and higher-order helpers
let nums = [5, 3, 8, 1, 3]
print(nums.unique().sort())              // [1, 3, 5, 8]
print(nums.filter(fn(x){ x > 3 }).sum()) // 13
 
// Destructuring and null-safety
let {status} = {status: "online"}
print(status ?: "offline")               // online

Language Highlights

A small language that still feels complete:

All five SDKs — Go, Kotlin, TypeScript, Dart, and PHP — are at full feature parity, verified against a shared cross-implementation compliance suite.

Use Cases

  • Workflow Engines – Let users define custom automation logic
  • Rule-Based Systems – Configurable business rules
  • Template Processing – Dynamic content generation
  • Game Scripting – Modding and custom game logic
  • API Transformations – Transform data between services