{"id":26184044,"url":"https://github.com/tfranzel/scratchpad","last_synced_at":"2025-06-10T22:02:50.978Z","repository":{"id":280838044,"uuid":"809508846","full_name":"tfranzel/scratchpad","owner":"tfranzel","description":"A minimalistic service providing secure file and text share between two parties.","archived":false,"fork":false,"pushed_at":"2024-09-05T08:20:50.000Z","size":154,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T05:34:27.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tfranzel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-02T22:06:54.000Z","updated_at":"2025-05-05T08:33:40.000Z","dependencies_parsed_at":"2025-03-06T11:02:40.620Z","dependency_job_id":null,"html_url":"https://github.com/tfranzel/scratchpad","commit_stats":null,"previous_names":["tfranzel/scratchpad"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfranzel%2Fscratchpad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfranzel%2Fscratchpad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfranzel%2Fscratchpad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfranzel%2Fscratchpad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tfranzel","download_url":"https://codeload.github.com/tfranzel/scratchpad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tfranzel%2Fscratchpad/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259159612,"owners_count":22814490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-11T22:53:19.392Z","updated_at":"2025-06-10T22:02:50.919Z","avatar_url":"https://github.com/tfranzel.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![pwa-192x192.png](frontend/public/pwa-192x192.png)\n\n# scratchpad\n\n## Overview\n\nA minimalistic service providing a secure file and text share between two parties.\nThis is a small personal project to help me securely overcome corporate information silos,\nwhere desperate people would otherwise send sensitive information via chat or mail.\n\n* **Elliptic-curve Diffie–Hellman (ECDH)** as key agreement protocol.\n* Data is encrypted symmetrically with **AES-GCM** (256 bit).\n* No \"roll your own\". All crypto is browser-native through the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto).\n* Instant updates via **WebSocket**.\n* Installable [PWA](https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps).\n* Zero-trust server that merely acts as a forwarder for client-side encrypted payloads.\n\nTo mitigate MITM attacks, the security of the connection can be verified by\nconfirming both parties have the same key fingerprint in the form of a word list \n([bip-0039](https://github.com/bitcoin/bips/blob/master/bip-0039/english.txt)).\n\nFile sizes are somewhat limited (in the browser) due to the KISS approach.\n\n### Potential future features\n\n* Offline editing and subsequent 3-way merge of the divergence\n* Manual onboarding of 3rd party with the key encoded as a 26 word list\n\n## Demo\n\nhttps://github.com/user-attachments/assets/d55b2cf4-4bed-4d1a-843f-6e960b9ad7df\n\n## Installation\n\n### Development\n\n```bash\n# frontend\ncd frontend\nnpm install\nnpm run dev\n\n# backend\npoetry shell\npoetry install\nDEV=1 SCRATCHPAD_ADMIN_BEARER=somesecret uvicorn app:app --reload\n```\n\n### Deployment\n\n`docker-compose` containers managed by a `systemd` service. The stack can be deployed with `ansible`.\nFrontend is build locally with [Dockerfile](frontend/Dockerfile) and then rsynced to server.\nDocker exposes port 8003 for internal redirection, TLS termination will be left up to you. \n\n```bash\n# remote\n# Bearer for SwaggerUI at https://yourserver.com/api/docs\necho \"SCRATCHPAD_ADMIN_BEARER=somesecret\" \u003e /var/www/scratchpad/docker/.env\n\n# local\nansible-playbook deploy.yml -i \"yourserver.com,\" --tags \"BE,FE\"\n```\n\n## Technology\n\nFrontend: Vue, Vite, Vite PWA, Boostrap, Boostrap Icons, Dropzone.js\n\nBackend: Nginx, FastAPI, Uvicorn, JSON on disk\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfranzel%2Fscratchpad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftfranzel%2Fscratchpad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftfranzel%2Fscratchpad/lists"}