RisuAI-Hardened Svelte Themes

Risuai Hardened

Security-hardened fork of RisuAI - local-only, no cloud dependencies

RisuAI-Hardened

A security-hardened fork of RisuAI.

About This Fork

This is a personal fork focused on:

  • Removing cloud/sync dependencies
  • Local-only operation
  • Security hardening

This is NOT a replacement for RisuAI. If you want the full-featured experience with cloud sync, Hub, and all features, use the original RisuAI.

Security Hardening

See SECURITY.md for detailed changelog.

Key changes:

  • Network allowlist enforcement (JS + Rust defense in depth)
  • API key protection (moved from URL query to headers)
  • Fetch logging disabled to prevent credential exposure
  • Server-side URL validation with redirect bypass protection

Additional Features

Gemini Explicit Caching

Cost optimization for Google Gemini API calls:

  • Caches system prompt + conversation history
  • ~90% cost reduction on cached tokens
  • Toggle in Settings > Google API section
  • Requires Flash (1024+ tokens) or Pro (4096+ tokens)

Disabled Features

Feature Reason
Plugins Code execution risk
MCP (Model Context Protocol) External tool execution risk
Hub integration Cloud dependency
Drive sync Cloud dependency
Auto-updater Supply chain risk
Pyodide Python execution risk
PDF processing External library risk

Build

# Install dependencies
pnpm install

# Web development
pnpm dev

# Desktop (Tauri) development
pnpm tauri dev

# Run tests
pnpm test

# Production build
pnpm build          # Web
pnpm tauri build    # Desktop

Status

Work in progress. Core functionality works, but still undergoing security review.

Original Project

License

This project is licensed under GPL-3.0, same as the original RisuAI.

See LICENSE for details.

Top categories

Loading Svelte Themes