---
title: "Standard library | Grafana Alloy documentation"
description: "The standard library is a list of functions used in expressions when assigning values to attributes"
---

# Standard library

The standard library is a list of functions you can use in expressions when assigning values to attributes.

All standard library functions are [pure functions](https://en.wikipedia.org/wiki/Pure_function). The functions always return the same output if given the same input.

- [array](/docs/alloy/latest/reference/stdlib/array/)
- [coalesce](/docs/alloy/latest/reference/stdlib/coalesce/)
- [constants](/docs/alloy/latest/reference/stdlib/constants/)
- [convert](/docs/alloy/latest/reference/stdlib/convert/)
- [encoding](/docs/alloy/latest/reference/stdlib/encoding/)
- [file](/docs/alloy/latest/reference/stdlib/file/)
- [json\_path](/docs/alloy/latest/reference/stdlib/json_path/)
- [string](/docs/alloy/latest/reference/stdlib/string/)
- [sys](/docs/alloy/latest/reference/stdlib/sys/)
