From 3bcc12fe6c657e493b21ed1cf2cccf28cf6ffc88 Mon Sep 17 00:00:00 2001
From: Sparsh Sam
Date: Sun, 14 Jun 2026 20:55:12 -0400
Subject: [PATCH 1/2] docs: align repository with ecosystem standards
---
.env.example | 10 +++
.github/FUNDING.yml | 3 +
AGENTS.md | 51 +++++++++++
CLAUDE.md | 96 ++++++++++++++++++++
CODE_OF_CONDUCT.md | 63 +++++++++++++
CONTRIBUTING.md | 100 +++++++++++++++++++++
README.md | 208 ++++++++++++++++++++++++++++++-------------
SECURITY.md | 42 +++++++++
SUPPORT.md | 33 +++++++
docs/architecture.md | 104 ++++++++++++++++++++++
package.json | 20 +++++
11 files changed, 669 insertions(+), 61 deletions(-)
create mode 100644 .env.example
create mode 100644 .github/FUNDING.yml
create mode 100644 AGENTS.md
create mode 100644 CLAUDE.md
create mode 100644 CODE_OF_CONDUCT.md
create mode 100644 CONTRIBUTING.md
create mode 100644 SECURITY.md
create mode 100644 SUPPORT.md
create mode 100644 docs/architecture.md
diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..9425c79
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,10 @@
+# OpenConvert Environment Variables
+# Copy this file to .env and fill in values as needed.
+
+# Tauri updater signing (required for production releases)
+# Generate with: npx tauri signer generate -w ~/.tauri/openconvert.key
+# TAURI_SIGNING_PRIVATE_KEY=
+# TAURI_SIGNING_PRIVATE_KEY_PASSWORD=
+
+# Vite environment variables (prefixed with VITE_)
+# VITE_APP_TITLE=OpenConvert
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..497360d
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,3 @@
+# These are supported funding model platforms
+
+github: sparshsam
diff --git a/AGENTS.md b/AGENTS.md
new file mode 100644
index 0000000..a9d6c57
--- /dev/null
+++ b/AGENTS.md
@@ -0,0 +1,51 @@
+# Agents
+
+This file describes how AI agents (Cline, Codex, Copilot, etc.) should interact
+with this repository.
+
+## Context
+
+OpenConvert is a local-first Windows desktop file converter built with
+Tauri v2 (Rust + React + TypeScript). All processing is done locally;
+no data leaves the user's machine.
+
+## Key Constraints
+
+- **Do not modify source code or product functionality.** Only documentation,
+ CI/CD, and project governance files should be touched unless explicitly
+ directed otherwise.
+- **Local-first.** No cloud, no accounts, no telemetry.
+- **Windows-first.** The primary target is Windows via NSIS installer.
+- **AGPL-3.0 licensed.** Ensure all contributions are compatible.
+
+## When to Consult This File
+
+Agents should read this file at the start of any session involving this
+repository, especially when opening PRs, suggesting architecture changes,
+or writing new code.
+
+## Agent Tasks
+
+Allowed tasks for AI agents without explicit human approval:
+
+- Fix typos in documentation
+- Add badges or metadata to README
+- Update CHANGELOG formatting
+- Refactor CI/CD workflow formatting
+- Create standard governance files (CODE_OF_CONDUCT, CONTRIBUTING, SECURITY, SUPPORT)
+- Audit for secret leaks or dead files
+- Recommend dependency updates (do not apply without review)
+
+Tasks requiring human approval:
+
+- Any change to `src/` or `src-tauri/src/` source code
+- Adding new npm or Cargo dependencies
+- Changing the build pipeline or release workflow logic
+- Changing the license
+- Adding telemetry, analytics, or network calls
+
+## Communication Style
+
+- Be direct and concise.
+- Provide structured summaries after audits.
+- Flag blockers immediately rather than fabricating results.
diff --git a/CLAUDE.md b/CLAUDE.md
new file mode 100644
index 0000000..ef72b92
--- /dev/null
+++ b/CLAUDE.md
@@ -0,0 +1,96 @@
+# CLAUDE.md — OpenConvert Repository Guide
+
+## Repository Overview
+
+OpenConvert is a **local-first Windows desktop file converter** built with
+Tauri v2. All processing happens entirely on the user's machine. No data is
+uploaded, no accounts are required, and no telemetry is collected.
+
+## Tech Stack
+
+- **Desktop Shell**: Tauri v2
+- **Frontend**: React 18, TypeScript 5, Tailwind CSS 3, Lucide React
+- **Bundler**: Vite 5
+- **Backend**: Rust (Tauri commands in `src-tauri/src/`)
+- **Testing**: Vitest (frontend), `cargo test` (Rust)
+- **Linting**: ESLint 9 + TypeScript-ESLint
+- **Installer**: NSIS (Windows)
+
+## Branch Workflow
+
+- `main` is the default and release branch.
+- Feature branches should use conventional prefixes:
+ - `feat/` — new features
+ - `fix/` — bug fixes
+ - `docs/` — documentation
+ - `chore/` — tooling, CI, maintenance
+ - `refactor/` — code restructuring
+- Keep branches focused on a single concern.
+- Squash-merge PRs into `main` with descriptive commit messages.
+
+## Coding Expectations
+
+### TypeScript / React
+
+- Use strict TypeScript (`strict: true` in tsconfig). Avoid `any`.
+- Functional components with hooks. Follow the rules of hooks.
+- Use Tailwind utility classes — avoid custom CSS when possible.
+- Use Lucide React for icons.
+- Keep components small and focused. Extract reusable logic to `src/lib/`.
+
+### Rust
+
+- Follow idiomatic Rust conventions.
+- Handle errors with `Result` types. Avoid `unwrap()` in production code.
+- Use `cargo fmt` and `cargo clippy` before committing.
+
+### General
+
+- Run `npm run lint && npm run test && npm run build` before pushing.
+- Run `cargo test --manifest-path src-tauri/Cargo.toml` for Rust tests.
+- No dead code — if it's not used, remove it.
+- No secrets in source files. Use environment variables where needed.
+
+## Architecture Constraints
+
+- **Local-first**: No cloud uploads, no accounts, no telemetry.
+- **Windows-first**: The primary target is Windows NSIS installer.
+- **File processing**: All conversion happens via Tauri IPC to the Rust backend.
+- **History**: Only stores metadata (filename, format, timestamp, status) — not
+ file contents or paths.
+- **Auto-updates**: Via Tauri updater + GitHub Releases.
+- **AGPL-3.0**: Ensure all contributions are compatible.
+
+## Directory Structure
+
+```
+OpenConvert/
+├── src/ # Frontend source
+│ ├── App.tsx # Main app component
+│ ├── components/ # React components
+│ ├── lib/ # Utilities and logic
+│ ├── types.ts # TypeScript types
+│ ├── main.tsx # Entry point
+│ └── styles.css # Tailwind CSS
+├── src-tauri/ # Rust backend
+│ ├── src/ # Rust source
+│ ├── Cargo.toml # Rust dependencies
+│ └── tauri.conf.json # Tauri configuration
+├── .github/workflows/ # CI/CD pipelines
+├── docs/ # Documentation
+├── package.json # npm dependencies
+└── vite.config.ts # Vite configuration
+```
+
+## AI Coding Assistant Rules
+
+When acting as an AI coding assistant for this repository:
+
+1. **Do not change source code or product functionality** without explicit
+ human approval.
+2. **Do add missing governance files** (CODE_OF_CONDUCT, CONTRIBUTING,
+ SECURITY, SUPPORT).
+3. **Do improve documentation** (README, ROADMAP, CHANGELOG, docs/).
+4. **Do improve CI/CD** workflows but verify with `npm run lint/test/build`.
+5. **Do audit** for secrets, dead files, and hygiene issues.
+6. **Flag security issues** immediately.
diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md
new file mode 100644
index 0000000..b6bc0d9
--- /dev/null
+++ b/CODE_OF_CONDUCT.md
@@ -0,0 +1,63 @@
+# Code of Conduct
+
+## Our Pledge
+
+We as members, contributors, and leaders pledge to make participation in our
+community a harassment-free experience for everyone, regardless of age, body
+size, visible or invisible disability, ethnicity, sex characteristics, gender
+identity and expression, level of experience, education, socio-economic status,
+nationality, personal appearance, race, religion, or sexual identity
+and orientation.
+
+We pledge to act and interact in ways that contribute to an open, welcoming,
+diverse, inclusive, and healthy community.
+
+## Our Standards
+
+Examples of behavior that contributes to a positive environment for our
+community include:
+
+- Demonstrating empathy and kindness toward other people
+- Being respectful of differing opinions, viewpoints, and experiences
+- Giving and gracefully accepting constructive feedback
+- Accepting responsibility and apologizing to those affected by our mistakes,
+ and learning from the experience
+- Focusing on what is best not just for us as individuals, but for the
+ overall community
+
+Examples of unacceptable behavior include:
+
+- The use of sexualized language or imagery, and sexual attention or
+ advances of any kind
+- Trolling, insulting or derogatory comments, and personal or political attacks
+- Public or private harassment
+- Publishing others' private information, such as a physical or email
+ address, without their explicit permission
+- Other conduct which could reasonably be considered inappropriate in a
+ professional setting
+
+## Enforcement Responsibilities
+
+Project maintainers are responsible for clarifying and enforcing our standards of
+acceptable behavior and will take appropriate and fair corrective action in
+response to any behavior that they deem inappropriate, threatening, offensive,
+or harmful.
+
+## Scope
+
+This Code of Conduct applies within all community spaces, and also applies when
+an individual is officially representing the community in public spaces.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be
+reported to the project maintainer at **sparshsam@users.noreply.github.com**.
+All complaints will be reviewed and investigated promptly and fairly.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage],
+version 2.1, available at
+https://www.contributor-covenant.org/version/2/1/code_of_conduct.html.
+
+[homepage]: https://www.contributor-covenant.org
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 0000000..ff35109
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,100 @@
+# Contributing to OpenConvert
+
+Thank you for your interest in contributing! OpenConvert is a local-first
+desktop file converter. We welcome contributions that respect the project's
+scope and principles.
+
+## Table of Contents
+
+- [Code of Conduct](#code-of-conduct)
+- [Getting Started](#getting-started)
+- [Development Workflow](#development-workflow)
+- [Pull Request Guidelines](#pull-request-guidelines)
+- [Coding Standards](#coding-standards)
+- [Testing](#testing)
+- [Reporting Issues](#reporting-issues)
+
+## Code of Conduct
+
+This project and everyone participating in it is governed by the
+[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md). By participating, you are expected
+to uphold this code.
+
+## Getting Started
+
+1. Fork the repository.
+2. Clone your fork:
+ ```bash
+ git clone https://github.com/your-username/OpenConvert.git
+ ```
+3. Set up the development environment:
+ - Node.js 20 or newer
+ - Rust stable
+ - Windows build tools (for packaging)
+4. Install dependencies:
+ ```bash
+ npm install
+ ```
+5. Create a branch for your work:
+ ```bash
+ git checkout -b my-feature-branch
+ ```
+
+## Development Workflow
+
+1. Make your changes on a feature branch (not `main`).
+2. Keep changes focused — one feature or fix per branch.
+3. Run checks before committing:
+ ```bash
+ npm run lint
+ npm run test
+ npm run build
+ cd src-tauri && cargo test
+ ```
+4. Commit messages should follow conventional commits:
+ - `feat:` — new feature
+ - `fix:` — bug fix
+ - `docs:` — documentation
+ - `chore:` — tooling, CI, maintenance
+ - `refactor:` — code restructuring
+
+## Pull Request Guidelines
+
+- Open PRs against the `main` branch.
+- Title should summarize the change (e.g., "feat: add batch conversion").
+- Link related issues in the PR description.
+- Keep PRs small and reviewable.
+- Ensure all CI checks pass before requesting review.
+- Do not merge your own PRs without review.
+
+## Coding Standards
+
+- **TypeScript**: Strict mode enabled. Avoid `any`. Use typed interfaces.
+- **React**: Functional components with hooks. Follow hooks rules.
+- **Rust**: Idiomatic Rust, handle errors with `Result`, avoid `unwrap` in
+ production code.
+- **CSS**: Tailwind CSS utility classes. Avoid custom CSS unless necessary.
+- **Formatting**: ESLint and Prettier conventions (run `npm run lint`).
+
+## Testing
+
+- Frontend tests: `npm run test` (Vitest).
+- Rust tests: `cargo test` in `src-tauri/`.
+- Add tests for new functionality.
+- Ensure existing tests pass.
+
+## Reporting Issues
+
+- Search existing issues before opening a new one.
+- Use issue templates if available.
+- Include:
+ - OpenConvert version
+ - OS version
+ - Steps to reproduce
+ - Expected vs. actual behavior
+ - Screenshots or logs if applicable
+
+## Licensing
+
+By contributing, you agree that your contributions will be licensed under the
+AGPL-3.0 License.
diff --git a/README.md b/README.md
index 31cb59b..e2dad83 100644
--- a/README.md
+++ b/README.md
@@ -1,121 +1,207 @@
-# OpenConvert
-
-OpenConvert is a bright, roomy, local-first Windows desktop file converter.
-
-Version `0.1.0` supports image-to-image conversion only. It is created by [Sparsh Sam](https://github.com/sparshsam) and licensed under AGPL-3.0.
+
+
OpenConvert
+
+ A bright, roomy, local-first desktop file converter for Windows.
+
+ Privacy-first · No uploads · No accounts · No telemetry
+
+
+
+
+
+
+
+
+
+
+
+
+
+---
+
+**Version `0.1.0`** supports image-to-image conversion only. Created by
+[Sparsh Sam](https://github.com/sparshsam) and licensed under
+[AGPL-3.0](LICENSE).
+
+## Quick Links
+
+- [Features](#features)
+- [Supported Formats](#supported-formats)
+- [Install](#install)
+- [Development](#development)
+- [Architecture](docs/architecture.md)
+- [Roadmap](ROADMAP.md)
+- [Changelog](CHANGELOG.md)
+- [Contributing](CONTRIBUTING.md)
+
+## Screenshots
+
+> Screenshots coming soon. OpenConvert is in early alpha.
## Features
-- Windows-first desktop app built with Tauri, React, TypeScript, Tailwind CSS, and Rust
-- Clean native Windows NSIS installer and uninstaller
-- Auto-update plumbing through GitHub Releases
-- Drag-and-drop image upload
-- Manual file picker
-- Local file type detection
-- Single-file image conversion
-- Output folder selection
-- Conversion progress and success/failure status
-- Basic local conversion history
-- No accounts, no cloud uploads, no telemetry
+| Feature | Status |
+|----------------------------|--------|
+| 📁 Drag-and-drop upload | ✅ |
+| 📂 Manual file picker | ✅ |
+| 🔍 Local file type detection | ✅ |
+| 🔄 Single-file image conversion | ✅ |
+| 📝 Output folder selection | ✅ |
+| 📊 Conversion progress & status | ✅ |
+| 📜 Local conversion history | ✅ |
+| 🔄 Auto-update plumbing | ✅ |
+| 🔒 No accounts / cloud / telemetry | ✅ |
+| 📦 Batch conversion | ❌ |
+| 📄 PDF / document conversion | ❌ |
+| 🎵 Audio conversion | ❌ |
+| 🎬 Video conversion | ❌ |
## Supported Formats
-Input:
-
-- PNG
-- JPG/JPEG
-- WEBP
-- BMP
-- TIFF
+| Direction | Formats |
+|-----------|-------------------------------|
+| **Input** | PNG, JPG/JPEG, WEBP, BMP, TIFF |
+| **Output** | PNG, JPG/JPEG, WEBP, BMP, TIFF |
-Output:
+All valid image-to-image combinations between those formats are supported.
-- PNG
-- JPG/JPEG
-- WEBP
-- BMP
-- TIFF
+## Tech Stack
-All valid image-to-image combinations between those formats are supported.
+| Layer | Technology |
+|-------------|-----------------------------------------|
+| Desktop Shell | [Tauri v2](https://v2.tauri.app) |
+| Frontend | [React 18](https://react.dev), [TypeScript 5](https://www.typescriptlang.org) |
+| Styling | [Tailwind CSS 3](https://tailwindcss.com) |
+| Icons | [Lucide React](https://lucide.dev) |
+| Bundler | [Vite 5](https://vitejs.dev) |
+| Backend | [Rust](https://www.rust-lang.org) (Tauri commands) |
+| Installer | NSIS (Windows) |
+| Testing | [Vitest](https://vitest.dev), `cargo test` |
+| Linting | [ESLint 9](https://eslint.org) + TypeScript-ESLint |
## Privacy
-OpenConvert processes files locally on your computer.
-
-It never uploads files, requires accounts, or sends telemetry. It also never stores original or converted files inside the app.
+OpenConvert processes files **locally on your computer**. It never uploads
+files, requires accounts, or sends telemetry. It also never stores original or
+converted files inside the app.
History stores only:
-
- original filename
- input format
- output format
- timestamp
- result status
-History does not store original files, converted files, file paths, or file contents.
+History does **not** store original files, converted files, file paths, or
+file contents.
## Install
-Download the latest Windows installer from GitHub Releases:
-
-https://github.com/sparshsam/OpenConvert/releases
+Download the latest Windows installer from
+[GitHub Releases](https://github.com/sparshsam/OpenConvert/releases).
Run the `.exe` installer. Windows will also get a standard uninstaller entry.
## Development
-Requirements:
+### Requirements
- Node.js 20 or newer
- Rust stable
- Windows build tools for packaging Windows installers
-Install dependencies:
+### Setup
```bash
npm install
```
-Run the app in development:
+### Run in development
```bash
npm run tauri dev
```
-Run checks:
+### Run checks
```bash
-npm run lint
-npm run test
-npm run build
-cd src-tauri && cargo test
+npm run lint # ESLint
+npm run test # Vitest (frontend)
+npm run build # TypeScript typecheck + Vite build
+cd src-tauri && cargo test # Rust tests
```
-Build the Windows installer:
+### Build the Windows installer
```bash
npm run tauri build
```
-## Auto-Updates
-
-OpenConvert is configured to check GitHub Releases for Tauri updater metadata at:
+## Repository Structure
-```text
-https://github.com/sparshsam/OpenConvert/releases/latest/download/latest.json
```
-
-Before publishing production releases, generate Tauri updater keys and set the private key as GitHub Actions secrets:
-
-- `TAURI_SIGNING_PRIVATE_KEY`
-- `TAURI_SIGNING_PRIVATE_KEY_PASSWORD` if the key is password-protected
-
-The public key must be stored in `src-tauri/tauri.conf.json`.
+OpenConvert/
+├── src/ # Frontend source
+│ ├── App.tsx # Main app component
+│ ├── components/ # React components
+│ │ ├── AboutDialog.tsx # About dialog
+│ │ └── HistoryList.tsx # Conversion history
+│ ├── lib/ # Utilities and logic
+│ │ ├── formats.ts # Format definitions
+│ │ └── formats.test.ts # Format tests
+│ ├── types.ts # Shared TypeScript types
+│ ├── main.tsx # React entry point
+│ └── styles.css # Tailwind CSS directives
+├── src-tauri/ # Rust backend
+│ ├── src/
+│ │ ├── lib.rs # Tauri commands
+│ │ └── main.rs # Rust entry point
+│ ├── Cargo.toml # Rust dependencies
+│ ├── Cargo.lock # Locked Rust deps
+│ ├── tauri.conf.json # Tauri configuration
+│ ├── capabilities/ # Tauri capability config
+│ └── icons/ # App icons
+├── docs/ # Documentation
+│ └── architecture.md # Architecture overview
+├── .github/workflows/ # CI/CD
+│ ├── ci.yml # Lint, test, build
+│ └── release.yml # Windows release build
+├── package.json # npm dependencies
+├── eslint.config.js # ESLint configuration
+├── vite.config.ts # Vite configuration
+├── tsconfig.json # TypeScript configuration
+├── tailwind.config.js # Tailwind CSS configuration
+├── postcss.config.js # PostCSS configuration
+├── index.html # HTML entry point
+├── LICENSE # AGPL-3.0 license
+├── CODE_OF_CONDUCT.md # Community guidelines
+├── CONTRIBUTING.md # Contribution guide
+├── SECURITY.md # Security policy
+├── SUPPORT.md # Support information
+├── AGENTS.md # AI agent guidance
+├── CLAUDE.md # Repository rules for AI
+├── ROADMAP.md # Project roadmap
+├── CHANGELOG.md # Version history
+└── README.md # This file
+```
## Limitations in v0.1.0
- Image conversion only
- Single-file conversion only
-- No audio, video, PDF, document, OCR, mobile, cloud, account, telemetry, plugin, or batch features
+- No audio, video, PDF, document, OCR, mobile, cloud, account, telemetry,
+ plugin, or batch features
- Resolution is preserved through decode/encode
-- Orientation and color profile preservation depend on source metadata and encoder support
+- Orientation and color profile preservation depend on source metadata and
+ encoder support
+
+## License
+
+OpenConvert is licensed under the **GNU Affero General Public License v3.0**.
+See [LICENSE](LICENSE) for details.
+
+---
+
+
+ Last updated: 2026-06-14
+
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..f93b8b7
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,42 @@
+# Security Policy
+
+## Supported Versions
+
+OpenConvert is currently in early development (v0.x). Security patches will be
+applied to the latest release only.
+
+| Version | Supported |
+| ------- | ------------------ |
+| 0.1.x | :white_check_mark: |
+
+## Reporting a Vulnerability
+
+OpenConvert processes files entirely locally and does not send data over the
+network, upload files, or collect telemetry. However, vulnerabilities in
+dependencies or the image processing pipeline are still taken seriously.
+
+To report a security vulnerability:
+
+1. **Do not** open a public GitHub issue.
+2. Send a private report to **sparshsam@users.noreply.github.com**.
+3. Include a clear description of the issue, affected versions, and steps to
+ reproduce (if applicable).
+
+You should receive an acknowledgment within 72 hours. We will work with you to
+understand the scope and impact, and to release a fix as appropriate.
+
+## Disclosure Policy
+
+We follow a coordinated disclosure process:
+
+- The reporter will be acknowledged.
+- A fix will be prepared and tested.
+- A security advisory will be published on GitHub.
+- The fix will be tagged in a new release.
+
+We aim to release a patched version within 14 days of confirmation for
+high-severity issues.
+
+## Preferred Languages
+
+English, please.
diff --git a/SUPPORT.md b/SUPPORT.md
new file mode 100644
index 0000000..0b6dc06
--- /dev/null
+++ b/SUPPORT.md
@@ -0,0 +1,33 @@
+# Support
+
+## Getting Help
+
+If you need help with OpenConvert, here are the best ways to find it:
+
+### Documentation
+
+- **[README.md](README.md)** — Getting started, installation, and feature overview.
+- **[ROADMAP.md](ROADMAP.md)** — Planned features and project direction.
+- **[CHANGELOG.md](CHANGELOG.md)** — Version history and release notes.
+
+### Issues
+
+- Search [existing issues](https://github.com/sparshsam/OpenConvert/issues)
+ before opening a new one.
+- If you do not find an existing issue, [open a new one](https://github.com/sparshsam/OpenConvert/issues/new).
+
+### Feature Requests
+
+Feature requests are welcome. Please open an issue with the label
+`enhancement` and describe the use case clearly. Keep in mind the project's
+scope and non-goals as documented in the [ROADMAP](ROADMAP.md).
+
+### Community and Discussions
+
+GitHub Discussions are not yet enabled for this repository. For now, please use
+the issue tracker for questions and feedback.
+
+### Commercial Support
+
+For commercial support inquiries, please contact the maintainer directly via
+GitHub: [@sparshsam](https://github.com/sparshsam).
diff --git a/docs/architecture.md b/docs/architecture.md
new file mode 100644
index 0000000..27c56d2
--- /dev/null
+++ b/docs/architecture.md
@@ -0,0 +1,104 @@
+# Architecture
+
+## Overview
+
+OpenConvert is a local-first Windows desktop file converter built with
+**Tauri v2** (Rust backend + web frontend). Files are processed entirely on the
+user's machine — no data leaves the computer.
+
+```
+┌─────────────────────────────────────────────────┐
+│ Tauri Shell │
+│ ┌──────────────────────┐ ┌──────────────────┐ │
+│ │ Frontend (WebView) │ │ Backend (Rust) │ │
+│ │ │ │ │ │
+│ │ React + TypeScript │ │ Tauri Commands │ │
+│ │ Tailwind CSS │◄─┤ Image Conversion │ │
+│ │ Lucide Icons │ │ File I/O │ │
+│ │ │ │ Updater │ │
+│ └──────────────────────┘ └──────────────────┘ │
+│ │ ▲ │
+│ │ IPC (invoke) │ │
+│ └───────────────────────┘ │
+└─────────────────────────────────────────────────┘
+```
+
+## Technology Stack
+
+| Layer | Technology |
+|-------------|-----------------------------------------|
+| Desktop Shell | Tauri v2 |
+| Frontend | React 18 + TypeScript 5 |
+| Styling | Tailwind CSS 3 |
+| Icons | Lucide React |
+| Bundler | Vite 5 |
+| Backend | Rust (Tauri commands) |
+| Installer | NSIS (Windows) |
+| Testing | Vitest (frontend), built-in (Rust) |
+| Linting | ESLint 9 + TypeScript-ESLint |
+
+## Frontend Architecture
+
+The frontend is a single-page React app:
+
+- **`src/App.tsx`** — Main application component with drag-and-drop zone,
+ format selector, and conversion trigger.
+- **`src/components/`** — UI components:
+ - `AboutDialog.tsx` — Application info dialog
+ - `HistoryList.tsx` — Local conversion history display
+- **`src/lib/`** — Business logic and utilities:
+ - `formats.ts` — Format definitions and conversion mapping
+ - `formats.test.ts` — Unit tests for format logic
+- **`src/types.ts`** — Shared TypeScript types and interfaces
+- **`src/styles.css`** — Tailwind CSS directives and custom styles
+- **`src/main.tsx`** — React entry point
+
+## Backend Architecture (Rust)
+
+The Rust backend exposes IPC commands invoked from the frontend:
+
+- **`src-tauri/src/main.rs`** — Application entry point
+- **`src-tauri/src/lib.rs`** — Tauri command implementations (image conversion,
+ file handling, history management)
+- **`src-tauri/Cargo.toml`** — Rust dependencies and build configuration
+
+## Data Flow
+
+1. User drops or selects an image file in the frontend
+2. Frontend extracts file metadata and sends an IPC `invoke` to the Rust backend
+3. Rust backend:
+ a. Validates the input file
+ b. Decodes the image using the appropriate library
+ c. Encodes the image in the target format
+ d. Writes the output file to the user-selected directory
+ e. Returns the result + history entry to the frontend
+4. Frontend displays the result and updates the history list
+
+## Security Model
+
+- **No uploads** — All processing is local
+- **No accounts** — No authentication or user data collection
+- **No telemetry** — No analytics, crash reporting, or usage tracking
+- **No persistent storage of files** — Only filenames and metadata are stored
+ in history
+- **Safe output naming** — Output files never overwrite existing files
+- **CSP** — Content Security Policy is configured via Tauri (currently null
+ for development; locked down for production)
+
+## Auto-Update Architecture
+
+OpenConvert uses the Tauri updater plugin to check for new releases on
+GitHub Releases. The workflow:
+
+1. A new GitHub Release is published with Tauri updater metadata
+2. At app startup, updater checks `latest.json` on GitHub Releases
+3. If a newer version is found, user is prompted to download and install
+4. The NSIS installer performs a silent passive install
+
+## Build and Release Pipeline
+
+- **CI** (`.github/workflows/ci.yml`): Lint, typecheck, test, and build on
+ every push/PR
+- **Release** (`.github/workflows/release.yml`): Triggered by `v*` tags.
+ Builds the Windows NSIS installer and publishes to GitHub Releases with
+ auto-update metadata
diff --git a/package.json b/package.json
index 7a4cb78..67f8f45 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,26 @@
"name": "openconvert",
"private": true,
"version": "0.1.0",
+ "description": "A bright, roomy, local-first desktop file converter for Windows.",
+ "keywords": [
+ "image-converter",
+ "tauri",
+ "desktop-app",
+ "windows",
+ "local-first",
+ "privacy",
+ "file-converter"
+ ],
+ "author": "Sparsh Sam ",
+ "license": "AGPL-3.0",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sparshsam/OpenConvert.git"
+ },
+ "bugs": {
+ "url": "https://github.com/sparshsam/OpenConvert/issues"
+ },
+ "homepage": "https://github.com/sparshsam/OpenConvert#readme",
"type": "module",
"scripts": {
"dev": "vite",
From fa1e4a9d5e4c222609d30a5a34d2b336688b743b Mon Sep 17 00:00:00 2001
From: Sparsh Sam
Date: Sun, 14 Jun 2026 20:58:26 -0400
Subject: [PATCH 2/2] =?UTF-8?q?chore:=20remove=20.github/FUNDING.yml=20?=
=?UTF-8?q?=E2=80=94=20requires=20explicit=20approval?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.github/FUNDING.yml | 3 ---
1 file changed, 3 deletions(-)
delete mode 100644 .github/FUNDING.yml
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
deleted file mode 100644
index 497360d..0000000
--- a/.github/FUNDING.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-# These are supported funding model platforms
-
-github: sparshsam