{"id":48564534,"url":"https://github.com/ppprevost/priva.tools","last_synced_at":"2026-04-08T12:37:46.306Z","repository":{"id":341091985,"uuid":"1168796480","full_name":"ppprevost/priva.tools","owner":"ppprevost","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-25T08:59:43.000Z","size":6043,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-25T17:00:26.135Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ppprevost.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-27T20:06:53.000Z","updated_at":"2026-03-25T08:57:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ppprevost/priva.tools","commit_stats":null,"previous_names":["ppprevost/privatools","ppprevost/priva.tools"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ppprevost/priva.tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppprevost%2Fpriva.tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppprevost%2Fpriva.tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppprevost%2Fpriva.tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppprevost%2Fpriva.tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppprevost","download_url":"https://codeload.github.com/ppprevost/priva.tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppprevost%2Fpriva.tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31556238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-04-08T12:37:46.135Z","updated_at":"2026-04-08T12:37:46.276Z","avatar_url":"https://github.com/ppprevost.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"public/illustrations/intro-character.png\" alt=\"Priva.TOOLS mascot\" width=\"200\" /\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003ePriva.TOOLS\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Privacy-first file tools that run entirely in your browser.\u003cbr/\u003e\n  No upload, no server processing, no tracking. Your files never leave your device.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://priva.tools\"\u003e\u003cstrong\u003epriva.tools\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## What it does\n\nPDF and image tools powered by Web Workers and WebAssembly, all client-side:\n\n| Tool | Route |\n| :--- | :---- |\n| Compress PDF | `/compress-pdf` |\n| Merge PDF | `/merge-pdf` |\n| Split PDF | `/split-pdf` |\n| JPG to PDF | `/jpg-to-pdf` |\n| Protect PDF | `/protect-pdf` |\n| Unlock PDF | `/unlock-pdf` |\n| Sign PDF | `/sign-pdf` |\n| Edit PDF | `/edit-pdf` |\n| Compress Image | `/compress-image` |\n| Resize Image | `/resize-image` |\n| Crop Image | `/crop-image` |\n| Convert to JPG | `/convert-to-jpg` |\n| Remove Background | `/remove-background` |\n\nOther pages: `/blog`, `/about`, `/contact`, `/support`, `/privacy`\n\n## AI agent support (WebMCP)\n\nPriva.TOOLS implements the [WebMCP protocol](https://developer.chrome.com/blog/webmcp-epp), a W3C incubation that lets AI agents call website tools directly via `navigator.modelContext`. All 14 tools are registered at page load and callable by any compatible browser agent (Chrome 146+) without an API key or account.\n\n```\nsrc/lib/webmcp/tools.ts           — tool definitions (Zod schema + handler)\nsrc/components/WebMCPProvider.tsx  — registers tools via navigator.modelContext\n```\n\nEach tool accepts base64-encoded file input, processes it client-side via a Web Worker, and returns a base64-encoded result. Input schemas are validated at runtime with Zod.\n\nA [`/llms.txt`](https://priva.tools/llms.txt) file at the root lists all tools for LLM discovery.\n\n## Tech stack\n\n- **Astro 5** + **React 19** with hybrid SSR (Node adapter)\n- **Tailwind CSS v4** with a neobrutalist design system\n- **Web Workers** for all file processing (no main thread blocking)\n- **Neon PostgreSQL** (serverless) for contact form, comments, and blog\n- **Cloudflare Turnstile** for captcha on forms\n- **Vitest** + **React Testing Library** for unit and component tests\n- **Docker** + **Coolify** for deployment\n\n## Architecture\n\nClean Architecture with functional style (no classes, no DI):\n\n```\nsrc/\n  domain/        # Entities, validators, typed errors (zero deps)\n  infra/         # Neon repos, Turnstile, hashing\n  use-cases/     # Business orchestration (submit-comment, get-blog-posts, etc.)\n  pages/api/     # Thin API routes: parse request -\u003e use case -\u003e map error\n  components/    # React UI components\n  lib/           # Utilities, workers, schema builders, tools config\n```\n\n## Getting started\n\n```sh\npnpm install\npnpm dev\n```\n\nThe app runs at `localhost:4321`. All file tools work without any configuration since they run client-side.\n\n## Environment variables\n\nOnly needed for server-side features (contact form, comments, blog API, admin):\n\n| Variable | Description |\n| :--- | :--- |\n| `DATABASE_URL` | Neon PostgreSQL connection string |\n| `TURNSTILE_SITE_KEY` | Cloudflare Turnstile site key |\n| `TURNSTILE_SECRET_KEY` | Cloudflare Turnstile secret key |\n| `PUBLIC_PAYPAL_LINK` | PayPal.me link for the support page (buildtime) |\n| `MOBILE_API_KEY` | API key for the KMP mobile app |\n| `ADMIN_SECRET` | Bearer token for `/api/admin/comments` |\n\nWithout these variables, the tools still work perfectly. The contact form and comments just won't be functional.\n\n## Commands\n\n| Command | Action |\n| :--- | :--- |\n| `pnpm dev` | Dev server at `localhost:4321` |\n| `pnpm build` | Production build to `./dist/` |\n| `pnpm preview` | Preview the production build locally |\n| `pnpm test` | Run tests |\n| `pnpm test:watch` | Run tests in watch mode |\n| `pnpm test:coverage` | Run tests with coverage report |\n| `pnpm lint` | Run ESLint |\n| `pnpm lint:fix` | Fix ESLint errors |\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppprevost%2Fpriva.tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppprevost%2Fpriva.tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppprevost%2Fpriva.tools/lists"}