# Go libraries

URL: https://tuios.dev/docs/libraries

> Parts of tuios that you can use in your own Go programs, each a Go module of its own under a tuios.dev import path.

Some parts of tuios are Go modules of their own. You can import one without the rest of tuios. Each module has a `tuios.dev` import path. The code is in the [tuios repository](https://github.com/Gaurav-Gosain/tuios), in a folder with the same name.

*[An interactive figure goes here. Open the page to use it.](https://tuios.dev/docs/libraries)*

## How they fit together

*[An interactive figure goes here. Open the page to use it.](https://tuios.dev/docs/libraries)*

- loom draws [tml](https://tuios.dev/docs/libraries/tml) documents, and uses [plot](https://tuios.dev/docs/libraries/plot) for the charts.
- [vt](https://tuios.dev/docs/libraries/vt) reads OSC 7501 reports with [progstatus](https://tuios.dev/docs/libraries/progstatus).
- [shot](https://tuios.dev/docs/libraries/shot) turns cells into pictures: a vt screen, or loom's and plot's cells.
- [sketch](https://tuios.dev/docs/libraries/sketch) uses plot to draw XY charts as text.
- [swatch](https://tuios.dev/docs/libraries/swatch) stands alone.
- [acp](https://tuios.dev/docs/libraries/acp) stands alone. It needs only the standard library.
- [harness](https://tuios.dev/docs/libraries/harness) stands alone. See [agents](https://tuios.dev/docs/agents) for how tuios uses it.

tuios uses all ten. Each page shows pictures that the docs build draws from real code with these libraries.

## Install a library

```bash
go get tuios.dev/progstatus
go get tuios.dev/vt
go get tuios.dev/swatch
go get tuios.dev/shot
go get tuios.dev/tml
go get tuios.dev/loom
go get tuios.dev/plot
go get tuios.dev/sketch
go get tuios.dev/acp
go get tuios.dev/harness
```

The go command asks tuios.dev where the code is. Go 1.25 or later can fetch a library directly. With the default module proxy, any Go version can fetch it.

## Versions

Each library has its own versions. A library tag has the folder name as a prefix, such as `progstatus/v0.1.0`. The libraries are at v0, so the API can change between minor versions.

Report a problem in the [tuios issue tracker](https://github.com/Gaurav-Gosain/tuios/issues).
