Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 45 additions & 18 deletions PRIVACY.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,34 @@
# SourceBraid Privacy

Last updated: October 12, 2026
Last updated: November 26, 2026

SourceBraid is open-source software that stores captured sources in a GitHub
repository selected and controlled by the user. The Chrome/iOS capture clients,
local Codex plugin, and prepared hosted ChatGPT service have different data
flows, described below. The hosted service is not yet deployed; this notice
repository selected and controlled by the user. The browser and iOS capture
clients, local Codex plugin, and prepared hosted ChatGPT service have different
data flows, described below. The hosted service is not yet deployed; this notice
describes the implementation prepared for its release.

## Data handled by SourceBraid

- The Chrome extension and iOS app process the page, document, selected text,
notes, tags, and images that the user chooses to save.
- The Chrome extension reads the active page only after the user starts a Save
or Download capture and accepts the first-use disclosure. A fallback download
remains on the user's device.
- The Chrome and Firefox extensions and iOS app process the page, document,
selected text, notes, tags, and images that the user chooses to save.
- The browser extension reads the active page content after the user starts a
Save or Download capture and accepts the first-use disclosure. A fallback
download stores the resulting Markdown on the user's device. Source requests
may still be needed to prepare it.
- Captured Markdown, metadata, original PDFs, and related assets are sent
directly to the GitHub repository configured by the user.
- Chrome/iOS credentials and configuration are stored by the relevant client
using browser storage or iOS Keychain. Users should restrict each fine-grained
GitHub token to the intended archive repository.
- The browser extensions store credentials and configuration in the local
browser profile. The iOS client uses Keychain for credentials. Users should
restrict each fine-grained GitHub token to the intended archive repository.
- Firefox shows its data permissions during installation. Authentication
information covers the configured account and credentials. Browsing activity
covers the URL of the page the user chooses to capture. Website content covers
the selected page or PDF and its assets. A GitHub save sends these captured
materials, source metadata, and user-entered tags or notes over HTTPS to the
configured repository through GitHub's API. Capture starts from a user action.
Firefox extension requests for source APIs, PDFs, and assets also use HTTPS.
SourceBraid servers receive no browser captures or telemetry.
- The local Codex plugin reads the configured archive, stores cached Markdown
and a disposable SQLite index locally, and can perform explicitly confirmed
deletion or metadata migration through GitHub. Its credentials come from the
Expand Down Expand Up @@ -111,8 +120,9 @@ OpenAI. These providers process connection or requested content data according
to their respective service terms and privacy policies. The GitHub repository
and Git history remain the authoritative archive.

If the user configures Ghost or Blogger source APIs, the Chrome extension sends
the necessary request and configured API credential directly to that service.
If the user configures Ghost or Blogger source APIs, the browser extension sends
the necessary request and configured API credential directly to that service over
HTTPS. Some protected sources use the browser's existing session with that site.
SourceBraid does not include GitHub tokens or optional API credentials in its
exported plugin configuration.

Expand All @@ -134,10 +144,27 @@ public issue.
## Deutsch

SourceBraid speichert Captures in einem vom Nutzer kontrollierten
GitHub-Repository. Chrome und iOS schreiben direkt dorthin; ihre Zugangsdaten
liegen im Browser-Speicher beziehungsweise iOS-Schlüsselbund. Das lokale
Codex-Plugin nutzt lokale Zugangsdaten, Markdown-Kopien und einen neu
aufbaubaren SQLite-Index. Es kann nach Vorschau und neuer ausdrücklicher
GitHub-Repository. Die Erweiterungen für Chrome und Firefox sowie die iOS-App
schreiben direkt dorthin. Die Zugangsdaten liegen lokal im Browserprofil
beziehungsweise im iOS-Schlüsselbund.

