# Lusia > Write UI in one file. Update it with variables. Built for Bun. Version: 0.1.3-beta-1 ## Start here - [Docs index](docs/README.md): every API page, error code and config option. ## API - [variable()](docs/api/variable.md): Creates a value that updates the page when it updates. - [variable.compute()](docs/api/variable-compute.md): Creates a read-only value derived from other variables. - [variable.autoRun()](docs/api/variable-auto-run.md): Runs fn now, then again when a variable or computed variable it read updates. - [variable.watch()](docs/api/variable-watch.md): Runs fn when one of the listed variables updates. - [count.onUpdate() on one variable](docs/api/variable-instance-on-update.md): Runs fn with the new and the old value after each update. - [listen()](docs/api/listen.md): Runs a function on a DOM event, or on an EVENT such as view or scroll. - [keepRunning()](docs/api/keep-running.md): Keeps the listeners started inside it running after the component detaches. - [props()](docs/api/props.md): Declares the props a component accepts, with defaults. - [attach()](docs/api/attach.md): Mounts a component into an element on the page. - [detach()](docs/api/detach.md): Removes a mounted component and stops its updates. - [onAttach()](docs/api/on-attach.md): Runs code after the component is placed on the page. - [onDetach()](docs/api/on-detach.md): Runs code when the component is detached from the page. - [lusia.config](docs/api/config.md): One file sets the app-wide defaults: animate timing and the build, dev and lint settings. - [controller()](docs/api/controller.md): Drives animations by hand. One controller can drive several items. - [interpolate()](docs/api/interpolate.md): Blends two values. The same engine that animate uses. - [setConfig()](docs/api/set-config.md): Sets runtime settings for a component, or for the whole app. - [Variable](docs/api/variable-type.md): The type returned by variable(). - [ComputedVariable](docs/api/computed-variable-type.md): The type returned by variable.compute() and props(). - [Component](docs/api/component.md): A compiled .lusia component. Pass it to attach(). - [Instance](docs/api/instance.md): A mounted component, returned by attach(). - [Props](docs/api/props-type.md): The props object passed to a component. - [AnimateItem](docs/api/animate-item.md): One animation in an animate value, with its own trigger and timing. - [options](docs/api/animate-options.md): Options for the trigger an item uses. Each trigger accepts its own keys. - [animateSpace](docs/api/animate-space.md): Slides the siblings into the space an element takes or frees, instead of a jump. - [Animate](docs/api/animate-type.md): The value of the animate attribute. - [Keyframes](docs/api/keyframes-type.md): The keys of one animation. Each key sets its styles, and optionally its easing. - [{expr}](docs/api/expr.md): Puts a TypeScript expression into text or an attribute. - [