# Starlark

> A Python dialect designed as a configuration language, made for Bazel

Source: https://talira.ai/catalog/starlark-wvv3bmfb
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Programming language
- Categories: [developer tools / programming languages / configuration](https://talira.ai/categories/developer-tools/programming-languages/configuration)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Typing: Dynamic[^2]
- Runs as: Interpreted[^2]
- Memory: Garbage collected[^2]
- Paradigms: Configuration[^2]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

Starlark (formerly Skylark) is a small configuration language, a dialect of Python, designed at Google for the [Bazel](https://talira.ai/catalog/bazel-5qvenp12.md) build system, where it's the language of BUILD files and of the macros and rules that extend Bazel. Like Python it's dynamically typed, with high-level data types, first-class functions and garbage collection, but evaluation is deterministic and hermetic (code can't reach the file system, network or clock, so untrusted code is safe to run) and modules load in parallel, with shared data made immutable. An interpreter is usually embedded in a larger application that adds its own functions and types. This listing covers the language and its specification, maintained in the bazelbuild/starlark repository; implementations include Bazel's own in Java, starlark-go (Go) and starlark-rust (Rust, used by [Buck2](https://talira.ai/catalog/buck2-6ztz6w7z.md)). Apache-2.0 licensed.

## Links

- GitHub: https://github.com/https://github.com/bazelbuild/starlark
- Docs: https://bazel.build/rules/language

## Libraries for Starlark

Talira doesn't list any yet.

## Problems it solves

- a safe scripting language to embed in my application for user configuration
- let users write config with functions and loops but no file or network access
- a Python-like language for build files
- which embeddable config language should my tool use

## Features

- Python-like syntax
- deterministic evaluation
- hermetic execution, safe for untrusted code
- parallel module loading with immutable shared data
- designed for embedding: the host adds its own functions and types
- a written specification with several implementations (Java, Go, Rust)

## Trust

Overall: 0.42 out of 1.
Signals: maintenance 0.27, adoption 0.70, momentum 0.46, community 0.61, backing 0.55, extensibility 0.00.

- 3.1k GitHub stars
- 32 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

Warnings:

- last commit 9 months ago

## Alternatives

- [Lua](https://talira.ai/catalog/lua-0jn3nbkb.md): A powerful, efficient, lightweight, embeddable scripting language
- [Pkl](https://talira.ai/catalog/pkl-85gnh4vy.md): A configuration-as-code language with rich validation and tooling
- [CUE](https://talira.ai/catalog/cue-3grjf0fr.md): Validate, define, and use dynamic and text-based data
- [Jsonnet](https://talira.ai/catalog/jsonnet-j43k4twn.md): A configuration language for app and tool developers
- [HCL](https://talira.ai/catalog/hcl-pczpmjqa.md): The HashiCorp configuration language
- [Yaegi](https://talira.ai/catalog/yaegi-g7yjkstg.md): Go interpreter in pure Go for scripts, plugins and embedded shells

## Sources

[^1]: https://github.com/bazelbuild/starlark/blob/master/LICENSE (checked 24 Nov 2026)
[^2]: https://github.com/bazelbuild/starlark (checked 24 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
