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
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@crypt.fyi/core",
"@crypt.fyi/cli",
"@crypt.fyi/extension",
"@crypt.fyi/desktop",
"@crypt.fyi/web",
"@crypt.fyi/server"
]
Expand Down
6 changes: 6 additions & 0 deletions .changeset/desktop-app.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@crypt.fyi/desktop': patch
'@crypt.fyi/core': patch
---

Add a cross-platform desktop app (macOS, Windows, Linux) that lives in the tray and creates end-to-end encrypted secret links from anywhere with a global shortcut, prefilled from the clipboard. Adds its translations to every locale.
113 changes: 113 additions & 0 deletions .github/workflows/desktop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
name: Desktop

# Builds the Tauri desktop app on every platform it ships for. Kept separate from CI so the
# main pipeline never needs a Rust toolchain or native WebView libraries.
on:
push:
branches: [main]
paths:
- 'packages/desktop/**'
- 'packages/core/**'
- 'packages/theme/**'
- 'pnpm-lock.yaml'
- '.github/workflows/desktop.yml'
pull_request:
branches: [main]
paths:
- 'packages/desktop/**'
- 'packages/core/**'
- 'packages/theme/**'
- 'pnpm-lock.yaml'
- '.github/workflows/desktop.yml'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: desktop-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build (${{ matrix.name }})
strategy:
fail-fast: false
matrix:
include:
- name: macOS (Apple Silicon)
platform: macos-latest
args: --target aarch64-apple-darwin
rust-targets: aarch64-apple-darwin
- name: macOS (Intel)
platform: macos-latest
args: --target x86_64-apple-darwin
rust-targets: x86_64-apple-darwin
- name: Linux
platform: ubuntu-22.04
args: ''
rust-targets: ''
- name: Windows
platform: windows-latest
args: ''
rust-targets: ''
runs-on: ${{ matrix.platform }}

steps:
- uses: actions/checkout@v7

- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust-targets }}

- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
workspaces: packages/desktop/src-tauri -> target

- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v7
with:
node-version-file: .nvmrc
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile

# tauri::generate_context! embeds the built frontend, so it must exist before clippy runs;
# turbo builds @crypt.fyi/core first because the frontend imports its dist output.
- name: Build frontend
run: pnpm turbo build --filter=@crypt.fyi/desktop

- name: Lint Rust
working-directory: packages/desktop/src-tauri
run: |
cargo fmt --check
cargo clippy --all-targets ${{ matrix.args }} -- -D warnings

- name: Upload Cargo.lock
if: runner.os == 'Linux'
uses: actions/upload-artifact@v7
with:
name: cargo-lock
path: packages/desktop/src-tauri/Cargo.lock

