โ† Back to NeoLeaf
This page is only available in English, Portuguese, Spanish and Chinese. The English text is shown instead.
๐Ÿ”’ General Data Protection Law (LGPD)

Privacy Policy

Last updated: November 2026 ยท NeoLeaf (https://neoleaf.science)

1. Commitment to Privacy and the LGPD

NeoLeaf values the privacy, sovereignty and security of the data of its users, researchers, academics and developers. This Privacy Policy explains clearly, transparently and accessibly how we handle data in accordance with the Brazilian General Data Protection Law (LGPD, Law No. 13.709/2018) and other applicable international legislation.

Our architecture was designed under the principle of Privacy by Design and Data Minimization (Art. 6, III of the LGPD): we collect only what is strictly necessary to provide the editor experience and the synchronization with your GitHub or Codeberg.

2. Privacy-Oriented Architecture: 100% Compilation in the Browser

โšก Your LaTeX code and papers are never compiled on our servers.
LaTeX documents are compiled entirely inside the user's web browser, using engines compiled to WebAssembly (WASM). The text files, bibliographies, images and the generated PDF files are processed on your machine and stored directly in your repository on GitHub or Codeberg.

Unlike legacy cloud platforms, the NeoLeaf server does not process or inspect the academic or intellectual content of your texts to generate the PDF. Your data stays under your control and on your Git infrastructure.

The optional AI assistant works the same way: it only runs if you turn it on and paste your own key from an AI provider, and it talks to that provider straight from your browser. NeoLeaf does not receive, store or log your key, your questions, the answers or the text of your files.

3. Personal Data Processed and Purposes

The only data processed by NeoLeaf falls into the following categories:

  • Authentication Data (GitHub or Codeberg OAuth): numeric ID on the chosen service, username (login), public display name, registered email and public profile picture (avatar).
    Purpose: Identify your session, show your participation in collaborative projects and check access permissions (Legal basis: Art. 7, V of the LGPD, performance of a contract).
  • Access Tokens (GitHub or Codeberg): Tokens granted by you at sign-in to access repositories tagged [neoleaf]. On Codeberg, NeoLeaf also keeps the refresh token, used to keep the session alive. The server keeps them in an encrypted file (AES-256-GCM).
    Purpose: Allow cloning, commit (Push/Pull) and synchronization operations with your repository on GitHub or Codeberg (Legal basis: Art. 7, V of the LGPD).
  • Real-Time Collaboration: Cursor presence, text selection and simultaneous edits shared among authorized collaborators.
    Purpose: Real-time synchronization between you and the people you invited to your repository on GitHub or Codeberg. Signaling data is ephemeral and discarded after the WebSocket session ends.
  • Technical Connection Logs: Source IP address, date/time of the request, accessed URL and the browser's User-Agent header.
    Purpose: Ensure operational security, mitigate denial-of-service (DDoS) attacks and meet the legal record-keeping obligations of the Marco Civil da Internet (Law No. 12.965/2014, Art. 15).

4. No Advertising Trackers

NeoLeaf does not sell, rent or share users' personal data with advertising partners or data brokers.

Our system does not include:

  • No tracking pixel (such as Meta Pixel or TikTok Pixel);
  • No third-party behavioral marketing tool or invasive analytics;
  • No targeted advertising.

5. Use of Cookies and Local Storage

NeoLeaf uses only cookies and storage features that are strictly necessary for secure technical operation:

  • latex_session: Cryptographic identifier of the active session, generated on the server with the HttpOnly, Secure and SameSite=Lax attributes (expires 30 days after sign-in).
  • oauth_state: Temporary token protecting against cross-site request forgery (CSRF) attacks, valid for 10 minutes during sign-in.
  • ld_lang / ld_theme (or LocalStorage): Records your visual preferences (light/dark theme) and selected language.
  • neoleaf.ai.* (LocalStorage): Only if you use the AI assistant: the provider, your API key, the model, the name you gave the assistant and the conversation, kept in your browser for your account. NeoLeaf never receives them. Signing out or Delete all local data removes them, and Forget the key removes the key.
  • neoleaf.ai.webmcp.* (LocalStorage): Only if you use browser agents: whether you allowed them. Signing out or Delete all local data removes it.
  • IndexedDB (Browser): The local copy of the projects you open (files and Git history), kept on your own computer so the editor is fast. NeoLeaf does not encrypt this copy. Anyone who can use your browser profile can read it with the browser's developer tools. On a shared computer, use a separate browser profile or a private window, turn on your operating system's disk encryption, and use Sign out: it deletes all NeoLeaf data stored in the browser (your language and theme choices stay). You can also see and remove local copies at any time in your profile, in the Storage tab.

6. Strictly Necessary Sharing with Third Parties

To keep the service online with high availability and security, data travels exclusively through the following infrastructure partners:

  • GitHub Inc.: For authentication via the OAuth protocol and operations on the Git repository of the user who signs in with GitHub.
  • Codeberg e.V.: For authentication via the OAuth protocol and operations on the Git repository of the user who signs in with Codeberg.
  • Cloudflare Inc.: Content delivery network (CDN), protection against DDoS attacks and encrypted SSL/TLS termination.
  • Oracle Cloud Infrastructure: Application server where the NeoLeaf binary runs in a restricted and protected way.

Services your browser contacts directly, not through NeoLeaf, and only in these cases: the editor libraries (Monaco and PDF.js) are delivered by Cloudflare's cdnjs; the home page loads the Green Web Foundation badge (app.greenweb.org) to show that the hosting runs on green energy; the spell check dictionaries are downloaded from GitHub (raw.githubusercontent.com, with the jsDelivr mirror as a backup), only after you agree, and kept in your browser; when you open a Typst project, one font (New Computer Modern) is downloaded from GitHub (raw.githubusercontent.com, with the jsDelivr mirror as a backup) and kept in your browser, and the Typst packages a document imports (packages.typst.org) are downloaded when you compile it; and in the References tab your searches go from your browser to the paper services you use, and when you complete a bibliography entry from its DOI the DOI goes to Crossref (or to OpenAlex if Crossref does not know it) (Crossref, OpenAlex, PubMed, Europe PMC, DOAJ, HAL, Zenodo, OpenAIRE and Unpaywall; arXiv and DBLP are queried through the NeoLeaf server, which does not log the query). These services receive your IP address and, in the References tab, the search text or the DOI, and they have their own privacy policies. NeoLeaf does not send them your project files.

AI providers (optional). If you turn on the AI assistant and give it your own key, your browser sends the questions you write, the passages you select and the text of the project files the assistant reads (which can include your co-authors' text) directly to the provider you chose (Anthropic, OpenAI, Google, OpenRouter or another server you name). This does not pass through NeoLeaf, and NeoLeaf does not choose or control the provider: its own terms and privacy policy apply to that data, and the use is charged to your account there. The assistant never changes a file by itself.

Browser agents (optional). If you turn on Browser agents in the AI tab (offered only when your browser supports WebMCP), an AI agent that runs in your browser, such as an assistant built into the browser or an extension, can call tools of NeoLeaf to read the files of the open project and to propose comments and suggestions. What it reads goes to that agent, which NeoLeaf does not choose, receive anything from or control; the agent's own terms apply. An extension that can run scripts in the page could use the same tools while the option is on. The option is off by default, you can turn it off at any time, and the tools never change a file by themselves.

7. Your Rights as a Data Subject (Art. 18 of the LGPD)

You have the full rights provided for by Article 18 of the LGPD, including:

  • Confirmation and Access: Check which data we keep and access your projects at any time.
  • Full Portability: Since your projects are ordinary Git repositories on GitHub or Codeberg, you can clone them, export them and use them in any other environment without any technological lock-in (*vendor lock-in*).
  • Erasure and Revocation: When you click the Sign out (Logout) button, your session is immediately revoked on the server and the NeoLeaf data stored in your browser is deleted (your language and theme choices stay). You can revoke NeoLeaf's authorization at any time directly in your GitHub Application Settings or on Codeberg.
  • Account deletion: You can delete your account at any time by clicking your name (profile) and "Delete my account". Deletion ends all your sessions, revokes NeoLeaf's authorization on your GitHub account (people who signed in with Codeberg remove the authorization in Codeberg's own application settings) and erases the information NeoLeaf keeps on the server (the session, with the GitHub or Codeberg access token), without changing any repository. Your project files are not on the server: they are in your browser's storage (which you can clear in its settings) and in your repository (GitHub or Codeberg). Only the technical connection records that the law requires us to keep remain (Marco Civil da Internet, Art. 15).

8. Data Protection Officer and Contact Channel

To exercise your rights as a data subject, request clarification about the processing of personal data or send any question about our privacy, contact our team directly:

NeoLeaf Privacy Channel:

Official email: [email protected]

Service in accordance with the guidelines of the National Data Protection Authority (ANPD).

Back to the Home Page