> For the complete documentation index, see [llms.txt](https://vistajs.gitbook.io/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vistajs.gitbook.io/home/introduction.md).

# Introduction

{% hint style="info" %}
**VistaJS is in beta!** We would appreciate your feedback and contributions.

Feel free to try it out and share your thoughts with us!\
[Report issues or suggest improvements here](https://github.com/danilolmc/vistajs/issues).
{% endhint %}

<div align="left"><figure><img src="/files/1jkMdQfhzAGSOZGtNSRR" alt=""><figcaption></figcaption></figure></div>

**VistaJS** is a compact JavaScript framework for building web interfaces, offering built-in support for TypeScript and features like signals, computed values, effects, routing, testing and much more, all powered by [Vite](https://vite.dev/).

```typescript

import { signal } from 'vistajs/core';
import { Component, html } from 'vistajs/dom';
import { boostrap } from 'vistajs/boot';

const counter = Component('app-counter', () => {
  const counter = signal(0);

  const increment = () => {
    counter.set(counter() + 1);
  };

  return () => html`<button onclick=${increment}>${counter()}</button>`;
});

const root = document.querySelector('#app') as Element;

boostrap(root, counter);

```

**VistaJS features**

* Signals
* Effects
* Computed Values
* Routing
* Lazy Loading
* CSS Modules
* Functional Components

Take a look on our quickstart to setup your first VistaJS project! 😉


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://vistajs.gitbook.io/home/introduction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
