# Data collection

## **How is the data collected for Omlet?**

*Omlet never collects, stores or upload your code.* The scanning process is always done *locally* using the Omlet CLI available for download via NPM. Only metadata is collected.&#x20;

As a user, you have full control over what code Omlet will scan by choosing which repository it should scan. You also have the option to limit scanning to certain files or directories.

## **What data is collected for Omlet?**

Regarding metadata, Omlet collects:

* Function names related to frontend code&#x20;
* File paths of where the functions are defined
* Where the functions are called from

For troubleshooting purposes, other metadata we collect are:&#x20;

* IP address of the user who uploads the data&#x20;
* Node.js version&#x20;
* OS type/version&#x20;
* URL to the git repository and current branch name&#x20;

Omlet CLI has an option to generate the output locally which you can use to inspect the data. You can do this by running:&#x20;

{% tabs %}
{% tab title="npm" %}
{% code fullWidth="false" %}

```sh
npx @omlet/cli analyze --dry-run 
```

{% endcode %}
{% endtab %}

{% tab title="yarn" %}

```sh
yarn dlx @omlet/cli analyze --dry-run 
```

{% endtab %}

{% tab title="pnpm" %}

```sh
pnpm dlx @omlet/cli analyze --dry-run 
```

{% endtab %}
{% endtabs %}

This will generate a local file `omlet.out.json` with the scanned output that is normally uploaded to Omlet's Web app. When using `--dry-run`, the results are **never** uploaded.&#x20;

## **Where is the data stored for Omlet?**

The metadata collected is uploaded to Omlet's backend hosted on AWS (S3) and MongoDB. We only use this data to provide the service directly to you.

If you have further questions, please [contact us](mailto:support@omlet.dev).


---

# Agent Instructions: 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:

```
GET https://docs.omlet.dev/security/data-collection.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