Firefox zeigt bei der Installation die Datenberechtigungen an. Dazu gehören
Authentifizierungsdaten für Konto und Zugangsdaten, Browsing-Aktivität für die
URL der zur Erfassung ausgewählten Seite und Website-Inhalte für den gewählten
Seiteninhalt oder das PDF und zugehörige Dateien. Beim Speichern sendet die
Erweiterung die erfassten Inhalte, Quellmetadaten, Tags und Notizen über die
GitHub-API per HTTPS an das konfigurierte Repository. Die Erfassung beginnt
durch eine Nutzeraktion. Die Firefox-Erweiterung lädt auch PDFs und zugehörige
Dateien per HTTPS und nutzt HTTPS für Quell-APIs. SourceBraid-Server erhalten
keine Captures oder Telemetrie aus dem Browser. Der Fallback speichert die
Markdown-Datei lokal.
Zum Erstellen der Datei können Quellabfragen erforderlich sein. Wenn Ghost
oder Blogger konfiguriert ist, sendet SourceBraid die nötigen Anfragen und
API-Zugangsdaten direkt per HTTPS an den jeweiligen Dienst. Manche geschützte
Quellen nutzen die bestehende Browser-Sitzung mit der Website.

Das lokale Codex-Plugin nutzt lokale Zugangsdaten, Markdown-Kopien und einen
neu aufbaubaren SQLite-Index. Es kann nach Vorschau und neuer ausdrücklicher
Bestätigung Clips löschen oder Metadaten migrieren.

Der noch unveröffentlichte iOS-Reader liest Markdown und Assets per
Expand Down
58 changes: 42 additions & 16 deletions README.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ SourceBraid verbindet Capture-Clients, ein privates GitHub-Repository als
dauerhaft maßgebliche Datenquelle und zwei Zugriffswege. Das lokale Codex-Plugin
unterstützt Suche und Archivverwaltung. Die gehostete ChatGPT-Integration mit
reinem Lesezugriff ist für Bereitstellung und Prüfung vorbereitet; sie ist noch
kein öffentlich verfügbarer Dienst. Chrome-Erweiterung und iOS-App schreiben
kein öffentlich verfügbarer Dienst. Die Erweiterungen für Chrome und Firefox sowie die iOS-App schreiben
Captures direkt in das konfigurierte GitHub-Repository. Gehostete
ChatGPT-Anfragen laufen künftig über den SourceBraid-Worker bei Cloudflare,
ohne eine dauerhafte Inhaltsdatenbank anzulegen.
Expand All @@ -34,7 +34,7 @@ Maßgeblich bleiben die Markdown-Dateien und die Git-Historie.
```mermaid
flowchart TD
A["Webseite, Wiki, Gist, arXiv-Paper oder PDF"] --> B{"Capture-Client"}
B -->|Chrome| C["Browser-Erweiterung"]
B -->|Chrome oder Firefox| C["Browser-Erweiterung"]
B -->|iOS| D["App und Share Extension"]
C --> E["Besten Extraktionsadapter wählen"]
D --> E
Expand Down Expand Up @@ -99,7 +99,7 @@ Rebuild oder eine Indexreparatur nötig.
| Quelle oder Format | Bevorzugte Extraktion | Ergebnis in Markdown | Bilder und Anhänge | Fallback |
| --- | --- | --- | --- | --- |
| **arXiv-Paper** | Experimentelle arXiv-HTML-Version des vollständigen Papers | Gliederung, Fließtext, Tabellen, Zitate und LaTeX-Formeln; Autoren, arXiv-ID/-Version, DOI, Fachgebiete und Journalreferenz im Frontmatter | Abbildungen werden in den Asset-Ordner kopiert und relativ verlinkt | PDF herunterladen und mit Docling konvertieren |
| **PDF über HTTP(S) oder lokale Datei** | Original-PDF plus asynchroner Docling-Workflow in GitHub Actions | Lesereihenfolge, Tabellen, OCR-Text und referenzierte Abbildungen; zunächst Status `pending`, danach fertiges Markdown | Original bleibt als `source.pdf` erhalten; extrahierte Abbildungen liegen daneben | Lokale PDFs benötigen in Chrome **Zugriff auf Datei-URLs zulassen**; verschlüsselte oder sitzungsgebundene PDFs werden nicht unterstützt |
| **Web-PDF oder lokale PDF-Datei in Chrome** | Original-PDF plus asynchroner Docling-Workflow in GitHub Actions | Lesereihenfolge, Tabellen, OCR-Text und referenzierte Abbildungen; zunächst Status `pending`, danach fertiges Markdown | Original bleibt als `source.pdf` erhalten; extrahierte Abbildungen liegen daneben | Firefox benötigt eine HTTPS-PDF-URL. Lokale PDFs benötigen in Chrome **Zugriff auf Datei-URLs zulassen**. Verschlüsselte oder sitzungsgebundene PDFs werden nicht unterstützt. |
| **Azure DevOps Wiki** | Authentifizierte Wiki-REST-API liefert das Quell-Markdown | Azure-Makros werden normalisiert, Mermaid bleibt als `mermaid`-Codeblock erhalten, interne Wiki-Links werden absolut | Geschützte Anhänge werden über den weiterhin authentifizierten Quell-Tab geladen und lokal abgelegt | Gerenderter `.markdown-content`-Bereich, falls die API nicht erreichbar ist |
| **GitHub Gist** | GitHub Gist API, bei privaten Gists mit dem konfigurierten Token | Einzelne Markdown-Datei direkt; mehrere Dateien als Abschnitte; Quellcode in Codeblöcken mit Sprachkennung | Öffentliche Bilder direkt, geschützte GitHub-Bilder über den Gist-Tab mit aktiver GitHub-Sitzung | Die Revision einer revisionsspezifischen URL bleibt erhalten |
| **Natives Markdown** | HTTP-Antwort auf `Accept: text/markdown`, z. B. bei Hashnode oder entsprechend konfigurierten Cloudflare-Seiten | Quell-Frontmatter und doppeltes H1 werden entfernt; relative Links werden absolut | Relevante Bilder werden lokal gespeichert und relativ verlinkt | Danach greifen die spezifischen APIs oder die DOM-Extraktion |
Expand Down Expand Up @@ -183,9 +183,9 @@ Konvertierung.

### Allgemeine PDFs

SourceBraid unterstützt sowohl PDF-URLs über HTTP(S) als auch lokale, in Chrome
geöffnete `.pdf`-Dateien. Für lokale Dateien muss unter `chrome://extensions` in
den Details von SourceBraid einmalig **Zugriff auf Datei-URLs zulassen**
SourceBraid unterstützt in Firefox PDFs über HTTPS und in Chrome PDFs über
HTTP(S) oder lokale `.pdf`-Dateien. Für lokale Dateien muss unter
`chrome://extensions` in den Details von SourceBraid einmalig **Zugriff auf Datei-URLs zulassen**
aktiviert sein. Ist die Berechtigung nicht gesetzt, zeigt die Erweiterung eine
konkrete Anleitung an und legt keinen leeren HTML-Clip an.

