|
1 | | -<div align="center"> |
2 | | -<img width="1200" height="475" alt="GHBanner" src="https://github.com/user-attachments/assets/0aa67016-6eaf-458a-adb2-6e31a0763ed6" /> |
3 | | -</div> |
| 1 | +# PaperKnife 🇨🇭 |
4 | 2 |
|
5 | | -# Run and deploy your AI Studio app |
| 3 | +> "Code by intuition. Design by logic." |
6 | 4 |
|
7 | | -This contains everything you need to run your app locally. |
| 5 | +**PaperKnife** is a privacy-first, offline Swiss Army Knife for PDF operations. It operates entirely within your browser (or on your device via Android APK), ensuring your documents never leave your possession. |
8 | 6 |
|
9 | | -View your app in AI Studio: https://ai.studio/apps/drive/1O4JnZamNVOPpCRc1ZkekRh5qheb0Dg3m |
| 7 | +## 🎨 The Aesthetic (Swiss Style) |
10 | 8 |
|
11 | | -## Run Locally |
| 9 | +- **Layout:** Bento Grid (Functional, modular boxes). |
| 10 | +- **Typography:** Inter (Clean, grotesque sans-serif). |
| 11 | +- **Palette:** High-contrast Black & White with **Swiss Red** accents for action. |
| 12 | +- **Vibe:** Precision tool. No soft shadows. No fluff. |
12 | 13 |
|
13 | | -**Prerequisites:** Node.js |
| 14 | +## 🛠 The Tech Stack |
14 | 15 |
|
| 16 | +- **Core:** React 18 + TypeScript |
| 17 | +- **Build Tool:** Vite |
| 18 | +- **Styling:** Tailwind CSS (Utility-first) |
| 19 | +- **Engine:** `pdf-lib` (Client-side PDF manipulation) |
| 20 | +- **Mobile Bridge:** Capacitor (Converts React to Android) |
15 | 21 |
|
16 | | -1. Install dependencies: |
17 | | - `npm install` |
18 | | -2. Set the `GEMINI_API_KEY` in [.env.local](.env.local) to your Gemini API key |
19 | | -3. Run the app: |
20 | | - `npm run dev` |
| 22 | +## 🤖 The Factory (Automated Builds) |
| 23 | + |
| 24 | +This project uses **GitHub Actions** to automatically build an Android APK whenever you push to the `main` branch. |
| 25 | + |
| 26 | +1. **Push Code:** Commit changes to `main`. |
| 27 | +2. **Robot Wakes Up:** The workflow in `.github/workflows/android.yml` triggers. |
| 28 | +3. **Build:** It installs Node, Java, builds the React app, and runs the Gradle build. |
| 29 | +4. **Deliver:** The resulting `.apk` file is uploaded as an artifact named `paperknife-debug`. |
| 30 | + |
| 31 | +### Download the APK |
| 32 | +1. Go to the **Actions** tab in this repository. |
| 33 | +2. Click on the latest workflow run. |
| 34 | +3. Scroll down to **Artifacts** and download `paperknife-debug`. |
| 35 | + |
| 36 | +## 💻 Local Development |
| 37 | + |
| 38 | +If you want to run this locally: |
| 39 | + |
| 40 | +```bash |
| 41 | +# 1. Install dependencies |
| 42 | +npm install |
| 43 | + |
| 44 | +# 2. Run the web dev server |
| 45 | +npm run dev |
| 46 | + |
| 47 | +# 3. Build for production |
| 48 | +npm run build |
| 49 | +``` |
| 50 | + |
| 51 | +## 📱 Mobile Development (Android) |
| 52 | + |
| 53 | +To run on an Android emulator or device locally: |
| 54 | + |
| 55 | +```bash |
| 56 | +# 1. Build the web assets |
| 57 | +npm run build |
| 58 | + |
| 59 | +# 2. Add Android platform (first time only) |
| 60 | +npx cap add android |
| 61 | + |
| 62 | +# 3. Sync web code to Android |
| 63 | +npx cap sync |
| 64 | + |
| 65 | +# 4. Open Android Studio |
| 66 | +npx cap open android |
| 67 | +``` |
| 68 | + |
| 69 | +--- |
| 70 | +*Built by Potatameister - The Vibecoder* |
0 commit comments