docs: translate README to English

This commit is contained in:
2026-02-11 15:34:46 +01:00
parent 5cf04af7ab
commit bd25cc4ab6

326
README.md
View File

@@ -1,99 +1,87 @@
# kashilo.com
Eine anonyme, dezentrale Kleinanzeigen-Plattform mit Monero-Bezahlung.
A privacy-first classifieds platform with Monero payments.
## 🎯 Vision
kashilo.com ermöglicht es Nutzern, Kleinanzeigen zu schalten und Waren/Dienstleistungen sicher über Monero (XMR) zu handeln. Besonderheiten:
kashilo.com lets users post classifieds and trade goods/services securely via Monero (XMR).
- **Anonymität**: Nutzung ohne Account möglich
- **Direkte Zahlung**: Peer-to-Peer via Monero, keine Zahlungsvermittlung
- **Privacy-First**: E2E-Verschlüsselung für Kommunikation
- **Anonymous**: No personal data required
- **Direct payments**: Peer-to-peer via Monero, no payment intermediary
- **Privacy-first**: End-to-end encrypted communication
---
## 📊 Machbarkeitsanalyse
## 📊 Features
### Technisch realisierbar
| Feature | Komplexität | Status |
|---------|-------------|--------|
| Anzeigen CRUD | Niedrig | ✅ Fertig |
| Fiat/XMR Preisanzeige | Niedrig | ✅ Fertig |
| Anonyme Nutzung (UUID + Hash) | Mittel | ✅ Fertig |
| PWA | Mittel | ✅ Grundgerüst |
| Light/Dark Mode | Niedrig | ✅ Fertig |
| i18n (7 Sprachen) | Niedrig | ✅ Fertig |
| Bildergalerie | Niedrig | ✅ Fertig |
| E2E-Chat (NaCl box.before + secretbox) | Hoch | ✅ Fertig |
| PoW Captcha (Server-seitig) | Mittel | ✅ Fertig |
| Rating-System | Mittel | ✅ Fertig |
| Verifiable Listings | Mittel | ✅ Fertig |
| Reputation-System | Mittel | ✅ Fertig |
| 2FA | Mittel | 🔲 Offen |
### ⚠️ Kritische Punkte
1. **Rechtliche Aspekte**
- AGB, Datenschutz, Impressum erforderlich
- Kein Escrow → kein VASP → kein KYC
- Haftung bei Betrug klären
2. **E2E-Verschlüsselung**
- Key-Management für anonyme Nutzer
- Optionen: Signal-Protokoll, Matrix-Protokoll
| Feature | Complexity | Status |
|---------|------------|--------|
| Listings CRUD | Low | ✅ Done |
| Fiat/XMR price display | Low | ✅ Done |
| Anonymous accounts (UUID + Hash) | Medium | ✅ Done |
| PWA | Medium | ✅ Done |
| Light/Dark Mode | Low | ✅ Done |
| i18n (7 languages) | Low | ✅ Done |
| Image gallery | Low | ✅ Done |
| E2E Chat (NaCl box.before + secretbox) | High | ✅ Done |
| PoW Captcha (server-side) | Medium | ✅ Done |
| Rating & Reputation system | Medium | ✅ Done |
| Verifiable Listings | Medium | ✅ Done |
| Pseudonyms & Identicons | Low | ✅ Done |
| Invite code system (alpha) | Low | ✅ Done |
| 2FA | Medium | 🔲 Planned |
---
## 🛠️ Tech-Stack
## 🛠️ Tech Stack
### Frontend (aktuell)
### Frontend
- **Vanilla JavaScript** (ES Modules)
- **Web Components** (Custom Elements)
- **CSS Custom Properties** (Theming)
- **PWA** (Service Worker, Manifest)
### Backend
- **Directus** (Headless CMS, selbst gehostet)
- **Directus** (Headless CMS, self-hosted)
- REST API
- Auth, Rollen, Berechtigungen
- Auth, roles, permissions
### Services
- **Directus** Backend: `api.kashilo.com` (Docker)
- **PoW Captcha + Payment Proxy**: `pow.kashilo.com` (PHP, HMAC-signierte Challenges, BTCPay Proxy + Webhook, OG Meta Proxy)
- **BTCPay Server**: `pay.xmr.rocks` (Monero-Zahlungen, Trocador-Plugin)
- **TweetNaCl**: Self-hosted in `js/vendor/` (E2E-Verschlüsselung)
- **Directus** backend: `api.kashilo.com` (Docker)
- **PoW Captcha + Payment Proxy**: `pow.kashilo.com` (PHP, HMAC-signed challenges, BTCPay proxy + webhook, OG meta proxy)
- **BTCPay Server**: `pay.xmr.rocks` (Monero payments, self-hosted)
- **TweetNaCl**: Self-hosted in `js/vendor/` (E2E encryption)
### Geplant
- Push-Benachrichtigungen (Web Push API)
### Planned
- Push notifications (Web Push API)
---
## 🚀 Setup
### Voraussetzungen
- Moderner Browser mit ES Module Support
- Python 3 (für lokalen Server) oder beliebiger HTTP-Server
### Prerequisites
- Modern browser with ES Module support
- Python 3 (for local server) or any HTTP server
### Installation
```bash
# Repository klonen
# Clone the repository
git clone https://gitea.pro/schmidt1024/kashilo.git
cd kashilo
# Lokalen Server starten
# Start local server
python3 -m http.server 8080
# Oder mit Live-Reload (Node.js erforderlich)
# Or with live-reload (Node.js required)
npx live-server
```
Öffne http://localhost:8080
Open http://localhost:8080
### Deployment
Für Produktion werden nur diese Dateien benötigt:
Production requires only these files:
```
├── index.html
@@ -106,92 +94,92 @@ Für Produktion werden nur diese Dateien benötigt:
└── assets/
```
**Nicht deployen:** `tests/`, `docs/`, `AGENTS.md`, `README.md`, `.git/`, `deploy.sh`
**Do not deploy:** `tests/`, `docs/`, `AGENTS.md`, `README.md`, `.git/`, `deploy.sh`
#### Build (Minifizierung)
#### Build (minification)
```bash
# Einmalig: Dependencies installieren
# One-time: install dependencies
pip3 install rjsmin rcssmin
# Build ausführen (erstellt dist/ mit minifizierten Dateien)
# Run build (creates dist/ with minified files)
python3 build.py
```
Das Build-Script minifiziert alle JS- und CSS-Dateien (~111 KiB Ersparnis) und kopiert alles nach `dist/`.
The build script minifies all JS and CSS files (~111 KiB savings) and copies everything to `dist/`.
#### Deploy via Script
#### Deploy via script
```bash
# Einmalig: SSH-User und Pfad anpassen
# One-time: adjust SSH user and path
./deploy.sh user@kashilo.com /home/user/web/kashilo.com/public_html
# Oder Defaults im Script setzen und einfach:
# Or set defaults in the script and simply run:
./deploy.sh
```
Das Script führt automatisch `python3 build.py` aus, dann `rsync` von `dist/` zum Server.
The script automatically runs `python3 build.py`, then `rsync` from `dist/` to the server.
**Voraussetzungen:**
- Python 3 + `rjsmin` + `rcssmin` (für Build)
- SSH-Key-Authentifizierung zum Server
- `rsync` lokal und auf dem Server installiert
**Requirements:**
- Python 3 + `rjsmin` + `rcssmin` (for build)
- SSH key authentication to server
- `rsync` installed locally and on the server
### Tests ausführen
### Running tests
```bash
# Server starten
# Start server
python3 -m http.server 8080
# Im Browser öffnen
# Open in browser
# http://localhost:8080/tests/
```
Die Tests laufen im Browser und nutzen einen minimalen Test-Runner ohne externe Dependencies.
Tests run in the browser using a minimal test runner without external dependencies.
### Projektstruktur
### Project structure
```
kashilo/
├── index.html # Entry Point
├── index.html # Entry point
├── manifest.json # PWA Manifest
├── service-worker.js # Offline-Support
├── service-worker.js # Offline support
├── css/
│ ├── fonts.css # Web Fonts (Inter, Space Grotesk)
│ ├── variables.css # Theming (Light/Dark)
│ ├── base.css # Reset, Grundstyles
│ └── components.css # UI-Komponenten
│ ├── base.css # Reset, base styles
│ └── components.css # UI components
├── js/
│ ├── app.js # App-Initialisierung
│ ├── router.js # Hash-basiertes Routing
│ ├── i18n.js # Übersetzungssystem
│ ├── app.js # App initialization
│ ├── router.js # Hash-based routing
│ ├── i18n.js # Translation system
│ ├── services/
│ │ ├── directus.js # Directus API Client
│ │ ├── auth.js # UUID-Auth (SHA-256 Hash)
│ │ ├── listings.js # Listings-Service
│ │ ├── categories.js # Kategorien-Service
│ │ ├── locations.js # Standorte-Service
│ │ ├── conversations.js# Zero-Knowledge Chat
│ │ ├── crypto.js # NaCl Encryption (box.before + secretbox)
│ │ ├── currency.js # XMR/Fiat Umrechnung
│ │ ├── pow-captcha.js # PoW Captcha (Server-first, lokaler Fallback)
│ │ ├── btcpay.js # BTCPay Server Integration (Invoice, Checkout)
│ │ ├── favorites.js # Favoriten (localStorage + Directus Sync)
│ │ ├── notifications.js# Benachrichtigungen (Polling, Badge)
│ │ ├── reputation.js # Reputation (Deals, Ratings, Level)
│ │ ├── verification.js # Verifiable Listings (Proof of Possession)
│ │ └── identity.js # Pseudonyme & Identicon-Avatare
│ │ ├── directus.js # Directus API client
│ │ ├── auth.js # UUID auth (SHA-256 hash)
│ │ ├── listings.js # Listings service
│ │ ├── categories.js # Categories service
│ │ ├── locations.js # Locations service
│ │ ├── conversations.js# Zero-knowledge chat
│ │ ├── crypto.js # NaCl encryption (box.before + secretbox)
│ │ ├── currency.js # XMR/fiat conversion (Kraken + CoinGecko)
│ │ ├── pow-captcha.js # PoW captcha (server-first, local fallback)
│ │ ├── btcpay.js # BTCPay Server integration
│ │ ├── favorites.js # Favorites (localStorage + Directus sync)
│ │ ├── notifications.js# Notifications (polling, badge)
│ │ ├── reputation.js # Reputation (deals, ratings, levels)
│ │ ├── verification.js # Verifiable listings (proof of possession)
│ │ └── identity.js # Pseudonyms & identicon avatars
│ ├── vendor/
│ │ ├── nacl-fast.min.js # TweetNaCl (self-hosted)
│ │ ├── nacl-util.min.js # TweetNaCl Utils
│ │ └── cropper.min.js # Image Cropper
│ └── components/
│ ├── app-shell.js # Layout-Container
│ ├── app-header.js # Header mit Navigation
│ ├── app-shell.js # Layout container
│ ├── app-header.js # Header with navigation
│ ├── app-footer.js # Footer
│ ├── auth-modal.js # Login/Register Modal
│ ├── chat-widget.js # E2E Chat Widget
│ └── pages/ # Seiten-Komponenten
│ ├── auth-modal.js # Login/Register modal
│ ├── chat-widget.js # E2E chat widget
│ └── pages/ # Page components
├── locales/
│ ├── de.json # Deutsch
│ ├── en.json # English
@@ -201,120 +189,104 @@ kashilo/
│ ├── pt.json # Português (BR)
│ └── ru.json # Русский
├── tests/
│ ├── index.html # Test-Runner UI
│ ├── test-runner.js # Test-Framework
│ └── *.test.js # Unit Tests
│ ├── index.html # Test runner UI
│ ├── test-runner.js # Test framework
│ └── *.test.js # Unit tests
└── assets/
└── fonts/ # Self-hosted Fonts
└── fonts/ # Self-hosted fonts
```
---
## 📋 Offene Punkte / Roadmap
## 📋 Roadmap
### Phase 1: MVP Frontend
- [x] Projektstruktur
- [x] Routing
- [x] i18n (DE/EN/FR)
- [x] Light/Dark Mode
- [x] PWA Grundgerüst
- [x] Startseite mit Suche, Kategorien, Listings-Grid
- [x] Typografie (Inter + Space Grotesk)
- [x] Such-Komponente mit Accordion-Kategorien
- [x] Anzeige-Detailseite mit Bildergalerie
- [x] Anzeige-Erstellen-Formular
- [x] Suchseite mit Filtern (merged in Home)
- [x] Skeleton Loading, Error Boundary, Offline Indicator
- [x] Lazy Loading für Bilder
- [ ] Responsive Optimierungen
### Phase 1: Frontend
- [x] Project structure, routing, i18n (7 languages)
- [x] Light/Dark mode, PWA shell
- [x] Home page with search, categories, listings grid
- [x] Listing detail page with image gallery
- [x] Create/edit listing form
- [x] Skeleton loading, error boundary, offline indicator
### Phase 2: Backend-Integration ⬅️ **Aktuell**
- [x] Directus aufsetzen (`api.kashilo.com`)
- [x] Listings-Collection (CRUD)
- [x] Categories mit Übersetzungen
- [x] User-Auth (UUID + SHA-256 Hash, anonym)
- [x] Bilder-Upload (Junction-Table)
- [x] API-Services (`directus.js`, `listings.js`, `categories.js`, `locations.js`)
- [x] Directus Public-Berechtigungen (siehe `docs/DIRECTUS-SCHEMA.md`)
- [x] Neue Seiten: Favoriten, Meine Anzeigen, Nachrichten, Einstellungen
- [x] Listings bearbeiten (Edit-Modus für eigene Anzeigen)
### Phase 2: Backend integration
- [x] Directus setup (`api.kashilo.com`)
- [x] Listings, categories, locations collections
- [x] Anonymous auth (UUID + SHA-256 hash)
- [x] Image upload, favorites, my listings, messages, settings pages
### Phase 3: Kommunikation & Sicherheit
- [x] Chat-System (E2E-verschlüsselt mit NaCl box.before + secretbox)
- [x] Conversations/Messages Services
- [x] Merkliste (Favoriten-Seite)
- [x] Favoriten Directus-Sync (Union-Merge bei Login, localStorage-Fallback)
- [x] PoW Captcha (server-seitig via pow.kashilo.com, HMAC-signiert)
- [x] TweetNaCl self-hosted (kein CDN)
- [x] In-App Benachrichtigungen (Notifications-Service, Glocke mit Badge)
- [x] Open Graph & X Card Meta-Tags (dynamisch pro Listing)
- [ ] Push-Benachrichtigungen (Web Push API)
### Phase 3: Communication & Security ✅
- [x] E2E encrypted chat (NaCl box.before + secretbox)
- [x] Favorites with Directus sync (union merge on login)
- [x] PoW captcha (server-side via pow.kashilo.com)
- [x] TweetNaCl self-hosted (no CDN)
- [x] In-app notifications (polling, badge)
- [x] Open Graph & X Card meta tags
### Phase 4: Payments
- [x] XMR-Kursabfrage API (Kraken primary, CoinGecko fallback)
- [x] Fiat ↔ XMR Umrechnung (Dual-Preis-Anzeige)
- [x] BTCPay Server Integration (`pay.xmr.rocks`, Proxy auf `pow.kashilo.com`)
- [x] Listing-Gebühr: 1 USD via Monero
- [x] Webhook für Auto-Publish nach Blockchain-Confirmation
- [x] Expired Listings (Directus Flow, Status-Badges auf Cards)
- [x] Token-Refresh bei Tab-Visibility-Change
### Phase 5: Trust & Safety
- [x] Rating-System
- [x] Reputation-System (Deals, Levels, Badges)
- [x] Verifiable Listings (Proof of Possession)
- [x] Pseudonyme & Identicon-Avatare
### Phase 4: Payments
- [x] XMR rate API (Kraken primary, CoinGecko fallback)
- [x] Fiat ↔ XMR conversion (dual price display)
- [x] BTCPay Server integration (self-hosted)
- [x] Listing fee: $1 via Monero
- [x] Webhook for auto-publish after blockchain confirmation
- [x] Expired listings (Directus flow, status badges)
### Phase 5: Trust & Safety
- [x] Rating & reputation system (deals, levels, badges)
- [x] Verifiable listings (proof of possession)
- [x] Pseudonyms & identicon avatars
- [x] Terms of service, privacy policy, legal notice (7 languages)
- [ ] 2FA
- [ ] Reporting/Moderation
- [x] AGB, Datenschutz, Impressum (Entwürfe in 7 Sprachen)
- [ ] Reporting/moderation
- [ ] Push notifications (Web Push API)
---
## 🎨 Design-Entscheidungen
## 🎨 Design
### Typografie
### Typography
- **Headlines**: Space Grotesk (Medium, Bold)
- **Body**: Inter (Regular, Medium, SemiBold, Bold)
- Self-hosted Fonts (SIL Open Font License)
- Self-hosted fonts (SIL Open Font License)
### Farbpalette
### Color palette
- **Warm Teal Theme**
- **Light Mode**: BG #FAFAF9, Text #1C1917, Accent #0D9488 (Teal)
- **Dark Mode**: BG #171717, Text #F5F5F4, Accent #2DD4BF (Teal light)
- **Light Mode**: BG #FAFAF9, Text #1C1917, Accent #0D9488
- **Dark Mode**: BG #171717, Text #F5F5F4, Accent #2DD4BF
### Mobile-First
- Responsive Grid (2 Spalten Mobile, 5 Spalten Desktop)
- Touch-optimierte Buttons
- Icon-only Buttons auf kleinen Screens
### Mobile-first
- Responsive grid (2 columns mobile, 5 columns desktop)
- Touch-optimized buttons
- Icon-only buttons on small screens
---
## 🤝 Contributing
1. Feature-Branch erstellen
2. Änderungen committen
3. Pull Request öffnen
1. Create a feature branch
2. Commit your changes
3. Open a pull request
### Code-Konventionen
- ES Modules verwenden
- Web Components für UI-Komponenten
- CSS Custom Properties für Theming
- Übersetzungsschlüssel für alle Texte
- Keine Semikolons in JavaScript (außer for-loops, CSS)
- Englische Kommentare im Code
### Code conventions
- ES Modules
- Web Components for UI
- CSS Custom Properties for theming
- Translation keys for all user-facing text
- No semicolons in JavaScript (except for-loops, CSS)
- English comments in code
---
## 📄 Lizenz
## 📄 License
Dieses Projekt steht unter der [GNU Affero General Public License v3.0 (AGPL-3.0)](LICENSE).
This project is licensed under the [GNU Affero General Public License v3.0 (AGPL-3.0)](LICENSE).
Der Quellcode ist frei verfügbar. Forks und Modifikationen müssen ebenfalls unter AGPL-3.0 veröffentlicht werden.
Source code is freely available. Forks and modifications must also be published under AGPL-3.0.
**kashilo** ist eine eingetragene Marke. Der Name und das Logo dürfen nicht ohne Genehmigung für abgeleitete Projekte verwendet werden.
**kashilo** is a registered trademark. The name and logo may not be used for derivative projects without permission.
---
## 📞 Kontakt
## 📞 Contact
- **Issues:** [gitea.pro/schmidt1024/kashilo/issues](https://gitea.pro/schmidt1024/kashilo/issues)
- **Website:** [kashilo.com](https://kashilo.com)