> For the complete documentation index, see [llms.txt](https://docs-lunar.earthly.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-lunar.earthly.dev/sql-api/views/catalog.md).

# catalog

{% hint style="info" %}
**Coming Soon** — This feature is not yet available.
{% endhint %}

```
catalog
catalog_latest
```

The `catalog` view provides a historical timeseries of catalog JSONs generated by running catalogers over time. Each row represents a catalog snapshot at a specific point in time.

A subset of this data is available in the `catalog_latest` view, which contains only the most recent catalog entry. The `catalog_latest` view is guaranteed to return at most one row.

## Schema

| Column         | Type        | Description                              |
| -------------- | ----------- | ---------------------------------------- |
| `timestamp`    | `TIMESTAMP` | When the catalog was generated           |
| `catalog_json` | `JSON`      | The complete catalog data in JSON format |

## Notes

* The catalog view contains the history of all catalogs generated by catalogers
* Each row represents a complete catalog snapshot at a specific point in time
* The catalog JSON contains the full inventory of components and their metadata. The format is defined on the [Catalog JSON](/docs/catalog-json.md) page
* This view enables historical analysis of how the component landscape has changed over time
* The catalog\_latest view is identical to the catalog view in structure, but only contains the single most recent catalog entry

## Usage examples

Get the most recent catalog entries:

```sql
SELECT timestamp, catalog_json
FROM catalog
ORDER BY timestamp DESC
LIMIT 5;
```


---

# 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://docs-lunar.earthly.dev/sql-api/views/catalog.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.
