AI and store security JavaScript

ai-privacy-checkFind where customer data goes when your store uses AI

ai-privacy-check maps which AI providers, tracing tools and vector databases receive personal data from your code, which fields reach prompts, and the retention and training settings in use, then drafts a GDPR Article 30 register, a DPIA screening and a privacy-notice section.

npx npx ai-privacy-check .

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

How ai-privacy-check works

Adding an AI chatbot to a store takes an afternoon. Knowing where your customers’ data goes afterwards takes much longer.

The prompt goes to the model provider. A copy may go to a tracing tool your developer added for debugging. Chats sit in a vector database “until deleted”. A gateway picks a provider for each request. Each of these keeps data under its own rules, and each belongs in your records and your privacy notice.

ai-privacy-check reads your code and your live site and tells you:

It then drafts three documents for you:

Try it

With Node.js, in your project folder:

npx ai-privacy-check . --site https://your-store.com --md ai-privacy.md --register register.csv

register.csv opens in Excel or Google Sheets, with one row per recipient.

What it found in real projects

I ran it on nine public AI apps before release.

None of these is unusual. These are templates that thousands of stores start from.

Why I built it

My client work is AI for e-commerce, and my research is on efficient and secure AI. Every store I help ends up asking the same question their customers would ask: where does my data go?

The answer was buried in SDK defaults and vendor documentation that change every few months. I wanted a free tool that answers it from the code, with a source link for every fact.

Agent skill included

Let your AI coding agent run ai-privacy-check for you

The ai-privacy-check skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/ai-privacy-check --skill ai-privacy-check

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about ai-privacy-check

Do I need to mention ChatGPT, Gemini or Claude in my privacy policy?

Under GDPR Article 13 you must tell people the recipients or categories of recipients of their data, the purpose, how long it is kept and whether it leaves the country. If customer messages or order details go to an AI provider, that provider is a recipient. Naming it, or at least the category ('AI model providers'), is the safe course. ai-privacy-check lists who receives data and drafts the paragraph.

Does OpenAI keep the data my store sends through the API?

API data is not used for training unless you opt in, but it is kept for a while. Abuse-monitoring logs last up to 30 days. Responses API state is kept 30 days unless you set store: false, and the OpenAI Agents SDK leaves that setting unset. Conversations, Assistants, Threads, Files and Vector stores stay until you delete them. The tool finds these calls in your code.

Is the free Gemini API safe for customer data?

Google's terms say content sent to the Unpaid Services can be used to improve its products and read by human reviewers, and ask you not to send personal information. People in the EEA, Switzerland and the UK may only be served through Paid Services. Turn on Cloud Billing or use Vertex AI. The tool flags Gemini API keys so you can check.

Do I need a DPIA for my AI chatbot?

Often, yes. Under the WP248 guidelines, processing that meets two of nine criteria usually needs one. AI counts as new technology for several regulators, so one more criterion, such as health data, children, profiling or large scale, is often enough. The tool marks which criteria your code shows and asks you the ones only you can answer.

Is this legal advice?

No. It is an engineering tool. It finds technical facts in code and on your site, so that you or your adviser can decide quickly and correctly.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.