---
title: "Niv Privacy Policy"
description: "What Niv collects, why, for how long, who processes it, and how to ask for a copy or deletion."
canonical: https://niv.md/privacy
language: en
last_updated: 2026-12-04T13:51:08.000Z
---

# Niv Privacy Policy

Effective date: December 4, 2026

> **What changed in this version.** We now identify people across the website and the apps, person by person: outside the EU, the EEA, the UK and Switzerland from your first visit to niv.md, on our legitimate interest, with **Don't identify me** on the site and the objection in Settings › Account in the app. Session recordings and heatmaps still need your consent. When an app sends you to niv.md to sign in, that visit is linked to the app (sections 2.6, 2.7, 5, 7 and 9).

## The short version

- Your notes are Markdown files on your device. If you never sign in, they never leave it.
- If you connect a folder to a Space, Niv syncs that folder's notes through our servers so your devices and the people you invite can work on them.
- **Your Spaces are end-to-end encrypted.** Your notes, their titles, folder names, tags and properties, images and history are encrypted on your device before they leave it. Our servers store them and pass them along, but we can't read them. (A Space made before encryption stays readable on our servers until its owner encrypts it: section 3.) We still see some facts needed to deliver them, such as who is in a Space and when something changed. [What's encrypted](https://niv.md/encryption) lists exactly what.
- **Databases are not end-to-end encrypted.** A database in a Space (tables you create in Niv) is stored by our provider Turso (encrypted at rest, its documentation says), but readable by the server, so it can be sorted and searched there. A note you link from a row stays end-to-end encrypted: the row holds only the note's id. Niv tells you this where you create a database.
- **If you lose both your encryption passphrase and your recovery file, nobody can open your notes, including us.** We don't keep a copy of your keys.
- If you publish a note, it is public on the web, and search engines can find it.
- We don't sell your data. We don't share it for advertising. We don't use your notes to train AI models.
- The AI chat in the desktop app runs the AI tool you installed (Claude Code, Codex, and others) on your device, under your own account. Niv doesn't see those conversations.
- When you use an AI feature, the text it works on is sent, readable, from your device to the AI provider that answers, and only when you ask for it.
- **Niv chooses a new note's icon from its title, unless you turn it off** in Settings › Notes. For that, the title alone — decrypted on your device, also in an encrypted Space — goes through our server and the Vercel AI Gateway to TypeSafe AI's model. None of us keeps it after the answer, and it isn't used to train AI models (section 2.12). Apart from AI features you use, it's the only way anything of your notes leaves your devices readable.
- Niv may offer paid AI features of its own later, under separate terms. We'll update this policy before they launch.
- The apps and our server record how Niv is used (which features get used, how long things take), linked to your account, with your email and name on your analytics profile, unless you object, in Settings › Account in the app. Never your note titles, file names or text.
- We send you promotional email only if you ask for it.
- You can delete your account or a Space you own yourself, in the app's Settings, and we erase what we hold about it, as section 7 describes. You can also ask us for a copy of your data, to fix it, or to delete it at any time: hey@niv.md.

The rest of this page says the same thing in full.

## 1. Who we are

Niv is run by **GABRIEL ARAUJO RUDY CONSULTORIA EM TECNOLOGIA DA INFORMACAO**, an individual entrepreneur business (Empresário Individual, ME) registered in Brazil under CNPJ 48.868.347/0001-87, with its registered office at Avenida Prefeito Osmar Cunha, 416, Sala 1108, Centro, Florianópolis/SC, CEP 88015-100, Brazil ("Niv", "we", "us").

We decide why and how your personal data is used, so we are the **controller** (under Brazil's LGPD and the EU/UK GDPR) and the **business** (under US state privacy laws).

**Contact for anything in this policy:** hey@niv.md.
**Data protection officer (Encarregado, LGPD art. 41):** Gabriel Araujo, at hey@niv.md.

This policy covers the Niv desktop and phone apps, the website at niv.md (including published notes at niv.md/p/…) and Niv's sync and collaboration service (together, "the Service").

## 2. What we collect, and why

### 2.1 Your account

When you sign in, we collect:

- **Your email address.** You sign in with a one-time code or a link we email you, or with Apple, Google or GitHub.
- **From Google or GitHub, if you use them:** your name, email address, profile picture link and your account ID with that provider. We also keep the sign-in tokens the provider gives us. We don't get your password.
- **From Apple, if you use it:** your account ID with Apple, an email address (which can be one Apple creates to forward mail to you, if you choose to hide yours) and your name, the first time only. Apple doesn't give us a picture or your password. If Apple gives us a token at sign-in, we keep it, encrypted, only to ask Apple to revoke Niv's access when you delete your account. You can always remove Niv yourself in your Apple Account settings.
- **Sign-in sessions:** a session token, when it expires, the IP address and the device/browser description (user agent) of the sign-in.
- **Why a sign-in ended:** when a sign-in ends (you signed out, it expired, its device was removed, your keys changed or it was ended elsewhere), we keep which account it was, whether it was a niv sign-in, the reason and the time, so the app can tell you why. The record holds no IP address, device or name: only a fingerprint of that sign-in's token, which opens nothing. The app shows it only to whoever holds the ended sign-in itself.
- **One-time codes and links**, which expire after a few minutes.

**Why:** to create your account, sign you in, keep it secure and contact you about it.
**Legal basis:** performing our contract with you (LGPD art. 7, V; GDPR art. 6(1)(b)). Keeping session IP and device data for security relies on our legitimate interest in protecting accounts (LGPD art. 7, IX; GDPR art. 6(1)(f)).

On a Mac, the desktop app keeps your session token in the macOS Keychain, not in a plain file.

### 2.2 Your notes, when you sync

Niv works on a folder of Markdown files on your device. Nothing in that folder is sent to us until you sign in and connect the folder to a **Space**. Every Space is **end-to-end encrypted**: your device encrypts these before they leave it, with keys we never have, and we store them and pass them along but **cannot read them**:

- the content of your notes, and their titles;
- folder names, tags and properties;
- images you add to notes (kept encrypted, in private storage);
- each note's history: its versions and what changed;
- the Space's name and icon, and the names you give your devices.

To deliver them, our servers still see and keep:

- your email address and when you sign in;
- who is in each Space, and their role;
- that a change happened, when, how large it was, and which device and account sent it;
- how many notes and folders a Space has and how they are arranged, without their names;
- the Space's address (slug) and its settings for daily notes, templates and recurring notes, without the names in them;
- which days you wrote (used for the streak and calendar on Home);
- your **public keys**, which members use to let each other in, and an **encrypted copy of your private keys**, locked by your encryption passphrase and, separately, by your recovery file, so you can open your notes on a new device. Your passphrase and your recovery file never reach us, so we can't unlock that copy.

Files you mark as **local-only** (and AGENTS.md and CLAUDE.md, which are local-only by default) are never uploaded.

**Invitations are the one exception for a Space's name and icon.** When you invite someone, the invitation shows them the Space's name and its icon (an emoji, an icon or, when the Space's icon is a picture, a small copy of that picture), so your device sends us a readable copy of those with the invitation. We use it only to show the invitation: on its page, in its link preview, in its email and inside the app to the person invited if they already have a Niv account. In the email, the picture loads from our server when the email is opened, and stops existing when we erase the copy; an email service that keeps images (such as Gmail) may keep its own copy, beyond our reach. We erase our copy, a picture's included, when the invitation is accepted, declined or cancelled, within an hour after it expires (7 days), and when you delete the Space or your account. A picture under a legal hold (section 2.3) is the one case kept longer: hidden, in private, while the hold lasts. Apps where the link is pasted may keep their own copy of the preview. Untick "Show the Space's name and icon in the invitation" when you invite, and nothing readable is sent: the invitation then says only who invited them. **The Space's invite link.** When the invitation shows the Space's name, the Space also gets an invite link with the name in its address (for example, niv.md/invite/journal), so you can send one link to everyone you invited. The address is a simplified form of the name (no accents, lowercase) and is kept while the Space exists, even after the invitations end, so it never leads to another Space; it does not change if you rename the Space. The link alone grants no access: only someone who signs in to Niv with an email that received an invitation to that Space gets in. When the Space is deleted, we delete the address and keep only a fingerprint of it, so it is never given to another Space. It does not hold the name itself, but a common name can be worked out from it.

**Why:** to sync your notes between your devices, let the people in your Space work with you, show history and recover mistakes.
**Legal basis:** performing our contract with you (LGPD art. 7, V; GDPR art. 6(1)(b)).

**What other people in a Space see.** Everyone who is a member of a Space can read and edit its notes, see who else is a member (name, email, picture), see who is working in a note right now, and see who changed what in the history. Members can read because you, or another member, let them in by sharing the Space's key with them. Removing a member changes the key for everything written afterwards, but they keep what they could already read, including files on their own devices. Only invite people you trust with that Space's content.

**Notes about other people.** If your notes contain personal data about others, you decide what goes in them. We store and sync it on your behalf; you are responsible for having the right to keep it.

**Sensitive information.** We don't ask for sensitive data (health, religion, political views and similar). If you write it in a note that you sync, we store it encrypted, only to provide the Service, like any other note.

### 2.3 Published notes

When you publish a note, its title, emoji, cover image, content and publish date become **public** at `niv.md/p/<space>/<note>`. The address is the one you choose for your Space. Published notes are listed in our public sitemap so search engines can find and index them, and they come with a preview image for links shared on social media. Your name and email are not shown on the page.

Publishing creates a **readable copy** of that note on our servers, on purpose: the page, its images and the site title you choose can be read by anyone with the link. Everything you don't publish stays encrypted. Pages you published before your Space was encrypted stay published, readable, until you unpublish them.

You can unpublish at any time. The page then stops being served and we erase the published copy, but copies already made by search engines, archives or other people are outside our control.

Anyone can report a published page with the "Report this page" form at its foot (or by email to hey@niv.md, which the link opens when the form can't load). A report keeps the page's address (without anything after a `?` or `#`), the reason you choose, what you write if you write anything, your email address if you give one so we can reply, the page's language, and when it was sent. We don't store your IP address with it: it only counts, for up to an hour, how many reports come from the same IP address (section 2.9), and the report isn't linked to a Niv account. Only the people at Niv who handle reports read them; our inbox is told a report arrived and why, nothing else. We use a report only to handle it. We may unpublish a page or remove a published file that breaks our Terms (section 6 of the Terms). We don't tell the page's author who reported it, unless the law requires it (for example, a copyright notice and counter-notice).

**Legal basis:** our legitimate interest in keeping published pages lawful and safe (LGPD art. 7, IX; GDPR art. 6(1)(f)), and complying with the law where a report is a notice the law governs (LGPD art. 7, II; GDPR art. 6(1)(c)).

When we act on a report and the published file involves a minor in sexual content (whether the report says so or we find it on reviewing the report), we hide that file and keep it privately, out of the public files: a copy of the file, what identified it (its Space, its name, type and size, its public address and the pages that used it, and when it was uploaded and published), the Niv account that uploaded it, the report, and who at Niv acted on it. We report it to the authorities as the law requires, and while this legal hold lasts we don't delete it, even if the page, the Space or that account is deleted. We keep a file reported for another reason the same way when the law requires us to preserve it. Only Niv can end a hold; then the copy is deleted and the record no longer says which Space, file, pages or account it was.

**Legal basis:** complying with the law (LGPD art. 7, II; GDPR art. 6(1)(c)).

### 2.4 The AI chat in the desktop app

The desktop app's AI chat and inline edits run an AI tool **you** installed on your device — today Claude Code, Codex, Cursor, Grok, OpenCode or Antigravity — signed in with **your own** account with that provider. What you type, and any notes the tool reads, go from your device to that provider under its terms and privacy policy, not ours. Niv does not receive those prompts or answers.

These tools run on your device, which holds your keys, so they can read the notes of a Space you let them read, and send them, readable, to their provider. **Niv's cloud agent can't read your encrypted notes.**

The same goes for an AI app you connect with `niv mcp`: what your agent reads through niv goes to its AI provider, under that provider's terms. That includes notes from an encrypted Space: they're decrypted on your device, so the provider can read them. Database rows aren't end-to-end encrypted at all.

**Whenever you use an AI feature** (these tools today, an app you connect with `niv mcp`, or a feature Niv offers later), the text it works on — what you select, ask about, or the notes it picks as context — is sent, readable, from your device to the AI provider that answers, under that provider's terms. That happens only when you use the feature; the one other way anything of your notes leaves your devices readable is a new note's title, while Niv chooses icons from titles (section 2.12). Niv may offer its own AI features later, including paid ones, under separate terms; we will update this policy before they launch.

For a Space not yet encrypted (section 3), the app can give that tool a short-lived (5-minute) read-only access key to the Space you choose. Encrypted Spaces never get one: the tool reads their notes on your device.

We do count, without content, that a chat message was sent, which provider and model were picked, and whether an install worked (see 2.6).

### 2.5 The waitlist

If you join the waitlist for a platform Niv doesn't support yet, we keep your email, the platform (Windows, Linux, iOS, iPadOS or Android), the site language you used and the date. We use it only to tell you when Niv arrives on that platform.
**Legal basis:** your consent (LGPD art. 7, I; GDPR art. 6(1)(a)). You can leave the list at any time by emailing hey@niv.md.

### 2.6 Usage data from the apps and our server

**Linked to your account.** Events from the desktop and phone apps and from our server carry your Niv account ID once you sign in. Your analytics profile at PostHog holds your email, your name, how you told us you heard of Niv and whether you asked for promotional email. We do this to understand, person by person, where Niv worked and where someone got stuck, and to fix what went wrong for you. Before you sign in, the app uses a random ID for your device. When you sign in, that ID and its events become linked to your account, and so do your visits to niv.md in the browser you signed in with (section 2.7).

To object, turn off **Settings › Account › Link my usage to my account** in the app, or write to hey@niv.md. From then on, app events carry only a new random device ID and server events a fresh random ID each time, with no profile. Events already linked stay with your account until you delete it. Only payment events stay linked, because they are about your purchase. We keep a record of this choice and every change to it. Events under a device ID are still about you: deleting your account can't find them, and they're erased when their time ends (section 7).

The desktop app sends us two kinds of technical data:

- **Product events:** a short, fixed list of things that happened, such as "AI chat opened", "Space opened" or "install finished", with counts, durations, on/off values and choices from a fixed list (for example, which AI provider). Each event carries a random ID for your device, your Niv account ID once you sign in (unless you objected, above), the app version, your operating system, and your Space's ID.
- **Error and performance logs:** what went wrong and how long things took.

Our server records events about your account as they happen there, such as the account being created, from the same kind of fixed list. Each names the app and version that made the request: the desktop or phone app, the `niv` command line, or the website. The `niv` command line sends no usage data of its own.

The phone app sends us three kinds of technical data:

- **Product events:** which screens you open and for how long, and the app's first open and whether restoring your store purchases worked, with the app's version, the platform (iOS or Android) and the major version of the phone's system. Each carries a random ID for your device and, once you sign in and unless you objected (above), your Niv account ID.
- **Error reports:** when something in the app fails, what kind of failure it was, the error's type and a code computed from its message (never its words), the places in the app's own code where it happened, which screen or sign-in provider it came from, and the app's and the phone system's versions.
- **A launch line:** each time the app starts, the app's version and build, the platform (iOS or Android) and the major version of the phone's system. It lets us tell a phone where nothing went wrong from one that can't report at all.

The error reports and the launch line carry neither your account ID, a device ID nor your Space's ID. If the phone is offline, they wait on it: error reports and the launch line go the next time you open the app, product events the next time you open or leave it.

These are built so that **nothing you wrote can be included**: no note titles, file names, folder names, note text or prompts. Values that aren't on an approved list are dropped before anything is sent.

As with any internet request, our analytics provider receives your IP address when the app sends data. 
**Legal basis:** our legitimate interest in keeping Niv working and improving it for each person who uses it (LGPD art. 7, IX; GDPR art. 6(1)(f)). You can object at any time, as above.

### 2.7 The website

niv.md has five categories: **Essential**, **Analytics** (legitimate interest), **Recordings** (consent), **Personalization** and **Targeted advertising**. Outside the European Union, the European Economic Area, the United Kingdom and Switzerland, **Essential** and **Analytics** run from the first page, and the banner says so with a link to this section. In those countries, nothing beyond Essential runs until you choose. With **Global Privacy Control** or **Do Not Track**: Essential only until you choose. Outside those countries, that means niv.md doesn't identify your browser and only counts its visits, with no cookie, until you choose otherwise; in those countries, it's the same as for everyone there. You can change your choice at any time with the **Cookies** link in the footer.

- **Essential (always on):**
  - **Necessary cookies and storage:** a language cookie (`niv-locale`) and your cookie choice (`niv-consent`), one year each; the `niv-count` cookie, which also remembers **Don't identify me** (below); your chosen look, in your browser's local storage; and, when you sign in on niv.md, a sign-in session cookie and the sign-in step in session storage. These never leave your browser except to make the page work.
  - **A count of visits that uses no cookie:** our analytics provider (PostHog) counts the pages viewed, the site you came from, the campaign in the link, and clicks on a download button, on copying the command line's install line or on an "open in Niv" button (only which page it was on, never where it leads). It stores nothing in your browser. Visits are told apart by a code computed from your IP address and browser that changes every day, and the IP address itself isn't kept (at most the country worked out from it). They're counted together, never per person, and never joined to an account.
  **Legal basis:** our legitimate interest in knowing how many people visit the site and what brings them (LGPD art. 7, IX; GDPR art. 6(1)(f)). To object, use **Don't count my visits** here, on niv.md/privacy: the site then sends nothing to PostHog at all. It keeps a cookie (`niv-count`, one year) only to remember your objection, and **Count my visits again** lifts it. Outside the EU, the EEA, the UK and Switzerland your visits are then counted without identifying your browser, until you choose otherwise. The same button is under Essential's details in the site's cookie preferences.
  - **Analytics:**
  - **What it records:** PostHog stores a cookie with a random ID for this browser and records the pages you view, the site you came from, the link's campaign, and clicks on the download, install and "open in Niv" buttons.
  - **Linking to your account:** when you sign in to Niv in this browser (also when the app opens niv.md for you to sign in), those visits are linked to your account and your analytics profile, unless you objected (section 2.6), with the origin of your first visit (the `niv-first-touch` cookie). That cookie is Niv's own (one year) and holds where your first visit through one of our links came from: the social network, the kind of link and the campaign named in the address you followed (for example Instagram, a social profile, its bio link), from a short fixed list, never anything you typed. It is written only while this browser may be identified, and removed when you choose **Don't identify me**, turn Analytics off or object to the count.
  - **Before an account:** if you opened the app and started signing in in this browser, the visit is also linked to the app's device ID.
  - **Legal basis:** our legitimate interest in understanding how people find Niv and where they give up (LGPD art. 7, IX). In the EU, the EEA, the UK and Switzerland: your consent (GDPR art. 6(1)(a)).
  - **To object:** use **Don't identify me** here or in the cookie preferences. The site goes back to counting visits without a cookie, and a cookie (`niv-count`) remembers your choice.
  - **Recordings (off until you turn them on):** session recordings and heatmaps, with everything you type hidden, and never on the sign-in page. With Recordings on, PostHog also records the other clicks on the page, clicks that lead nowhere and how fast pages load. **Legal basis:** your consent.
- **Personalization (off):** nothing on the site uses this today. If something ever does, it will be described here and stay off until you turn it on.
- **Targeted advertising (off):** the site has no ad tags, and nothing is shared with advertisers.
- **Server logs:** our hosting and network providers record requests (IP address, time, page, browser) to run and protect the site.

### 2.8 Email

We email you to sign you in and, when needed, about your account, security or changes to this policy. When someone invites you to a Space, we email you the invitation. Our emails never name the notes of an encrypted Space, and they name a Space (in the subject and the text) and show its icon only in an invitation whose sender chose to show them (section 2.2). An invitation to a Space not yet encrypted (section 3) names the Space, or the note you're invited to. **Promotional email** (news about Niv, tips and offers) goes only to you if you asked for it: when you set up your account, "Send me promotional emails" is unticked unless you tick it. Each one has a link to stop them; you can also turn them off in **Settings › Account** in the desktop app, or write to hey@niv.md. We stop within 48 hours. We keep a record of each time you give or withdraw this consent: when, where (which app and version), the exact words you saw, in which language, and which version of this policy was in force, so we can show what you chose.

**Legal basis:** your consent for promotional email (LGPD art. 7, I; GDPR art. 6(1)(a)); keeping the record of it, our legitimate interest in being able to prove your choice (LGPD art. 7, IX; GDPR art. 6(1)(f)).

### 2.9 Security and abuse prevention

To stop abuse (for example, someone trying thousands of sign-in codes), we briefly keep your IP address or account ID in a counter that resets within an hour. Our servers also keep technical logs, which can include your account ID, email address (when an account is created) and IP address. Separately, we keep access records: the date and time, IP address, account, the part of Niv used (for example, signing in or syncing) and the browser or app version of each use of the app, in a restricted store that only an authorised operator can read, to answer a court order.
**Legal basis:** legitimate interest in security (LGPD art. 7, IX; GDPR art. 6(1)(f)), and complying with law where required (LGPD art. 7, II; GDPR art. 6(1)(c)). Brazilian law (Marco Civil da Internet, Law 12,965/2014, art. 15) requires us to keep application access records — IP address, date and time — for 6 months.

### 2.10 Content loaded from other services

Some things in the app load directly from other companies, which then see your IP address:
- **Cover images** from Unsplash, if you choose one.
- **Videos** you embed (for example, YouTube), when you play them.
- **App updates**, checked and downloaded from releases.niv.md (served by Cloudflare).

### 2.11 Niv Pro

If you subscribe to Niv Pro, you pay on **Stripe**'s page, not ours. Stripe receives your name, email, card or other payment details and your billing address and, if you want it on your invoice, your CPF or CNPJ; we never see your card number.  We keep, linked to your account: your plan, whether it is active, renews or is set to end, when the paid period ends, and Stripe's identifiers for you and your subscription. We pick the price's currency from the country of your connection, as our network provider reports it, or, without one, from your account's language. For each payment, our accounting firm uses Stripe's records of it (your name, email, billing address, CPF or CNPJ if you gave one, the amount and the date) to issue the electronic service invoice (NFS-e) Brazilian law requires.

If you subscribe in the phone app, you buy from **Apple** (App Store) or **Google** (Google Play), not from us: the store takes the payment under its own terms and privacy policy, and we never see your payment details. **RevenueCat**, which handles the phone app's purchases for us, receives from the store what you bought: the store, the product, the purchase's transaction identifiers, its price and currency, the store's country, and whether it's in a trial, renewing, cancelled or ended. RevenueCat knows you by your Niv account ID, never by your name or email; when the app talks to it, it also receives the app's and the phone system's versions and the phone's IP address. It never receives your notes. We keep, linked to your account: the store, the product, whether the subscription is active, in a trial, renewing or set to end, and when its period ends.

**Why:** to sell and provide Niv Pro, to issue the electronic service invoices (NFS-e) Brazilian law requires, and to keep our accounts and taxes in order.
**Legal basis:** performing our contract with you (LGPD art. 7, V; GDPR art. 6(1)(b)), and our legal obligations on billing and tax records (LGPD art. 7, II; GDPR art. 6(1)(c)).

### 2.12 Icons chosen from a note's title

When a note gets its name on your device — you name a new note, rename a note that has no icon, or create one from a search or a link — Niv can choose its icon: one of Niv's icons or an emoji, whichever fits the title. It's **on unless you turn it off**, in Settings › Notes › "Choose an icon from the title". The setting belongs to your Niv account, so turning it off stops it on all your devices. You can also have it choose among icons only, or emoji only: [Icons from the title](https://niv.md/p/docs/icons-from-the-title) shows how. While it's on:

- **What leaves:** the note's title only — on one line, at most 120 characters — never its text, folder, tags or properties. It's sent from your device, readable, to our server, **also when the Space is encrypted**: your device decrypts it to send it. It's sent when you set or change the title on that device and the note has no icon, or still has the one Niv chose; never for untitled notes, daily and other recurring notes, a note kept local only, or a note in a folder not connected to a Space. Once you change or remove the icon Niv chose, that device doesn't choose again for that note.
- **Where it goes:** our server sends it through the **Vercel AI Gateway** to **TypeSafe AI**'s model (Jev), with a list of icons and emoji to choose from, and gets back the one that fits; your device then sets it as the note's icon, like any icon you choose.
- **What's kept:** we don't store the title. Our logs keep only that a choice was asked, of which kinds, and its outcome — never the title or the icon. Each request asks the gateway for zero data retention: Vercel doesn't keep prompts or answers, and may send the request only to a provider with a zero data retention agreement with it. TypeSafe AI keeps the title only as long as it needs to answer, and doesn't train on it.
- To keep it fair to run, we count the choices asked by your account in the last hour (section 2.9).

**Why:** so a new note has a recognisable icon without you picking one.
**Legal basis:** our legitimate interest in making notes easy to find at a glance, with a setting to turn it off at any time (LGPD art. 7, IX; GDPR art. 6(1)(f)).

### 2.13 Databases

A Space can hold databases: tables you and the people in the Space create in Niv, if a Space owner has Niv Pro. They work differently from your notes:

- **Not end-to-end encrypted.** What you type into a database (its rows, column names and title) is stored with **Turso**, in the United States. Turso's documentation says it's encrypted at rest, at the volume level. It could be read by Turso's staff and systems, by us with an administrator's access, by someone who broke into either, and by an authority with a lawful request.
- **Linked notes stay encrypted.** A cell that links a note holds only that note's id, never its title or content. Your device fills in the title.
- **The people in your Space** can read a Space's databases, each with their own short-lived access.
- **Agents.** An AI agent you use can read a Space's databases and change them through niv, our command-line tool, with your access and no more. What it reads goes, readable, to its AI provider, under that provider's terms, as section 2.4 says.
- **A history of changes.** Each database keeps a trail of who changed what and when, which lets people undo a change. A change by an agent shows as an agent's, with the person it acted for and the name it gave, if it gave one. Section 7 says for how long.

Don't put in a database what you wouldn't want readable by the server: put it in a note and link the note.

**Why:** to provide databases you can sort, filter and share.
**Legal basis:** performing our contract with you (LGPD art. 7, V; GDPR art. 6(1)(b)).

## 3. Spaces not yet encrypted

Every Space created now is encrypted from the start. A Space created before encryption stays as it was until its owner turns on encryption in the desktop app, which then encrypts it (once its members have turned encryption on too). There is no deadline, and we don't delete a Space for staying unencrypted. Until it is encrypted, it is stored readable on our servers as before: its notes, names, history and images (anyone with an image's link can open it), and **search fingerprints** (embeddings) of its notes, made by a background job run by **Trigger.dev** (US) that sends the note's title and text to **OpenAI's API** (US), for semantic search used by Niv's integrations such as the MCP server. Under OpenAI's API terms, this data is not used to train its models. When the Space is encrypted, its readable notes, names, history and embeddings are deleted from our servers. Its images get new, encrypted copies, and each old image is deleted from its public link unless it is still in use elsewhere: on a published page, in a Space not yet encrypted, or added by someone who isn't a member. If deleting one fails, we try again later; until then that old image stays reachable at its link. 
**Legal basis:** performing our contract with you (LGPD art. 7, V; GDPR art. 6(1)(b)).

## 4. What we don't do

- We don't **sell** your personal data, and we don't **share** it for cross-context behavioral advertising (as those words are defined in California law).
- We don't use your notes to train AI models, and we don't let our providers do so (also for the titles that choose icons, section 2.12).
- We don't make decisions about you based only on automated processing that have legal or similarly significant effects.

## 5. Who we share data with

We share data only with:

- **Service providers** that run parts of Niv for us, under contracts that limit them to our instructions:

| Provider | What they do | Data | Where |
|---|---|---|---|
| Railway | Hosts our servers, database and cache | Everything in section 2.1–2.3, 2.5, 2.9, 2.11, and the titles of 2.12 while they pass through (your notes as encrypted data it can't read) | United States (US East) |
| Cloudflare | Website hosting, DNS, file storage for images and app downloads. When you unpublish a note, when a deleted note is erased, and when a Space is deleted, we delete there the published images nothing else shows, and ask it to clear its cached copies of those pages | Website requests, uploaded images (encrypted), images of published pages, download requests | Global network; storage in North America  |
| Resend | Sends sign-in, invitation and account-deletion confirmation emails | Email address, sign-in code or link, invitation (with the Space's name and icon when the person inviting shows them; a picture goes as a link to our server, not as an attachment) | United States |
| PostHog | Product and site analytics, with your email and name on your analytics profile, unless you objected (sections 2.6 and 2.7), logs and website recordings. When you delete your account, we delete your analytics profile and its events there; events under a device ID or a random ID aren't linked to it and go when their time ends (section 7). Our application logs there can also hold your account ID; deleting your account doesn't reach them, and they are erased when their retention ends (section 7) | Data in 2.6, 2.7, 2.9 | United States |
| Trigger.dev | Runs background jobs, including erasing deleted Spaces and accounts, and, every day, erasing deleted notes once their 30 days in the trash are over (those jobs carry a random identifier or nothing, never your data) | For Spaces not yet encrypted (section 3), note content while a job runs. While your account is erased: your account ID, your Stripe customer identifiers and your first payment (to end your subscription, and refund that payment when it's due), and the token from Sign in with Apple, decrypted only to revoke it | United States  |
| OpenAI | Creates embeddings, only for Spaces not yet encrypted (section 3) | Note titles and text | United States |
| Vercel (AI Gateway) | Passes a new note's title to the AI model that chooses its icon, and its answer back, keeping neither (section 2.12) | The note's title | United States |
| TypeSafe AI | Its model (Jev) chooses a new note's icon from its title (section 2.12) | The note's title | United States |
| Apple, Google, GitHub | Sign-in, if you choose them | What's described in 2.1 | United States |
| Our accounting firm | Issues the electronic service invoice (NFS-e) for each Niv Pro payment and keeps our books, as Brazilian tax law requires (LGPD art. 7, II) | For each payment: the buyer's name, email, billing address, CPF or CNPJ if given, the amount and the date | Brazil |
| Stripe (in Brazil, Stripe Brasil Soluções de Pagamento Ltda., CNPJ 22.121.209/0001-46) | Processes Niv Pro payments, and hosts the checkout and the page where you manage or cancel your subscription. When you delete your account, we delete your customer record there, which ends your subscription | Name, email, payment details, billing details, payment history | United States and Ireland  |
| RevenueCat | Handles the phone app's App Store and Google Play purchases, and tells us when a subscription starts, renews or ends. When you delete your account, we delete your record there | Your Niv account ID; for each purchase, the store, product, transaction identifiers, price, currency and country; the app's and phone system's versions and the phone's IP address | United States |
| Turso | Stores the rows of databases in a Space, under a data processing agreement. When a database, a Space or an account is deleted, we delete its databases there (section 7) | What you type into databases, the ids of the people who changed it, and the names agents gave | United States (AWS US East) |

Stripe is also an **independent controller** of the payment data it uses to prevent fraud and to meet its own legal duties; for that use, [Stripe's privacy notice](https://stripe.com/privacy) applies.

Apple and Google sell Niv Pro in the phone app as **independent controllers**: they take the payment, keep your store account and purchases, and host the pages where you manage, cancel or ask for a refund, under [Apple's privacy policy](https://www.apple.com/legal/privacy/) and [Google's](https://policies.google.com/privacy). For purchases, we don't send them your name, email or notes.

- **Other members of your Space**, as described in 2.2, and **everyone**, for notes you publish.
- **Authorities**, when the law requires it, or to protect the rights, property or safety of our users, the public or Niv. We can only hand over what we hold: your notes as encrypted data we can't read, the facts listed in 2.2 and, if you subscribe to Niv Pro, what 2.11 lists.
- **Brazil's national electronic invoice system (NFS-e)**, which receives, through our accounting firm, what each Niv Pro payment's invoice needs, as Brazilian tax law requires.
- **A buyer or successor**, if Niv's business is transferred. We'd tell you first, and this policy would keep applying to your data.

## 6. International transfers

Niv is run from Brazil, and our servers and providers are mostly in the **United States**. So your data is transferred to the US, wherever you live.

- **From Brazil**, we rely on transfers necessary to perform our contract with you at your request (LGPD art. 33, V) and on contracts with our providers, including the ANPD standard contractual clauses where our providers offer them (LGPD art. 33, II, b).
- **From the EU, EEA, UK or Switzerland**, we rely on the European Commission's (or UK) standard contractual clauses, or on a provider's certification under the EU-US Data Privacy Framework where it has one, plus the safeguards in our providers' contracts.

Ask us at hey@niv.md for more about these safeguards.

## 7. How long we keep data

| Data | How long |
|---|---|
| Account and profile | While your account exists. When you delete it in the app, erasing starts at once and usually finishes within minutes; when you ask us by email, within 30 days. What stays: access records, which the law (Marco Civil da Internet, art. 15) requires us to keep for 6 months, also after your account is deleted, and then erased; the invoices for your Niv Pro payments, which tax law requires us to keep (see the Niv Pro rows); and, in Spaces shared with others, what you wrote there (see the next row). If you pay for Niv Pro, deleting your account ends it at once; within 14 days of your first payment that payment is refunded in full, after that the rest of the period is not refunded. |
| Notes, structure, images, history and Space data (encrypted) | While the note or Space exists. A deleted note goes to the trash and stays there, with its history and images, for 30 days; then we erase it for good. A deleted folder's name is erased the same way, 30 days after it goes to the trash, but a page you published keeps showing its folder path until you republish or unpublish it. Images in encrypted Spaces stay until the Space is deleted (deleting your account deletes the Spaces only you are in). You can also ask us by email to erase a note, which we do within 30 days. When an owner deletes a Space, all of it is erased: notes, history, images, comments, members and invitations; its published pages are taken down at once, and we ask our CDN to clear their cached copies, which expire within a day in any case. When you delete your account, the Spaces only you are in are deleted with it; in Spaces shared with others, your notes, comments and history stay for them, shown as "Deleted account", with no name, email or picture, until that Space is deleted. |
| An invitation's readable copy of the Space's name and icon (a picture icon as a small copy) | Until the invitation is accepted, declined or cancelled, or within an hour after it expires (7 days), or until the Space or the account of the person who invited is deleted, whichever comes first. A picture under a legal hold is kept while the hold lasts. A copy in an email already sent, or in a link preview kept by another app, is outside our reach. |
| The address of a Space's invite link (a simplified form of its name) | While the Space exists. When the Space is deleted, we delete the address and only a fingerprint of it stays, which does not hold the name itself, but from which a common name can be worked out. |
| Databases (rows, columns, titles) | While the database exists. A deleted row leaves its table at once; its content stays in the history below for 30 days. A deleted database goes to the Space's trash for 30 days, then we delete it. When a Space or an account is deleted, we delete that Space's databases in the same process, and all ways in go at once. Turso's own copies go in their own time: what's deleted can remain in the database's file until new data overwrites it, a deleted row or value can be restored from Turso's backups for 10 days, and a deleted database stays recoverable there for 5 days. We can't shorten these, and we don't restore from them on our own. |
| A database's history of changes | A row's old values (a deleted row's content, what a cell held before an edit, what a new row held) stay for 30 days, and are erased within about 31. After that the line stays: who, what and when, with no values, and that change can't be undone. Column names, choices, formulas and row numbers are part of the line. An import's file name goes at the same time. In a very active database, older lines can be removed to save space, once its history passes 200 MB, never one under 30 days old. Erased means gone from the database and from what people can read; leftovers can remain in the database's file until new data overwrites them, and in Turso's backups until they age out, as above. |
| A database exported as a `.sqlite` file | We build the file on our server, where it's readable until you fetch it. We delete it when the download ends or is dropped, when you cancel, about a minute after you close the app, and 15 minutes after the export started if the download hasn't begun. A download already running can take up to 15 minutes more, so the file lasts just under 30 minutes at worst. |
| In a Space that stays, after you delete your account | What you typed in its databases stays, as your notes do. Your name is gone, and your changes show as "Deleted account"; the id they were recorded under stays in those rows and in the history. A name an agent gave when it changed something for you goes from the history within about an hour, longer if that database is unavailable; Turso's own copies go in their own time, as above. |
| Public keys and the encrypted copy of your private keys | While your account exists. The encrypted copy of your private keys is deleted with it. Your public keys stay only while anything you wrote or signed remains in a Space shared with others, so its members can still check it, and go with it. | | Niv Pro (your plan and Stripe's identifiers) | While your account exists. When you delete it, your plan and Stripe's identifiers go with it, and we ask Stripe to delete your customer record; Stripe keeps records of past payments as long as the law requires it to ([Stripe's privacy notice](https://stripe.com/privacy)). We keep the identifiers of the payment events we handled for 30 days, so we never act on one twice. |
| Niv Pro from the App Store or Google Play (the store, the product and the subscription's status) | While your account exists; deleted with it. We keep the identifiers of the store events RevenueCat sends us for 30 days, with no link to your account, so we never act on one twice. When you delete your account, we ask RevenueCat to delete its record of you and your purchases; Apple and Google keep theirs under their own policies. |
| Niv Pro invoices (NFS-e) and the payment data on them | 5 years, as Brazilian tax law requires, also after your account is deleted; then erased. |
| Embeddings (Spaces not yet encrypted) | Until the note changes, or the Space is encrypted or deleted. |
| A note's title, sent to choose its icon (section 2.12) | Not stored by us. The AI Gateway and the model keep it only while they answer. |
| Published pages | Shown until you unpublish or delete the note; copies cached by our CDN can stay visible for up to a day after that. When you unpublish, we erase the published copy and its images from our servers at once; when you delete the note, they're erased with it after its 30 days in the trash. |
| Sign-in sessions | Until they expire or you sign out. A session expires about 7 days after its last use; one started by niv, our command line tool, 30 days after its last use. |
| The record of why a sign-in ended (account, whether it was a niv sign-in, reason, time and a fingerprint of its token) | 90 days. Nothing is recorded when the account is deleted, and deleting the account erases the records. |
| Sign-in codes and links | Minutes. |
| Abuse counters | Up to 1 hour. |
| Server and app logs | Up to 30 days (our hosting provider keeps request logs up to 30 days; our application logs, which PostHog stores for us, 14 days). They can include your account ID and IP address and, if you subscribe to Niv Pro, Stripe's identifiers for your payments and subscription. Deleting your account doesn't erase them early: they go when this time ends. |
| Backups | We don't keep backups of our database. Turso keeps its own restore window for databases (above). |
| Access records (date, time, IP address, account, the part of Niv used, and the browser or app version) | 6 months, as required by Marco Civil da Internet art. 15, also after your account is deleted; then erased. |
| Usage data: product events from the apps and our server, and the website's counts and events | 12 months. |
| Your analytics profile (email, name, how you heard of Niv, your promotional email choice, where your first visit to niv.md came from) | While your account exists; deleted with it, with the events linked to it. |
| Your choices on niv.md (the `niv-consent` and `niv-count` cookies) | 1 year, in your browser. |
| Where your first visit to niv.md came from (the `niv-first-touch` cookie, written only while this browser may be identified) | 1 year, in your browser; removed when you choose Don't identify me, turn Analytics off or object to the count. On your analytics profile, if it came with the sign-in that created your account: while your account exists. |
| PostHog's cookie on niv.md (`ph_…_posthog`) | 1 year, in your browser: outside the EU, the EEA, the UK and Switzerland from the first page, there after you turn Analytics on. Removed when you choose Don't identify me or object to the count, and replaced by a new one after you sign in on niv.md. |
| Records of your choices on linking your usage to your account and on promotional email | While your account exists. After it's deleted, only what we'd need to answer a legal claim about those choices. |
| Website session recordings | 30 days. |
| Waitlist | Until the platform launches and we've told you, or until you ask to leave; at most 24 months. |
| Messages you send us | 3 years after the conversation ends, to handle follow-up and legal claims. |
| Reports of published pages (the form) | Until we handle them, then 1 year; then erased, unless a report is part of an open legal claim. If you delete your Niv account, the reports you sent with its email address are erased with it, unless one is part of an open legal claim. A report sent by email is a message to us (the row above). |
| A published file under a legal hold (always for a child-safety report) | While the legal hold lasts, even after the page, the Space or the uploading account is deleted. When Niv ends the hold, the copy is deleted and the record no longer says which Space, file, pages or account it was. |

## 8. Your rights

Wherever you live, you can ask us to:

- **confirm** whether we process your data, and **access** it;
- **correct** it;
- **delete** it (including your whole account), or anonymize or block data that is unnecessary;
- give you a **copy** in a portable format;
- tell you **who we shared it with**;
- **withdraw consent**, where we rely on it, without affecting what we did before;
- **object** to processing based on legitimate interest, such as product analytics (section 2.6) and the website's count of visits (section 2.7);
- have a person review decisions made only by automated processing (we make none).

Your notes are already yours in an open format: the Markdown files on your device are the copy you keep, whatever happens to your account.

**Because we can't read your notes:** a copy we send you contains the facts in 2.2 and your notes as the encrypted data we hold; the readable copy is on your devices. You correct a note's content yourself, in the app. Deletion works the same as for any other data. We can't check whether a note mentions someone, so a request about what a Space's notes say is passed to that Space's members, who can read them.

**How:** email hey@niv.md from the address on your account. We may ask you to confirm it's you. We'll answer within **15 days**, and sooner where the law requires. We don't charge for requests. If you are unhappy with our answer, you can complain to your data protection authority (see section 9).

**In the app:** Settings › Account › Delete my account erases your account; Settings › Space › Delete this Space (for owners) erases a Space. Each asks you to confirm, and an account also by a code we email you. Neither can be undone. Settings › Space › Leave this Space takes you out of a Space; what you wrote there stays for its members. The Markdown files on your devices stay where they are. If you subscribe to Niv Pro, deleting your account ends the subscription at once (within 14 days of your first payment, that payment is refunded in full; after that, the rest of the period is not refunded); to stop paying and keep your account, cancel in Settings › Account › Plan › Manage subscription.

## 9. Where you live

### Brazil (LGPD)

You have all the rights in LGPD art. 18, including information about the consequences of refusing consent and about the public and private entities we share data with. You may complain to the **Autoridade Nacional de Proteção de Dados (ANPD)** at gov.br/anpd, after contacting us first. Our encarregado is Gabriel Araujo, at hey@niv.md. As a consumer you can also turn to consumer protection bodies (Procon, consumidor.gov.br).

### United States — California and other states

This section is the notice required by the California Consumer Privacy Act as amended (CCPA) and similar laws in other US states (such as Colorado, Connecticut, Virginia, Texas and Oregon), to the extent they apply to Niv.

**Categories collected in the last 12 months** (and where from, why, and who receives them, as described above):

| Category (CCPA) | Examples | Source | Disclosed for a business purpose to |
|---|---|---|---|
| Identifiers | Name, email, account ID, IP address, device ID | You, your device, Apple/Google/GitHub | Service providers in section 5 |
| Customer records | Email, name | You | Service providers |
| Commercial information | Your Niv Pro plan and its period, Stripe's identifiers, and each payment's invoice data (your payment details are held by Stripe); for a store subscription, the store, the product and its status | You, Stripe, RevenueCat | Service providers, including Stripe, RevenueCat and our accounting firm |
| Internet or network activity | App usage events, logs, website interactions and recordings (with consent) | Your device, your browser | Service providers |
| Approximate location | Inferred from IP address | Your device | Service providers |
| Content of your notes and files | Notes, images, history (encrypted: we can't read them) | You | Service providers (encrypted); Space members; the public, if you publish |
| Inferences | None | — | — |
| Sensitive personal information | Account sign-in credentials (sign-in session). We do not use sensitive personal information to infer characteristics about you. | You | Service providers |

- **Selling and sharing:** we have not sold or shared personal information in the last 12 months, and we don't knowingly sell or share data of anyone under 16.
- **Global Privacy Control:** we honor GPC as a request to opt out: niv.md doesn't identify your browser (it only counts visits, with no cookie) unless you choose otherwise.
- **Your rights:** to know, delete, correct, opt out of sale or sharing, and limit use of sensitive personal information (which we only use as permitted). We won't treat you differently for using them.
- **Authorized agents:** someone you authorize can make a request for you; we may ask for proof of the authorization and to verify your identity directly.
- **Appeals:** if we refuse a request, you can appeal by replying to our answer. If you're still unhappy, you can contact your state attorney general.
- **Retention:** see section 7.

### European Economic Area, United Kingdom and Switzerland

Our legal bases are listed in section 2. You have the rights in section 8, including the right to restrict processing, and to complain to your local data protection authority. Niv does not have a representative in the EU or UK. 
## 10. Security

Your notes are end-to-end encrypted: your device encrypts them before anything leaves it, and only you and the members you let in hold the keys. We also use encryption in transit (HTTPS/TLS) everywhere, keep your desktop sign-in in the macOS Keychain, limit who can access production systems, and keep the data our app sends about usage free of your content by design. No system is perfectly secure; if a breach affects you, we'll tell you and the authorities as the law requires (including LGPD art. 48).

**Your passphrase and recovery file.** We can't reset or recover them. If you lose both, nobody can open your encrypted notes, including us, and we can't restore your access to them. Today your account can't set up new encryption keys either. Keep your recovery file in two places, like a USB drive and a password manager.

## 11. Children

Niv is not for children under 13. You must be at least 13 to use Niv, and at least 16 in the EEA or UK where local law sets that age for consent. If you are under 18, you need permission from a parent or guardian.

We don't knowingly collect personal data from children under 13. If we learn that we have, we'll delete it. If you believe a child under 13 has given us data, write to hey@niv.md.

## 12. Changes to this policy

When we change this policy, we'll update the date at the top. If a change matters — new uses of your data or new kinds of data — we'll tell you in the app or by email before it takes effect, and ask for your consent where the law requires it.

## 13. Contact

GABRIEL ARAUJO RUDY CONSULTORIA EM TECNOLOGIA DA INFORMACAO (Niv)
CNPJ 48.868.347/0001-87
Avenida Prefeito Osmar Cunha, 416, Sala 1108, Centro, Florianópolis/SC, CEP 88015-100, Brazil
hey@niv.md

---

More: [Niv](https://niv.md/) · [About](https://niv.md/about) · [Contact](https://niv.md/contact) · [Privacy](https://niv.md/privacy) · [Encryption](https://niv.md/encryption) · [Terms](https://niv.md/terms) · [llms.txt](https://niv.md/llms.txt) · [Português (Brasil)](https://niv.md/pt-br/privacy)
