
These terms describe different ways a feature reaches your Vary program. The quickest way to tell them apart is to look at how you use them.

| Feature | How you use it | Who provides it | Example |
|---------|----------------|-----------------|---------|
| Built-in function | Call it without an import | The compiler and runtime | `len(items)` |
| Standard library | Import a module shipped with Vary | The Vary installation | `import json` |
| Library | Import a module from a separate collection of Vary code | Your project or a bundled library | `import ai` |
| DSL | Write domain-specific syntax that the compiler understands | The Vary language | `test "works" { observe result == 2 }` |

## Built-in functions

Built-ins such as `len()`, `range()`, and `print()` are available without an import. They are part of the core callable surface understood by the compiler. See the [built-in function reference](/docs/builtins/) for the list.

Some familiar operations have moved into modules. For example, use `import fs` for file operations and `import process` for subprocesses. An operation being supplied with the compiler does not necessarily make it a built-in function: whether you need an import is the useful distinction in source code.

## Standard library

The standard library, or **stdlib**, is Vary's collection of general-purpose modules shipped with the toolchain. You import the module you need, such as `json`, `fs`, `http`, or `time`:

```vary-snippet
import json

let value = Json.parse("{\"ready\": true}").unwrap()
```

See the [standard library index](/docs/stdlib/) for its modules. A stdlib function is still a function; “stdlib” describes where its module comes from, while “built-in” describes the fact that a call needs no import.

## Libraries

A library is reusable code exposed as importable modules. Your project can have its own modules, and a Vary installation can also include a **bundled library** outside the stdlib. Bundled libraries use ordinary Vary source and a declared import namespace. For example, the bundled `ai` library is imported through `ai`; its current maturity and API are documented in the [AI library guide](/docs/ai-library/).

The standard library is itself a library in the broad sense. In these docs, **bundled library** means a separately cataloged collection under `libraries/`, distinct from the core `stdlib/` modules. Bundling does not imply that an API has the same maturity as the stdlib. See [modules and bundled library namespaces](/docs/modules/#bundled-library-namespaces) for import resolution details.

## DSLs

A domain-specific language, or **DSL**, is syntax for a particular task. Vary's embedded DSLs are recognized by the parser and checked by the compiler. The test DSL's `test` and `observe` forms, for example, are syntax rather than functions you import:

```vary-snippet
test "addition" {
    observe 1 + 1 == 2
}
```

The [embedded DSL guide](/docs/embedded-dsls/) covers SQL, HTTP, logging, and other compiler-supported forms. A DSL can work alongside a library or stdlib module: syntax declares or checks a domain operation, while imported modules can provide values and runtime helpers for it. A fluent API made of ordinary function calls is still library code unless the compiler recognizes special syntax for it.

## Choosing where to look

If the code starts with an `import`, look up that module in the [stdlib index](/docs/stdlib/), the [bundled library documentation](/docs/modules/#bundled-library-namespaces), or your project's modules. If a call needs no import, check [built-in functions](/docs/builtins/). If it uses special forms such as `test`, `observe`, or `query`, check [embedded DSLs](/docs/embedded-dsls/).
