# AI Context

ForesightJS provides an `llms.txt` file following the [llms.txt specification](https://llmstxt.org/) to help LLMs understand and work with the library effectively.

## What is llms.txt?[​](#what-is-llmstxt "Direct link to What is llms.txt?")

The `llms.txt` file is a standardized way to provide LLM-friendly information about a project. It contains:

* A concise overview of what ForesightJS does
* Links to key documentation sections in markdown format
* Essential information for understanding the API and usage patterns

## Using ForesightJS's llms.txt[​](#using-foresightjss-llmstxt "Direct link to Using ForesightJS's llms.txt")

### Quick Access[​](#quick-access "Direct link to Quick Access")

* **Main file:** [foresightjs.com/llms.txt](https://foresightjs.com/llms.txt)
* **Full context:** [foresightjs.com/llms-full.txt](https://foresightjs.com/llms-full.txt)

### Example Prompt[​](#example-prompt "Direct link to Example Prompt")

```
Read the ForesightJS documentation from: https://foresightjs.com/llms.txt

I need to implement ForesightJS predictive prefetching in my Next.js application. I want to:

1. Use the useForesight React hook for my custom link components
2. Integrate with Next.js router prefetching using ForesightLink
3. Use the default configuration, except that I want mobile prefetching to be on touch start
```

## Individual Page Markdown[​](#individual-page-markdown "Direct link to Individual Page Markdown")

All documentation pages are available as markdown by adding `.md` to any URL:

* `https://foresightjs.com/docs/getting-started/what-is-foresightjs.md`
* `https://foresightjs.com/docs/getting-started/initialize-the-manager.md`
* `https://foresightjs.com/docs/getting-started/quick-start.md`
* `https://foresightjs.com/docs/getting-started/typescript.md`
* `https://foresightjs.com/docs/configuration/global-settings.md`
* `https://foresightjs.com/docs/configuration/registration-options.md`
* `https://foresightjs.com/docs/events.md`
* `https://foresightjs.com/docs/debugging/devtools.md`
* `https://foresightjs.com/docs/debugging/static-properties.md`
* `https://foresightjs.com/docs/Behind_the_Scenes.md`
* `https://foresightjs.com/docs/other-frameworks.md`
* `https://foresightjs.com/docs/migrating-to-v4.md`
* `https://foresightjs.com/docs/react/what-is-foresightjs.md`
* `https://foresightjs.com/docs/react/installation.md`
* `https://foresightjs.com/docs/react/initialize-the-manager.md`
* `https://foresightjs.com/docs/react/quick-start.md`
* `https://foresightjs.com/docs/react/typescript.md`
* `https://foresightjs.com/docs/react/useForesight.md`
* `https://foresightjs.com/docs/react/foresight-component.md`
* `https://foresightjs.com/docs/react/useForesightEvent.md`
* `https://foresightjs.com/docs/react/nextjs.md`
* `https://foresightjs.com/docs/react/react-router.md`
* `https://foresightjs.com/docs/react/configuration/global-settings.md`
* `https://foresightjs.com/docs/react/configuration/registration-options.md`
* `https://foresightjs.com/docs/react/events.md`
* `https://foresightjs.com/docs/react/devtools.md`
* `https://foresightjs.com/docs/react/static-properties.md`
* `https://foresightjs.com/docs/react/migrating-to-v4.md`
* `https://foresightjs.com/docs/react/behind-the-scenes.md`
* `https://foresightjs.com/docs/react/ai-context.md`
* `https://foresightjs.com/docs/vue/what-is-foresightjs.md`
* `https://foresightjs.com/docs/vue/installation.md`
* `https://foresightjs.com/docs/vue/initialize-the-manager.md`
* `https://foresightjs.com/docs/vue/quick-start.md`
* `https://foresightjs.com/docs/vue/typescript.md`
* `https://foresightjs.com/docs/vue/directive.md`
* `https://foresightjs.com/docs/vue/useForesight.md`
* `https://foresightjs.com/docs/vue/foresight-component.md`
* `https://foresightjs.com/docs/vue/useForesightEvent.md`
* `https://foresightjs.com/docs/vue/configuration/global-settings.md`
* `https://foresightjs.com/docs/vue/configuration/registration-options.md`
* `https://foresightjs.com/docs/vue/events.md`
* `https://foresightjs.com/docs/vue/devtools.md`
* `https://foresightjs.com/docs/vue/static-properties.md`
* `https://foresightjs.com/docs/vue/migrating-to-v4.md`
* `https://foresightjs.com/docs/vue/behind-the-scenes.md`
* `https://foresightjs.com/docs/vue/ai-context.md`
* `https://foresightjs.com/docs/angular/what-is-foresightjs.md`
* `https://foresightjs.com/docs/angular/installation.md`
* `https://foresightjs.com/docs/angular/initialize-the-manager.md`
* `https://foresightjs.com/docs/angular/quick-start.md`
* `https://foresightjs.com/docs/angular/typescript.md`
* `https://foresightjs.com/docs/angular/directive.md`
* `https://foresightjs.com/docs/angular/foresight-service.md`
* `https://foresightjs.com/docs/angular/foresight-component.md`
* `https://foresightjs.com/docs/angular/injectForesightEvent.md`
* `https://foresightjs.com/docs/angular/configuration/global-settings.md`
* `https://foresightjs.com/docs/angular/configuration/registration-options.md`
* `https://foresightjs.com/docs/angular/events.md`
* `https://foresightjs.com/docs/angular/devtools.md`
* `https://foresightjs.com/docs/angular/static-properties.md`
* `https://foresightjs.com/docs/angular/migrating-to-v4.md`
* `https://foresightjs.com/docs/angular/behind-the-scenes.md`
* `https://foresightjs.com/docs/angular/ai-context.md`