Expand Down Expand Up @@ -249,7 +249,34 @@ zusätzlich den konfigurierten GitHub-Token, sofern dieser Leserechte für Gists
besitzt. Zugriffsgeschützte GitHub-Bilder können über den weiterhin geöffneten
Gist-Tab mit aktiver GitHub-Sitzung geladen werden.

## Chrome-Installation aus dem Quellcode
## Browser-Erweiterung installieren

### Firefox für Desktop

SourceBraid läuft ab Version **140** in regulären Firefox-Desktopfenstern. Vor
der Veröffentlichung auf Mozilla Add-ons kannst du das ZIP aus diesem Checkout bauen.

```bash
python3 scripts/build_firefox_package.py
```

1. `about:debugging#/runtime/this-firefox` in einem regulären Firefox-Fenster öffnen.
2. **Temporäres Add-on laden** wählen und `dist/sourcebraid-firefox-v1.1.1.zip` auswählen.
3. Eine Webseite öffnen und im Erweiterungsmenü **SourceBraid** wählen. Im
Popup das private GitHub-Repository und den Token eintragen, dann **Save to
GitHub** wählen. Auf HTML-Seiten lädt **Download Fallback** eine lokale
Markdown-Datei herunter.

Firefox entfernt das temporäre Add-on beim Neustart. Sobald der Eintrag auf
Mozilla Add-ons verfügbar ist, installiere für die reguläre Nutzung die von
Mozilla signierte Version. Firefox zeigt bei dieser Installation die
erforderlichen Datenberechtigungen an. SourceBraid kann in Firefox Text aus
einer geöffneten HTTP-Seite erfassen. Anfragen für PDFs, Quell-APIs und
Dateien stellt die Firefox-Erweiterung per HTTPS. Die
[Release-Anleitung](RELEASING.md#firefox-package-and-mozilla-add-ons) beschreibt
die Einreichung.

### Chrome-Installation aus dem Quellcode

Bis der Eintrag im Chrome Web Store live ist, lässt sich die geprüfte
Erweiterung aus diesem Checkout laden:
Expand Down Expand Up @@ -312,7 +339,7 @@ Workflows: Read and write
PDF-Upload installiert SourceBraid den mitgelieferten Docling-Workflow, das
Konvertierungsskript und die Requirements-Datei, sofern diese Pfade noch nicht
existieren. Bestehende Dateien werden nicht überschrieben. Der Token wird lokal
im Chrome-Erweiterungsspeicher abgelegt.
im Browserprofil für die Erweiterung abgelegt.

Optionale API-Einstellungen:

Expand Down Expand Up @@ -469,11 +496,10 @@ Plugin und gehostetem Dienst sowie die Lizenzgrenzen.

## Technische Hinweise

Der Quellcode der Chrome-Erweiterung liegt unter
[`chrome-extension/sourcebraid`](chrome-extension/sourcebraid). Die Erweiterung
benötigt keinen Build-Schritt und bindet keine Laufzeitkomponenten von
Drittanbietern ein. Docling läuft ausschließlich in der GitHub Action des
Ziel-Repositorys. Die
HTML-Konvertierung erfolgt lokal in der Erweiterung; API- und Bildzugriffe
nutzen je nach Quelle entweder normale HTTP-Anfragen oder die bestehende
authentifizierte Browser-Sitzung.
Chrome und Firefox verwenden den gemeinsamen Quellcode unter
[`chrome-extension/sourcebraid`](chrome-extension/sourcebraid). Das Firefox-Paket
verwendet eigene Manifest-Einstellungen. Beide Pakete enthalten lesbaren
Erweiterungscode und kommen ohne Laufzeitkomponenten von Drittanbietern aus.
Docling läuft ausschließlich in der GitHub Action des Ziel-Repositorys.
Die HTML-Konvertierung erfolgt lokal in der Erweiterung. Quellabfragen können
bei Bedarf die bestehende Browser-Sitzung nutzen.
53 changes: 39 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ SourceBraid combines capture clients, a private GitHub repository as the durable
source of truth, and two archive-access paths. The local Codex plugin supports
search and archive management. The hosted, read-only ChatGPT integration is
prepared for deployment and review; it is not yet a live public service. The
Chrome extension and iOS app write captures directly to the configured GitHub
repository. Hosted ChatGPT requests will pass through SourceBraid's Cloudflare
Worker without creating a permanent content database.
Chrome and Firefox extensions and the iOS app write captures directly to the
configured GitHub repository. Hosted ChatGPT requests will pass through
SourceBraid's Cloudflare Worker without creating a permanent content database.

The local SQLite index is only a rebuildable search cache. Markdown files and
Git history remain authoritative.

```mermaid
flowchart TD
A["Web page, wiki, Gist, arXiv paper, or PDF"] --> B{"Capture client"}
B -->|Chrome| C["Browser extension"]
B -->|Chrome or Firefox| C["Browser extension"]
B -->|iOS| D["App and Share Extension"]
C --> E["Select the best extraction adapter"]
D --> E
Expand Down Expand Up @@ -90,7 +90,7 @@ index repair.
| Source or format | Preferred extraction | Markdown result | Images and attachments | Fallback |
| --- | --- | --- | --- | --- |
| **arXiv paper** | Experimental full-paper arXiv HTML | Sections, prose, tables, citations, and LaTeX formulas; authors, arXiv ID/version, DOI, categories, and journal reference in frontmatter | Figures are copied into the asset folder and linked relatively | Download the PDF and convert it with Docling |
| **Remote or local PDF** | Original PDF plus asynchronous Docling workflow in GitHub Actions | Reading order, tables, OCR text, and referenced figures; starts as `pending`, then becomes finished Markdown | The original remains as `source.pdf`; extracted figures sit beside it | Local PDFs require Chrome's **Allow access to file URLs** setting; encrypted or session-only PDFs are unsupported |
| **Web PDF or local PDF in Chrome** | Original PDF plus asynchronous Docling workflow in GitHub Actions | Reading order, tables, OCR text, and referenced figures; starts as `pending`, then becomes finished Markdown | The original remains as `source.pdf`; extracted figures sit beside it | Firefox requires an HTTPS PDF URL. Local PDFs require Chrome's **Allow access to file URLs** setting. Encrypted or session-only PDFs are unsupported. |
| **Azure DevOps Wiki** | Authenticated Wiki REST API returns source Markdown | Azure macros are normalized, Mermaid remains a `mermaid` code block, internal wiki links become absolute | Protected attachments are loaded through the still-authenticated source tab | Rendered `.markdown-content` area |
| **GitHub Gist** | GitHub Gist API, with the configured token for private Gists | A single Markdown file directly; multiple files as sections; source code in language-tagged fences | Public images directly, protected GitHub images through the signed-in Gist tab | Revision-specific URLs keep their revision |
| **Native Markdown** | HTTP response to `Accept: text/markdown`, for example from Hashnode or appropriately configured Cloudflare sites | Source frontmatter and duplicate H1 removed; relative links made absolute | Relevant images are stored locally and linked relatively | Continue through dedicated APIs, then DOM extraction |
Expand Down Expand Up @@ -170,7 +170,8 @@ the Docling workflow converts it automatically.

### General PDFs

SourceBraid accepts remote HTTP(S) PDFs and local `.pdf` files opened in Chrome.
SourceBraid accepts HTTPS PDFs in Firefox and HTTP(S) PDFs or local `.pdf` files
in Chrome.
For local files, enable **Allow access to file URLs** in SourceBraid's extension
details at `chrome://extensions`. Without that permission, the extension shows
a concrete instruction instead of producing an empty HTML clip.
Expand Down Expand Up @@ -228,7 +229,31 @@ Public Gists work anonymously. For private Gists, SourceBraid uses the configure
GitHub token when it has Gist read permission. Signed-in GitHub image assets can
be loaded through the still-open Gist tab.

## Chrome installation from source
## Install the browser extension

### Firefox desktop

SourceBraid runs in regular Firefox desktop windows from version **140**. Build
the ZIP from this checkout to try it before the Mozilla Add-ons listing is available.

```bash
python3 scripts/build_firefox_package.py
```

1. Open `about:debugging#/runtime/this-firefox` in a regular Firefox window.
2. Choose **Load Temporary Add-on** and select `dist/sourcebraid-firefox-v1.1.1.zip`.
3. Open a web page and choose **SourceBraid** in the extensions menu. Configure
your private GitHub repository and token in the popup, then choose **Save to
GitHub**. Try **Download Fallback** on an HTML page for a local Markdown file.

Firefox removes the temporary installation when it restarts. Once the add-on is
available on Mozilla Add-ons, install the Mozilla-signed version for regular
use. Firefox displays the required data permissions during that installation.
SourceBraid can capture text from an open HTTP page in Firefox. Requests made by
the Firefox extension for PDFs, source APIs, or assets use HTTPS.
See the [release guide](RELEASING.md#firefox-package-and-mozilla-add-ons) for submission.

### Chrome installation from source

Until the Chrome Web Store listing is live, load the reviewed extension from
this checkout:
Expand Down Expand Up @@ -287,7 +312,7 @@ Workflows: Read and write
`Workflows` is needed only for PDF support. On the first PDF upload, SourceBraid
installs the bundled Docling workflow, conversion script, and requirements file
when those paths do not already exist. Existing files are never overwritten.
The token is stored locally in Chrome extension storage.
The token is stored locally in the browser profile for the extension.

Optional API configuration:

Expand Down Expand Up @@ -431,9 +456,9 @@ the capture, local-plugin, and hosted-service data flows and licensing boundarie

## Technical notes

The Chrome extension source lives under
[`chrome-extension/sourcebraid`](chrome-extension/sourcebraid). It has no build
step and bundles no third-party runtime. Docling runs only inside the target
repository's GitHub Action. HTML conversion happens locally in the extension;
API and image requests use either ordinary HTTP or the browser's existing
authenticated session, depending on the source.
Chrome and Firefox share the extension source under
[`chrome-extension/sourcebraid`](chrome-extension/sourcebraid). The Firefox
package uses its own Firefox manifest settings. Both bundles ship readable
extension code and have no third-party runtime. Docling runs only inside the
target repository's GitHub Action. HTML conversion happens locally in the
extension. Source requests can use the existing browser session where needed.
Loading