Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

Add Tauri v2 desktop app + CI/CD + landing page

PurpleDoubleDbd22a13579bf
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..6e541618
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,67 @@
+name: Build & Release Desktop App
+
+on:
+ release:
+ types: [published]
+
+permissions:
+ contents: write
+
+jobs:
+ build-tauri:
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - platform: ubuntu-22.04
+ args: ''
+ - platform: windows-latest
+ args: ''
+ - platform: macos-latest
+ args: '--target aarch64-apple-darwin'
+ - platform: macos-latest
+ args: '--target x86_64-apple-darwin'
+
+ runs-on: ${{ matrix.platform }}
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: 22
+
+ - name: Install Rust stable
+ uses: dtolnay/rust-toolchain@stable
+ with:
+ targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
+
+ - name: Install Linux dependencies
+ if: matrix.platform == 'ubuntu-22.04'
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y \
+ libwebkit2gtk-4.1-dev \
+ libappindicator3-dev \
+ librsvg2-dev \
+ patchelf \
+ libgtk-3-dev \
+ libsoup-3.0-dev \
+ libjavascriptcoregtk-4.1-dev
+
+ - name: Install npm dependencies
+ run: npm ci
+
+ - name: Build and release Tauri app
+ uses: tauri-apps/tauri-action@v0
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ tagName: ${{ github.ref_name }}
+ releaseName: 'Locally Uncensored v__VERSION__'
+ releaseBody: 'See the release notes for details.'
+ releaseDraft: false
+ prerelease: false
+ args: ${{ matrix.args }}
diff --git a/landing-page/index.html b/landing-page/index.html
new file mode 100644
index 00000000..6517c289
--- /dev/null
+++ b/landing-page/index.html
@@ -0,0 +1,228 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="UTF-8">
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>Locally Uncensored — All-in-One Local AI App | Chat, Images, Video</title>
+<meta name="description" content="The only local AI app that does Chat + Image Generation + Video Generation in one beautiful UI. Open source, 100% offline, no Docker needed. Powered by Ollama & ComfyUI.">
+<meta name="keywords" content="local ai app, ollama frontend, uncensored ai, comfyui frontend, self-hosted ai, offline ai, local llm, stable diffusion ui, ai chat, image generation, video generation">
+<meta property="og:title" content="Locally Uncensored — Chat. Images. Video. All Local.">
+<meta property="og:description" content="The only open-source local AI app combining Chat + Image Gen + Video Gen in one beautiful UI.">
+<meta property="og:image" content="https://raw.githubusercontent.com/PurpleDoubleD/locally-uncensored/master/docs/social-preview.png">
+<meta property="og:url" content="https://purpledoubled.github.io/locally-uncensored">
+<meta property="og:type" content="website">
+<meta name="twitter:card" content="summary_large_image">
+<link rel="icon" href="../public/favicon.svg">
+<style>
+*{margin:0;padding:0;box-sizing:border-box}
+body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:#0a0a1a;color:#e0e0f0;overflow-x:hidden}
+a{color:#a78bfa;text-decoration:none}
+a:hover{color:#c4b5fd}
+
+/* Nav */
+nav{position:fixed;top:0;width:100%;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;background:rgba(10,10,26,0.85);backdrop-filter:blur(20px);z-index:100;border-bottom:1px solid rgba(255,255,255,0.05)}
+nav .logo{font-size:1.3rem;font-weight:700;background:linear-gradient(135deg,#a78bfa,#6d28d9);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
+nav ul{list-style:none;display:flex;gap:2rem}
+nav ul li a{color:#9ca3af;font-size:.9rem;transition:.2s}
+nav ul li a:hover{color:#fff}
+.gh-btn{display:inline-flex;align-items:center;gap:.5rem;background:#1f1f3a;padding:.5rem 1rem;border-radius:8px;font-size:.85rem;color:#e0e0f0;border:1px solid rgba(255,255,255,0.1);transition:.2s}
+.gh-btn:hover{background:#2a2a4a;border-color:#a78bfa}
+
+/* Hero */
+.hero{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8rem 2rem 4rem;background:radial-gradient(ellipse at 50% 0%,rgba(109,40,217,0.15),transparent 70%)}
+.hero h1{font-size:clamp(2.5rem,6vw,4.5rem);font-weight:800;margin-bottom:1rem;background:linear-gradient(135deg,#fff,#a78bfa);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
+.hero .tagline{font-size:clamp(1.1rem,2.5vw,1.5rem);color:#9ca3af;margin-bottom:2rem;letter-spacing:.5px}
+.hero .tagline span{color:#a78bfa}
+.hero-cta{display:flex;gap:1rem;flex-wrap:wrap;justify-content:center;margin-bottom:3rem}
+.btn{padding:.8rem 2rem;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:.2s;border:none}
+.btn-primary{background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff}
+.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 30px rgba(124,58,237,0.4)}
+.btn-secondary{background:rgba(255,255,255,0.05);color:#e0e0f0;border:1px solid rgba(255,255,255,0.15)}
+.btn-secondary:hover{background:rgba(255,255,255,0.1)}
+
+/* Screenshots */
+.screenshots{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;max-width:1000px;margin:0 auto;padding:0 1rem}
+.screenshots img{width:100%;border-radius:12px;border:1px solid rgba(255,255,255,0.08);transition:.3s;cursor:pointer}
+.screenshots img:hover{transform:scale(1.03);border-color:rgba(167,139,250,0.3)}
+
+/* Section */
+section{padding:6rem 2rem}
+.section-title{text-align:center;font-size:2.2rem;font-weight:700;margin-bottom:.8rem}
+.section-sub{text-align:center;color:#9ca3af;margin-bottom:3rem;font-size:1.1rem}
+
+/* Features */
+.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;max-width:1100px;margin:0 auto}
+.feature-card{background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06);border-radius:16px;padding:2rem;transition:.3s}
+.feature-card:hover{background:rgba(255,255,255,0.06);border-color:rgba(167,139,250,0.2);transform:translateY(-4px)}
+.feature-card .icon{font-size:2rem;margin-bottom:1rem}
+.feature-card h3{font-size:1.15rem;margin-bottom:.5rem}
+.feature-card p{color:#9ca3af;font-size:.9rem;line-height:1.6}
+
+/* Comparison */
+.compare-wrap{max-width:900px;margin:0 auto;overflow-x:auto}
+table{width:100%;border-collapse:collapse;font-size:.95rem}
+th{background:rgba(124,58,237,0.15);padding:1rem;text-align:left;font-weight:600;border-bottom:1px solid rgba(255,255,255,0.1)}
+td{padding:.8rem 1rem;border-bottom:1px solid rgba(255,255,255,0.04)}
+tr:hover{background:rgba(255,255,255,0.02)}
+td:first-child{font-weight:500}
+.yes{color:#22c55e}
+.no{color:#ef4444}
+.maybe{color:#eab308}
+
+/* Get Started */
+.get-started{max-width:700px;margin:0 auto;text-align:center}
+.install-tabs{display:flex;justify-content:center;gap:1rem;margin-bottom:1.5rem}
+.tab{padding:.6rem 1.5rem;border-radius:8px;cursor:pointer;background:rgba(255,255,255,0.05);border:1px solid rgba(255,255,255,0.1);color:#9ca3af;transition:.2s}
+.tab.active{background:rgba(124,58,237,0.2);border-color:#7c3aed;color:#fff}
+.code-block{background:#111128;border-radius:12px;padding:1.5rem;text-align:left;font-family:'Fira Code',monospace;font-size:.9rem;color:#a78bfa;border:1px solid rgba(255,255,255,0.06);display:none}
+.code-block.active{display:block}
+.code-block .comment{color:#555}
+
+/* Footer */
+footer{text-align:center;padding:3rem 2rem;border-top:1px solid rgba(255,255,255,0.05);color:#666;font-size:.85rem}
+footer a{color:#9ca3af}
+footer .links{display:flex;justify-content:center;gap:2rem;margin-bottom:1rem}
+
+/* Animations */
+.fade-in{opacity:0;transform:translateY(30px);transition:opacity .6s,transform .6s}
+.fade-in.visible{opacity:1;transform:translateY(0)}
+
+/* Mobile */
+@media(max-width:768px){
+ nav ul{display:none}
+ .screenshots{grid-template-columns:1fr}
+ .hero h1{font-size:2.2rem}
+ .features{grid-template-columns:1fr}
+ table{font-size:.8rem}
+}
+</style>
+</head>
+<body>
+
+<nav>
+ <div class="logo">🔓 Locally Uncensored</div>
+ <ul>
+ <li><a href="#features">Features</a></li>
+ <li><a href="#compare">Compare</a></li>
+ <li><a href="#start">Get Started</a></li>
+ </ul>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored" class="gh-btn" target="_blank">⭐ Star on GitHub</a>
+</nav>
+
+<section class="hero">
+ <h1>Locally Uncensored</h1>
+ <p class="tagline"><span>Chat.</span> <span>Images.</span> <span>Video.</span> All Local. All Yours.</p>
+ <div class="hero-cta">
+ <a href="#start" class="btn btn-primary">Get Started</a>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored" class="btn btn-secondary" target="_blank">View on GitHub</a>
+ </div>
+ <div class="screenshots">
+ <img src="../docs/screenshots/marketing_03_chat_personas.png" alt="AI Chat with Personas" loading="lazy">
+ <img src="../docs/screenshots/marketing_06_create_view.png" alt="Image & Video Generation" loading="lazy">
+ <img src="../docs/screenshots/marketing_07_model_manager.png" alt="Model Manager" loading="lazy">
+ </div>
+</section>
+
+<section id="features" class="fade-in">
+ <h2 class="section-title">Everything You Need. One App.</h2>
+ <p class="section-sub">No more juggling Ollama, ComfyUI, and five browser tabs.</p>
+ <div class="features">
+ <div class="feature-card">
+ <div class="icon">💬</div>
+ <h3>Uncensored AI Chat</h3>
+ <p>Run abliterated models via Ollama with zero restrictions. Say what you want, get real answers.</p>
+ </div>
+ <div class="feature-card">
+ <div class="icon">🎨</div>
+ <h3>Image Generation</h3>
+ <p>Text-to-image via ComfyUI. SDXL, FLUX, Pony — full parameter control, no cloud needed.</p>
+ </div>
+ <div class="feature-card">
+ <div class="icon">🎬</div>
+ <h3>Video Generation</h3>
+ <p>Create videos with Wan 2.1/2.2 and AnimateDiff. All running on your hardware.</p>
+ </div>
+ <div class="feature-card">
+ <div class="icon">🎭</div>
+ <h3>25+ Personas</h3>
+ <p>From Helpful Assistant to Roast Master. Ready out of the box, no prompt engineering needed.</p>
+ </div>
+ <div class="feature-card">
+ <div class="icon">🧠</div>
+ <h3>Model Manager</h3>
+ <p>Browse, install, and switch models with one click. Auto-detects everything you have installed.</p>
+ </div>
+ <div class="feature-card">
+ <div class="icon">⚡</div>
+ <h3>One-Click Setup</h3>
+ <p>Run setup.bat (Windows) or setup.sh (Linux/Mac). No Docker, no Terminal wizardry.</p>
+ </div>
+ </div>
+</section>
+
+<section id="compare" class="fade-in">
+ <h2 class="section-title">How It Compares</h2>
+ <p class="section-sub">The only app that does all three — locally.</p>
+ <div class="compare-wrap">
+ <table>
+ <tr><th>Feature</th><th>Locally Uncensored</th><th>Open WebUI</th><th>LM Studio</th><th>SillyTavern</th></tr>
+ <tr><td>AI Chat</td><td class="yes">✅</td><td class="yes">✅</td><td class="yes">✅</td><td class="yes">✅</td></tr>
+ <tr><td>Image Generation</td><td class="yes">✅</td><td class="no">❌</td><td class="no">❌</td><td class="no">❌</td></tr>
+ <tr><td>Video Generation</td><td class="yes">✅</td><td class="no">❌</td><td class="no">❌</td><td class="no">❌</td></tr>
+ <tr><td>Uncensored by Default</td><td class="yes">✅</td><td class="no">❌</td><td class="no">❌</td><td class="maybe">⚠️</td></tr>
+ <tr><td>One-Click Setup</td><td class="yes">✅</td><td class="no">❌ Docker</td><td class="yes">✅</td><td class="no">❌ Node.js</td></tr>
+ <tr><td>25+ Built-in Personas</td><td class="yes">✅</td><td class="no">❌</td><td class="no">❌</td><td class="maybe">⚠️ manual</td></tr>
+ <tr><td>Open Source</td><td class="yes">✅</td><td class="yes">✅</td><td class="no">❌</td><td class="yes">✅</td></tr>
+ <tr><td>No Docker Required</td><td class="yes">✅</td><td class="no">❌</td><td class="yes">✅</td><td class="yes">✅</td></tr>
+ <tr><td>100% Offline</td><td class="yes">✅</td><td class="yes">✅</td><td class="yes">✅</td><td class="yes">✅</td></tr>
+ </table>
+ </div>
+</section>
+
+<section id="start" class="fade-in">
+ <h2 class="section-title">Get Started in 60 Seconds</h2>
+ <p class="section-sub">Clone, run, done.</p>
+ <div class="get-started">
+ <div class="install-tabs">
+ <div class="tab active" onclick="switchTab('win')">Windows</div>
+ <div class="tab" onclick="switchTab('linux')">Linux / macOS</div>
+ </div>
+ <div class="code-block active" id="tab-win">
+ <span class="comment"># Clone and run</span><br>
+ git clone https://github.com/PurpleDoubleD/locally-uncensored.git<br>
+ cd locally-uncensored<br>
+ setup.bat
+ </div>
+ <div class="code-block" id="tab-linux">
+ <span class="comment"># Clone and run</span><br>
+ git clone https://github.com/PurpleDoubleD/locally-uncensored.git<br>
+ cd locally-uncensored<br>
+ chmod +x setup.sh && ./setup.sh
+ </div>
+ <p style="margin-top:1.5rem;color:#9ca3af;font-size:.9rem">The setup script installs Node.js, Ollama, downloads a recommended AI model, and launches the app.</p>
+ </div>
+</section>
+
+<footer>
+ <div class="links">
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored" target="_blank">GitHub</a>
+ <a href="https://reddit.com/user/GroundbreakingMall54" target="_blank">Reddit</a>
+ <a href="https://github.com/PurpleDoubleD/locally-uncensored/discussions" target="_blank">Discussions</a>
+ </div>
+ <p>MIT License · Built with privacy in mind · Your data stays on your machine 🔒</p>
+</footer>
+
+<script>
+function switchTab(t){
+ document.querySelectorAll('.tab').forEach(e=>e.classList.remove('active'));
+ document.querySelectorAll('.code-block').forEach(e=>e.classList.remove('active'));
+ event.target.classList.add('active');
+ document.getElementById('tab-'+t).classList.add('active');
+}
+const obs=new IntersectionObserver(es=>{es.forEach(e=>{if(e.isIntersecting)e.target.classList.add('visible')})},{threshold:.1});
+document.querySelectorAll('.fade-in').forEach(e=>obs.observe(e));
+document.querySelectorAll('nav a[href^="#"]').forEach(a=>{a.addEventListener('click',e=>{e.preventDefault();document.querySelector(a.getAttribute('href')).scrollIntoView({behavior:'smooth'})})});
+</script>
+
+</body>
+</html>
diff --git a/package-lock.json b/package-lock.json
index 767c096e..3268fd53 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -29,6 +29,8 @@
},
"devDependencies": {
"@eslint/js": "^9.39.4",
+ "@tauri-apps/api": "^2.10.1",
+ "@tauri-apps/cli": "^2.10.1",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
@@ -1217,6 +1219,234 @@
"vite": "^5.2.0 || ^6 || ^7 || ^8"
}
},
+ "node_modules/@tauri-apps/api": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/api/-/api-2.10.1.tgz",
+ "integrity": "sha512-hKL/jWf293UDSUN09rR69hrToyIXBb8CjGaWC7gfinvnQrBVvnLr08FeFi38gxtugAVyVcTa5/FD/Xnkb1siBw==",
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/tauri"
+ }
+ },
+ "node_modules/@tauri-apps/cli": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli/-/cli-2.10.1.tgz",
+ "integrity": "sha512-jQNGF/5quwORdZSSLtTluyKQ+o6SMa/AUICfhf4egCGFdMHqWssApVgYSbg+jmrZoc8e1DscNvjTnXtlHLS11g==",
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "bin": {
+ "tauri": "tauri.js"
+ },
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/tauri"
+ },
+ "optionalDependencies": {
+ "@tauri-apps/cli-darwin-arm64": "2.10.1",
+ "@tauri-apps/cli-darwin-x64": "2.10.1",
+ "@tauri-apps/cli-linux-arm-gnueabihf": "2.10.1",
+ "@tauri-apps/cli-linux-arm64-gnu": "2.10.1",
+ "@tauri-apps/cli-linux-arm64-musl": "2.10.1",
+ "@tauri-apps/cli-linux-riscv64-gnu": "2.10.1",
+ "@tauri-apps/cli-linux-x64-gnu": "2.10.1",
+ "@tauri-apps/cli-linux-x64-musl": "2.10.1",
+ "@tauri-apps/cli-win32-arm64-msvc": "2.10.1",
+ "@tauri-apps/cli-win32-ia32-msvc": "2.10.1",
+ "@tauri-apps/cli-win32-x64-msvc": "2.10.1"
+ }
+ },
+ "node_modules/@tauri-apps/cli-darwin-arm64": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-arm64/-/cli-darwin-arm64-2.10.1.tgz",
+ "integrity": "sha512-Z2OjCXiZ+fbYZy7PmP3WRnOpM9+Fy+oonKDEmUE6MwN4IGaYqgceTjwHucc/kEEYZos5GICve35f7ZiizgqEnQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-darwin-x64": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-darwin-x64/-/cli-darwin-x64-2.10.1.tgz",
+ "integrity": "sha512-V/irQVvjPMGOTQqNj55PnQPVuH4VJP8vZCN7ajnj+ZS8Kom1tEM2hR3qbbIRoS3dBKs5mbG8yg1WC+97dq17Pw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm-gnueabihf": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm-gnueabihf/-/cli-linux-arm-gnueabihf-2.10.1.tgz",
+ "integrity": "sha512-Hyzwsb4VnCWKGfTw+wSt15Z2pLw2f0JdFBfq2vHBOBhvg7oi6uhKiF87hmbXOBXUZaGkyRDkCHsdzJcIfoJC2w==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-gnu": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-gnu/-/cli-linux-arm64-gnu-2.10.1.tgz",
+ "integrity": "sha512-OyOYs2t5GkBIvyWjA1+h4CZxTcdz1OZPCWAPz5DYEfB0cnWHERTnQ/SLayQzncrT0kwRoSfSz9KxenkyJoTelA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-arm64-musl": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-arm64-musl/-/cli-linux-arm64-musl-2.10.1.tgz",
+ "integrity": "sha512-MIj78PDDGjkg3NqGptDOGgfXks7SYJwhiMh8SBoZS+vfdz7yP5jN18bNaLnDhsVIPARcAhE1TlsZe/8Yxo2zqg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-riscv64-gnu": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-riscv64-gnu/-/cli-linux-riscv64-gnu-2.10.1.tgz",
+ "integrity": "sha512-X0lvOVUg8PCVaoEtEAnpxmnkwlE1gcMDTqfhbefICKDnOTJ5Est3qL0SrWxizDackIOKBcvtpejrSiVpuJI1kw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-gnu": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-gnu/-/cli-linux-x64-gnu-2.10.1.tgz",
+ "integrity": "sha512-2/12bEzsJS9fAKybxgicCDFxYD1WEI9kO+tlDwX5znWG2GwMBaiWcmhGlZ8fi+DMe9CXlcVarMTYc0L3REIRxw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-linux-x64-musl": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-linux-x64-musl/-/cli-linux-x64-musl-2.10.1.tgz",
+ "integrity": "sha512-Y8J0ZzswPz50UcGOFuXGEMrxbjwKSPgXftx5qnkuMs2rmwQB5ssvLb6tn54wDSYxe7S6vlLob9vt0VKuNOaCIQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-arm64-msvc": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-arm64-msvc/-/cli-win32-arm64-msvc-2.10.1.tgz",
+ "integrity": "sha512-iSt5B86jHYAPJa/IlYw++SXtFPGnWtFJriHn7X0NFBVunF6zu9+/zOn8OgqIWSl8RgzhLGXQEEtGBdR4wzpVgg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-ia32-msvc": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-ia32-msvc/-/cli-win32-ia32-msvc-2.10.1.tgz",
+ "integrity": "sha512-gXyxgEzsFegmnWywYU5pEBURkcFN/Oo45EAwvZrHMh+zUSEAvO5E8TXsgPADYm31d1u7OQU3O3HsYfVBf2moHw==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
+ "node_modules/@tauri-apps/cli-win32-x64-msvc": {
+ "version": "2.10.1",
+ "resolved": "https://registry.npmjs.org/@tauri-apps/cli-win32-x64-msvc/-/cli-win32-x64-msvc-2.10.1.tgz",
+ "integrity": "sha512-6Cn7YpPFwzChy0ERz6djKEmUehWrYlM+xTaNzGPgZocw3BD7OfwfWHKVWxXzdjEW2KfKkHddfdxK1XXTYqBRLg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "Apache-2.0 OR MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/@tweenjs/tween.js": {
"version": "23.1.3",
"resolved": "https://registry.npmjs.org/@tweenjs/tween.js/-/tween.js-23.1.3.tgz",
diff --git a/package.json b/package.json
index 9689fda1..caad81d5 100644
--- a/package.json
+++ b/package.json
@@ -25,7 +25,9 @@
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "eslint .",
- "preview": "vite preview"
+ "preview": "vite preview",
+ "tauri:dev": "tauri dev",
+ "tauri:build": "tauri build"
},
"dependencies": {
"@react-three/drei": "^10.7.7",
@@ -48,6 +50,8 @@
},
"devDependencies": {
"@eslint/js": "^9.39.4",
+ "@tauri-apps/api": "^2.10.1",
+ "@tauri-apps/cli": "^2.10.1",
"@types/node": "^24.12.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
new file mode 100644
index 00000000..4a1fe40c
--- /dev/null
+++ b/src-tauri/Cargo.toml
@@ -0,0 +1,21 @@
+[package]
+name = "locally-uncensored"
+version = "1.0.0"
+description = "Private, local AI chat & image/video generation"
+authors = ["purpledoubled"]
+edition = "2021"
+
+[build-dependencies]
+tauri-build = { version = "2", features = [] }
+
+[dependencies]
+tauri = { version = "2", features = [] }
+serde = { version = "1", features = ["derive"] }
+serde_json = "1"
+
+[profile.release]
+panic = "abort"
+codegen-units = 1
+lto = true
+opt-level = "s"
+strip = true
diff --git a/src-tauri/build.rs b/src-tauri/build.rs
new file mode 100644
index 00000000..d860e1e6
--- /dev/null
+++ b/src-tauri/build.rs
@@ -0,0 +1,3 @@
+fn main() {
+ tauri_build::build()
+}
diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json
new file mode 100644
index 00000000..2f3e023f
--- /dev/null
+++ b/src-tauri/capabilities/default.json
@@ -0,0 +1,26 @@
+{
+ "$schema": "../gen/schemas/desktop-schema.json",
+ "identifier": "default",
+ "description": "Capability for the main window",
+ "windows": ["main"],
+ "permissions": [
+ "core:default",
+ {
+ "identifier": "http:default",
+ "allow": [
+ {
+ "url": "http://localhost:11434/*"
+ },
+ {
+ "url": "http://127.0.0.1:11434/*"
+ },
+ {
+ "url": "http://localhost:8188/*"
+ },
+ {
+ "url": "http://127.0.0.1:8188/*"
+ }
+ ]
+ }
+ ]
+}
diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png
new file mode 100644
index 00000000..45cd6058
Binary files /dev/null and b/src-tauri/icons/128x128.png differ
diff --git a/src-tauri/icons/[email protected] b/src-tauri/icons/[email protected]
new file mode 100644
index 00000000..45cd6058
Binary files /dev/null and b/src-tauri/icons/[email protected] differ
diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png
new file mode 100644
index 00000000..711c91dc
Binary files /dev/null and b/src-tauri/icons/32x32.png differ
diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico
new file mode 100644
index 00000000..9e6e6e9d
Binary files /dev/null and b/src-tauri/icons/icon.ico differ
diff --git a/src-tauri/icons/icon.png b/src-tauri/icons/icon.png
new file mode 100644
index 00000000..0684a27c
Binary files /dev/null and b/src-tauri/icons/icon.png differ
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
new file mode 100644
index 00000000..e6ad770c
--- /dev/null
+++ b/src-tauri/src/main.rs
@@ -0,0 +1,8 @@
+// Prevents additional console window on Windows in release, DO NOT REMOVE!!
+#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
+
+fn main() {
+ tauri::Builder::default()
+ .run(tauri::generate_context!())
+ .expect("error while running tauri application");
+}
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
new file mode 100644
index 00000000..4b46793a
--- /dev/null
+++ b/src-tauri/tauri.conf.json
@@ -0,0 +1,36 @@
+{
+ "$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
+ "productName": "Locally Uncensored",
+ "version": "1.0.0",
+ "identifier": "com.purpledoubled.locally-uncensored",
+ "build": {
+ "devUrl": "http://localhost:5173",
+ "frontendDist": "../dist"
+ },
+ "app": {
+ "withGlobalTauri": true,
+ "windows": [
+ {
+ "title": "Locally Uncensored",
+ "width": 1280,
+ "height": 800,
+ "resizable": true,
+ "fullscreen": false
+ }
+ ],
+ "security": {
+ "csp": "default-src 'self'; connect-src 'self' http://localhost:11434 http://127.0.0.1:11434 http://localhost:8188 http://127.0.0.1:8188 ws://localhost:8188 ws://127.0.0.1:8188; img-src 'self' data: blob: http://localhost:8188 http://127.0.0.1:8188; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline'"
+ }
+ },
+ "bundle": {
+ "active": true,
+ "targets": "all",
+ "icon": [
+ "icons/32x32.png",
+ "icons/128x128.png",
+ "icons/icon.ico",
+ "icons/icon.png"
+ ]
+ }
+}