> For the complete documentation index, see [llms.txt](https://docs.substreams.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.substreams.dev/how-to-guides/sinks.md).

# Consuming Substreams

Once you find a package that fits your needs, you can choose how you want to consume the data. Sinks are integrations that allow you to send the extracted data to different destinations, such as a SQL database, or a file.

{% hint style="info" %}
**Tip**: Building a SQL sink? The [substreams-sql agent skill](/how-to-guides/develop-your-own-substreams/general/agent-skills.md) gives your AI coding assistant expert knowledge on database change (CDC) patterns, relational mappings, PostgreSQL, and ClickHouse schema design.
{% endhint %}

{% hint style="info" %}
**Note**: Some of the sinks are officially supported by StreamingFast (i.e. active support is provided), but other sinks are community-driven and support can’t be guaranteed.
{% endhint %}

* [Hosted Sinks](/how-to-guides/sinks/hosted-sinks.md): Let StreamingFast run your sink for you — no infrastructure to manage.
* [SQL Database](/how-to-guides/sinks/sql.md): Send the data to a database.
* [Direct Streaming](/how-to-guides/sinks/stream.md): Stream data directly from your application.
* [PubSub](/how-to-guides/sinks/pubsub.md): Send data to a PubSub topic.
* [Community Sinks](https://github.com/streamingfast/substreams/blob/develop/docs/how-to-guides/sinks/community/README.md): Explore quality community maintained sinks.

### Navigating Sink Repos

#### Official

| Name        | Support | Maintainer    | Source Code                                                                                          |
| ----------- | ------- | ------------- | ---------------------------------------------------------------------------------------------------- |
| SQL         | O       | StreamingFast | [substreams-sink-sql](https://github.com/streamingfast/substreams-sink-sql)                          |
| Go SDK      | O       | StreamingFast | [substreams-sink](https://github.com/streamingfast/substreams-sink)                                  |
| Rust SDK    | O       | StreamingFast | [substreams-sink-rust](https://github.com/streamingfast/substreams-sink-rust)                        |
| JS SDK      | O       | StreamingFast | [substreams-js](https://github.com/substreams-js/substreams-js)                                      |
| KV Store    | O       | StreamingFast | [substreams-sink-kv](https://github.com/streamingfast/substreams-sink-kv)                            |
| PubSub      | O       | StreamingFast | [substreams-sink-pubsub](https://github.com/streamingfast/substreams-sink-pubsub)                    |
| ProtoJSON   | O       | StreamingFast | [substreams-sink-protojson](https://github.com/streamingfast/substreams/tree/develop/sink/protojson) |
| Webhook     | O       | StreamingFast | [substreams-sink-webhook](https://github.com/streamingfast/substreams/tree/develop/sink/webhook)     |
| Noop        | O       | StreamingFast | [substreams-sink-noop](https://github.com/streamingfast/substreams/tree/develop/sink/noop)           |
| Prometheus  | O       | Pinax         | [substreams-sink-prometheus](https://github.com/pinax-network/substreams-sink-prometheus)            |
| Webhook(JS) | O       | Pinax         | [substreams-sink-webhook](https://github.com/pinax-network/substreams-sink-webhook)                  |
| CSV         | O       | Pinax         | [substreams-sink-csv](https://github.com/pinax-network/substreams-sink-csv)                          |

#### Community

| Name       | Support | Maintainer | Source Code                                                                               |
| ---------- | ------- | ---------- | ----------------------------------------------------------------------------------------- |
| MongoDB    | C       | Community  | [substreams-sink-mongodb](https://github.com/streamingfast/substreams-sink-mongodb)       |
| Files      | C       | Community  | [substreams-sink-files](https://github.com/streamingfast/substreams-sink-files)           |
| KV Store   | C       | Community  | [substreams-sink-kv](https://github.com/streamingfast/substreams-sink-kv)                 |
| Prometheus | C       | Community  | [substreams-sink-Prometheus](https://github.com/pinax-network/substreams-sink-prometheus) |

* O = Official Support (by one of the main Substreams providers)
* C = Community Support


---

# 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.substreams.dev/how-to-guides/sinks.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.