- name: Build app
uses: tauri-apps/tauri-action@v1
with:
projectPath: packages/desktop
tauriScript: pnpm tauri
args: ${{ matrix.args }}
uploadWorkflowArtifacts: true
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ pnpm-lock.yaml
**/test-results/
**/playwright-report/
**/blob-report/
**/src-tauri/target
**/src-tauri/gen
5 changes: 3 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ pnpm + Turborepo monorepo (`Node >= 22`, Active LTS 26 in `.nvmrc`/CI/Docker; `p
| `@crypt.fyi/server` | Fastify API + Redis |
| `@crypt.fyi/cli` | npm CLI |
| `@crypt.fyi/extension` | Chrome extension |
| `@crypt.fyi/theme` | Design tokens, fonts and theme logic shared by web and extension (private, no build) |
| `@crypt.fyi/desktop` | Tauri tray app (macOS/Windows/Linux); Rust in `src-tauri` is only built by the Desktop workflow (private) |
| `@crypt.fyi/theme` | Design tokens, fonts and theme logic shared by web, extension and desktop (private, no build) |

Encryption/decryption and key material live in `@crypt.fyi/core` and must stay client-side. The server stores ciphertext and verification hashes only — never plaintext secrets or raw keys/passwords.

Expand Down Expand Up @@ -61,7 +62,7 @@ When adding or changing UI copy:

## Theming

Change colors, fonts, radii and theme behavior in `packages/theme`, not per package, so web and the extension stay in step. UI components are not shared: web uses React/shadcn and the extension settings page is plain HTML.
Change colors, fonts, radii and theme behavior in `packages/theme`, not per package, so web, the extension and the desktop app stay in step. UI components are not shared: web uses React/shadcn, while the extension settings page and the desktop app are plain HTML.

## Coding norms

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
- 📱 QR code generation
- ⌨️ [CLI](https://www.npmjs.com/package/@crypt.fyi/cli) for interacting with the API
- 🧩 [Chrome Extension](https://chromewebstore.google.com/detail/cryptfyi/hkmbmkjfjfdbpohlllleaacjkacfhald)
- 🖥️ [Desktop app](./packages/desktop/README.md) for macOS, Windows and Linux: a tray app with a global shortcut that turns your clipboard into a secret link from anywhere
- 🐳 Docker images for the api server and web client
- 🌐 Internationalization support for multiple languages
- Currently supported: [View supported languages](https://github.com/osbytes/crypt.fyi/tree/main/packages/core/src/i18n/locales)
Expand Down Expand Up @@ -197,6 +198,7 @@ Publishable packages: `@crypt.fyi/core` and `@crypt.fyi/cli` (npm), plus the Chr
- [Fastify](https://fastify.dev/)
- [Redis](https://redis.io/)
- [OpenTelemetry](https://opentelemetry.io/)
- [Tauri](https://v2.tauri.app/) (desktop app)

## Known Issues & Development Considerations

Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default [
},
// Browser environment config
{
files: ['packages/web/**/*', 'packages/extension/**/*'],
files: ['packages/web/**/*', 'packages/extension/**/*', 'packages/desktop/**/*'],
languageOptions: {
globals: Object.fromEntries(
Object.entries(globals.browser).map(([key, value]) => [key.trim(), value]),
Expand Down
66 changes: 66 additions & 0 deletions packages/core/src/i18n/locales/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -437,4 +437,70 @@ export const de: TranslationKeys = {
'Wenn Sie Fragen zu dieser Datenschutzerklärung haben, können Sie uns über unsere',
},
},
desktop: {
tagline: 'Desktop-App',
tray: {
newSecret: 'Neues Geheimnis',
settings: 'Einstellungen',
quit: 'crypt.fyi beenden',
},
create: {
title: 'Neues Geheimnis',
contentLabel: 'Geheimnis',
contentPlaceholder: 'Text zum Verschlüsseln einfügen oder eingeben',
fromClipboard: 'Aus der Zwischenablage übernommen. Vor dem Teilen prüfen.',
passwordLabel: 'Passwort (optional)',
passwordPlaceholder: 'Teile es dem Empfänger separat mit',
ttlLabel: 'Läuft ab nach',
burnLabel: 'Nach dem Lesen löschen',
burnDescription: 'Löscht das Geheimnis nach dem ersten erfolgreichen Lesen.',
submit: 'Verschlüsseln und Link kopieren',
submitting: 'Wird verschlüsselt…',
shortcutHint: 'Drücke überall {{shortcut}}, um dieses Fenster zu öffnen. Esc blendet es aus.',
emptyError: 'Gib ein Geheimnis zum Verschlüsseln ein.',
},
result: {
title: 'Link kopiert',
description:
'Das Geheimnis wurde auf diesem Gerät verschlüsselt. Der Server sieht weder den Inhalt noch den Schlüssel.',
linkLabel: 'Geheimnis-Link',
passwordReminder: 'Sende das Passwort über einen anderen Kanal als den Link.',
notificationTitle: 'Geheimnis-Link kopiert',
notificationBody: 'Füge ihn überall zum Teilen ein. Er wurde auf diesem Gerät verschlüsselt.',
done: 'Fertig',
},
settings: {
title: 'Einstellungen',
back: 'Zurück',
server: 'Server',
apiUrl: 'API-URL',
webUrl: 'Web-URL',
endpointHint: 'Verwende https. Unverschlüsseltes http ist nur für localhost erlaubt.',
shortcut: 'Globales Tastenkürzel',
shortcutHint: 'Wähle das Feld aus und drücke eine Tastenkombination mit Strg, Alt oder Cmd.',
shortcutRecording: 'Tastenkombination drücken…',
defaults: 'Standardwerte für neue Geheimnisse',
prefillFromClipboard: 'Neue Geheimnisse aus der Zwischenablage füllen',
appearance: 'Darstellung',
language: 'Sprache',
languageSystem: 'Systemstandard',
save: 'Speichern',
saved: 'Einstellungen gespeichert.',
reset: 'Auf Standardwerte zurücksetzen',
invalidUrl: '{{field}} muss eine https-URL sein (http ist nur für localhost erlaubt).',
invalidShortcut: 'Verwende eine Tastenkombination mit Strg, Alt oder Cmd.',
},
errors: {
network:
'{{host}} ist nicht erreichbar. Prüfe deine Verbindung und die API-URL in den Einstellungen.',
rateLimited: 'Zu viele Anfragen. Warte einen Moment und versuche es erneut.',
tooLarge: 'Dieses Geheimnis ist zu groß für den Server.',
server: 'Der Server hat die Anfrage abgelehnt (Status {{status}}).',
unknown: 'Beim Erstellen des Geheimnisses ist ein Fehler aufgetreten.',
clipboard:
'Das Geheimnis wurde erstellt, aber der Link konnte nicht kopiert werden. Kopiere ihn unten.',
shortcutUnavailable:
'{{shortcut}} konnte nicht registriert werden. Eine andere App verwendet es möglicherweise bereits.',
},
},
};
64 changes: 64 additions & 0 deletions packages/core/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,4 +430,68 @@ export const en: TranslationKeys = {
'If you have any questions about this Privacy Policy, you can contact us through our',
},
},
desktop: {
tagline: 'Desktop app',
tray: {
newSecret: 'New secret',
settings: 'Settings',
quit: 'Quit crypt.fyi',
},
create: {
title: 'New secret',
contentLabel: 'Secret',
contentPlaceholder: 'Paste or type the text to encrypt',
fromClipboard: 'Filled from your clipboard. Check it before sharing.',
passwordLabel: 'Password (optional)',
passwordPlaceholder: 'Share it with the recipient separately',
ttlLabel: 'Expires after',
burnLabel: 'Burn after reading',
burnDescription: 'Delete the secret after the first successful read.',
submit: 'Encrypt and copy link',
submitting: 'Encrypting…',
shortcutHint: 'Press {{shortcut}} anywhere to open this window. Esc hides it.',
emptyError: 'Enter a secret to encrypt.',
},
result: {
title: 'Link copied',
description:
'The secret was encrypted on this device. The server never sees its content or the key.',
linkLabel: 'Secret link',
passwordReminder: 'Send the password through a different channel than the link.',
notificationTitle: 'Secret link copied',
notificationBody: 'Paste it anywhere to share. It was encrypted on this device.',
done: 'Done',
},
settings: {
title: 'Settings',
back: 'Back',
server: 'Server',
apiUrl: 'API URL',
webUrl: 'Web URL',
endpointHint: 'Use https. Plain http is only allowed for localhost.',
shortcut: 'Global shortcut',
shortcutHint:
'Select the field, then press a key combination that includes Ctrl, Alt or Cmd.',
shortcutRecording: 'Press a key combination…',
defaults: 'Defaults for new secrets',
prefillFromClipboard: 'Fill new secrets from the clipboard',
appearance: 'Appearance',
language: 'Language',
languageSystem: 'System default',
save: 'Save',
saved: 'Settings saved.',
reset: 'Reset to defaults',
invalidUrl: '{{field}} must be an https URL (http is only allowed for localhost).',
invalidShortcut: 'Use a key combination that includes Ctrl, Alt or Cmd.',
},
errors: {
network: 'Could not reach {{host}}. Check your connection and the API URL in settings.',
rateLimited: 'Too many requests. Wait a moment and try again.',
tooLarge: 'This secret is too large for the server.',
server: 'The server rejected the request (status {{status}}).',
unknown: 'Something went wrong while creating the secret.',
clipboard: 'The secret was created, but the link could not be copied. Copy it below.',
shortcutUnavailable: 'Could not register {{shortcut}}. Another app may already use it.',
},
},
};
66 changes: 66 additions & 0 deletions packages/core/src/i18n/locales/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,4 +435,70 @@ export const es: TranslationKeys = {
'Si tienes preguntas sobre esta Política de Privacidad, puedes contactarnos a través de nuestra',
},
},
desktop: {
tagline: 'Aplicación de escritorio',
tray: {
newSecret: 'Nuevo secreto',
settings: 'Ajustes',
quit: 'Salir de crypt.fyi',
},
create: {
title: 'Nuevo secreto',
contentLabel: 'Secreto',
contentPlaceholder: 'Pega o escribe el texto que quieres cifrar',
fromClipboard: 'Rellenado desde tu portapapeles. Revísalo antes de compartirlo.',
passwordLabel: 'Contraseña (opcional)',
passwordPlaceholder: 'Compártela con el destinatario por separado',
ttlLabel: 'Caduca en',
burnLabel: 'Destruir después de leer',
burnDescription: 'Elimina el secreto tras la primera lectura correcta.',
submit: 'Cifrar y copiar enlace',
submitting: 'Cifrando…',
shortcutHint: 'Pulsa {{shortcut}} en cualquier lugar para abrir esta ventana. Esc la oculta.',
emptyError: 'Introduce un secreto para cifrarlo.',
},
result: {
title: 'Enlace copiado',
description:
'El secreto se cifró en este dispositivo. El servidor nunca ve su contenido ni la clave.',
linkLabel: 'Enlace del secreto',
passwordReminder: 'Envía la contraseña por un canal distinto al del enlace.',
notificationTitle: 'Enlace del secreto copiado',
notificationBody: 'Pégalo donde quieras para compartirlo. Se cifró en este dispositivo.',
done: 'Listo',
},
settings: {
title: 'Ajustes',
back: 'Volver',
server: 'Servidor',
apiUrl: 'URL de la API',
webUrl: 'URL web',
endpointHint: 'Usa https. http solo se permite para localhost.',
shortcut: 'Atajo global',
shortcutHint:
'Selecciona el campo y pulsa una combinación de teclas que incluya Ctrl, Alt o Cmd.',
shortcutRecording: 'Pulsa una combinación de teclas…',
defaults: 'Valores predeterminados para nuevos secretos',
prefillFromClipboard: 'Rellenar nuevos secretos desde el portapapeles',
appearance: 'Apariencia',
language: 'Idioma',
languageSystem: 'Predeterminado del sistema',
save: 'Guardar',
saved: 'Ajustes guardados.',
reset: 'Restablecer valores predeterminados',
invalidUrl: '{{field}} debe ser una URL https (http solo se permite para localhost).',
invalidShortcut: 'Usa una combinación de teclas que incluya Ctrl, Alt o Cmd.',
},
errors: {
network:
'No se pudo conectar con {{host}}. Comprueba tu conexión y la URL de la API en los ajustes.',
rateLimited: 'Demasiadas solicitudes. Espera un momento y vuelve a intentarlo.',
tooLarge: 'Este secreto es demasiado grande para el servidor.',
server: 'El servidor rechazó la solicitud (estado {{status}}).',
unknown: 'Algo salió mal al crear el secreto.',
clipboard: 'El secreto se creó, pero no se pudo copiar el enlace. Cópialo abajo.',
shortcutUnavailable:
'No se pudo registrar {{shortcut}}. Puede que otra aplicación ya lo use.',
},
},
};
Loading
Loading