Skip to content

Tcode-Motion/NeoSketch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

12 Commits
ย 
ย 
ย 
ย 

Repository files navigation

NeoSketch Banner

โ—ˆ NeoSketch

Offline AI Art Studio. No Cloud. No Compromise.


Version Platform Flutter Rust Python ONNX License Status


NeoSketch is a lightweight, fully offline AI-powered artistic photo editor built for Android and Windows.
Flutter frontend. Rust engine. Python AI tooling. Zero cloud dependency.
Professional artistic transformations โ€” running entirely on your device.



โ—ˆ Why NeoSketch?

Most AI photo editors push everything to the cloud โ€” your images, your data, your privacy. NeoSketch doesn't.

Principle What it means
๐Ÿ”’ Offline-First All AI processing runs on-device. No internet required
๐Ÿง  Privacy-Focused Your images never leave your phone or PC
โšก Rust-Powered Engine High-performance backend built in Rust for raw speed
๐ŸŽจ Hyper-Realistic Art Real artistic rendering, not cheap Instagram filters
๐Ÿชถ Lightweight Optimized for low RAM, small APK, fast launch
๐Ÿ–ฅ๏ธ Cross-Platform Android + Windows from a single codebase
๐Ÿ”ง Modular Architecture Every component is pluggable and extendable
๐Ÿค– AI-Enhanced ONNX + TFLite models for real on-device AI inference


โ—ˆ Features

๐Ÿ–ผ๏ธ Core Features

  • Offline AI artistic photo editor
  • Real-time preview rendering
  • GPU-aware optimization
  • Project autosave system
  • Preset management system
  • Unlimited undo / redo
  • Layer editing support
  • Drag-and-drop image import
  • Batch export
  • Keyboard shortcuts (Windows)
  • Touch gesture support (Android)
  • Responsive adaptive UI

๐ŸŽจ Artistic Styles

Pencil Sketch    โ”‚  Charcoal Sketch  โ”‚  Ink Art
Watercolor       โ”‚  Oil Painting     โ”‚  Anime
Manga            โ”‚  Comic            โ”‚  Cyberpunk
Pixel Art        โ”‚  Pop Art          โ”‚  Vintage
Clay Style       โ”‚  Neon Art         โ”‚  AI Stylization
+ more advanced styles in roadmap

๐Ÿค– AI Features

  • AI Upscale & Super Resolution
  • AI Detail Enhancement
  • AI Portrait Enhancement
  • Background Removal
  • Object Removal
  • AI Colorization
  • AI Denoising
  • AI Style Transfer
  • Uncrop / Outpainting
  • AI Texture Enhancement

๐Ÿ› ๏ธ Editing Tools

Crop  โ”‚  Resize  โ”‚  Rotate  โ”‚  Flip  โ”‚  Perspective Correction
Brightness  โ”‚  Contrast  โ”‚  Saturation  โ”‚  Blur  โ”‚  Sharpen
Brush Controls  โ”‚  Gradient Controls  โ”‚  Texture Overlays


โ—ˆ Tech Stack

Architecture Overview

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Flutter UI (Dart)                     โ”‚
โ”‚              Riverpod State โ”‚ GoRouter Navigation        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚ flutter_rust_bridge (FFI)
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   Rust Engine                            โ”‚
โ”‚         rayon โ”‚ OpenCV-Rust โ”‚ image-rs โ”‚ FFI             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚ Model Inference
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             ONNX Runtime โ”‚ TensorFlow Lite               โ”‚
โ”‚                  On-Device AI Models                     โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚ Refined Output
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚             Rust Post-Processing & Refinement            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                     โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚               Flutter Preview & Export                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Stack Breakdown

Layer Technology
Frontend Flutter, Dart, Riverpod, GoRouter
Backend Engine Rust, flutter_rust_bridge, FFI, rayon, OpenCV-Rust, image-rs
AI Runtime ONNX Runtime, TensorFlow Lite
Python AI Tooling PyTorch, OpenCV, Diffusers, Pillow, NumPy, TensorFlow, Scikit-image
Storage Isar Database, Local project storage, Cached thumbnails, Model storage


โ—ˆ Project Structure

NeoSketch/
โ”‚
โ”œโ”€โ”€ lib/                        # Flutter frontend
โ”‚   โ”œโ”€โ”€ core/                   # App config, themes, constants
โ”‚   โ”œโ”€โ”€ features/               # Feature modules (editor, ai_lab, export)
โ”‚   โ”œโ”€โ”€ shared/                 # Shared widgets and utilities
โ”‚   โ””โ”€โ”€ main.dart
โ”‚
โ”œโ”€โ”€ rust/                       # Rust engine
โ”‚   โ”œโ”€โ”€ src/
โ”‚   โ”‚   โ”œโ”€โ”€ engine/             # Core rendering engine
โ”‚   โ”‚   โ”œโ”€โ”€ filters/            # Artistic filter implementations
โ”‚   โ”‚   โ”œโ”€โ”€ ai/                 # ONNX/TFLite inference bridge
โ”‚   โ”‚   โ””โ”€โ”€ lib.rs
โ”‚   โ””โ”€โ”€ Cargo.toml
โ”‚
โ”œโ”€โ”€ python/                     # Python AI tooling
โ”‚   โ”œโ”€โ”€ model_export/           # Export PyTorch โ†’ ONNX/TFLite
โ”‚   โ”œโ”€โ”€ training/               # Model training scripts
โ”‚   โ”œโ”€โ”€ preprocessing/          # Dataset prep utilities
โ”‚   โ””โ”€โ”€ requirements.txt
โ”‚
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ models/                 # Bundled ONNX / TFLite models
โ”‚   โ”œโ”€โ”€ presets/                # Default artistic presets
โ”‚   โ””โ”€โ”€ icons/
โ”‚
โ””โ”€โ”€ shared/                     # Shared utilities and configs


โ—ˆ Performance Goals

Target Goal
UI Frame Rate 60 FPS stable
RAM Usage Low, optimized per device class
Rendering Fully async, non-blocking
GPU GPU-aware optimization where available
Processing 100% offline
APK Size Lightweight, minimal bloat
Rendering Threads Multithreaded via Rust rayon
Model Loading Efficient cached inference


โ—ˆ Screenshots

Screenshots will be added after first stable build

Screen Preview
Home Dashboard [placeholder]
Editor View [placeholder]
AI Lab [placeholder]
Sketch Mode [placeholder]
Watercolor Mode [placeholder]
Anime Mode [placeholder]
Export Screen [placeholder]
Desktop Workspace [placeholder]


โ—ˆ Installation & Setup

Prerequisites

  • Flutter SDK >=3.0.0
  • Rust >=1.75 (stable)
  • Python >=3.10
  • Android SDK / NDK (for Android build)
  • ONNX Runtime

1. Clone the Repo

git clone https://github.com/Tcode-Motion/NeoSketch.git
cd NeoSketch

2. Flutter Setup

flutter pub get

3. Rust Engine Setup

cd rust
cargo build --release
cd ..

4. Python AI Tooling Setup

cd python
pip install -r requirements.txt
cd ..

5. ONNX Runtime Setup

# Download and place models in assets/models/
# See python/model_export/ for export scripts
python python/model_export/export_all.py

6. Run โ€” Android

flutter run -d android

7. Run โ€” Windows

flutter run -d windows


โ—ˆ Roadmap

Phase Feature Status
v1.0 Core editor + 10 artistic styles ๐Ÿ”จ In Progress
v1.1 AI Upscale + Background Removal ๐Ÿ“‹ Planned
v1.2 Batch export + Preset system ๐Ÿ“‹ Planned
v2.0 AI Video Filters ๐Ÿ”ฎ Future
v2.0 Live Camera Effects ๐Ÿ”ฎ Future
v2.1 Plugin Marketplace ๐Ÿ”ฎ Future
v2.2 Community Presets ๐Ÿ”ฎ Future
v2.3 Custom AI Model Downloads ๐Ÿ”ฎ Future
v3.0 macOS Support ๐Ÿ”ฎ Future
v3.0 Linux Support ๐Ÿ”ฎ Future


โ—ˆ Contributing

Pull requests are welcome. If you want to contribute:

  • ๐Ÿงฉ Modular contributions โ€” each filter, AI feature, and UI screen is isolated
  • ๐Ÿค– AI model optimization โ€” help reduce model size and improve inference speed
  • ๐ŸŽจ UI improvements โ€” new artistic styles, better previews, new presets
  • โšก Performance โ€” Rust engine optimizations, async improvements, GPU utilization
  • ๐Ÿ› Bug fixes โ€” open an issue first, then PR
# Fork โ†’ Clone โ†’ Branch โ†’ PR
git checkout -b feature/your-feature-name

Please keep PRs focused. One feature per PR.



โ—ˆ Design Philosophy

NeoSketch is built around a few non-negotiable principles:

  • Real artistic rendering โ€” no fake Instagram-style filters. Every style is designed to look like actual art
  • Human-like artistic quality โ€” the goal is output that looks hand-made, not AI-generated
  • Offline privacy-first โ€” your images, your device, your data
  • Modular architecture โ€” every feature is independently swappable
  • Native performance โ€” Rust where it matters, Flutter where it shines
  • Clean scalable codebase โ€” built to grow without breaking


โ—ˆ License

MIT License โ€” see LICENSE for full text


โ—ˆ Credits

Built on the shoulders of giants:

  • Flutter โ€” cross-platform UI framework
  • Rust โ€” systems-level performance engine
  • ONNX Runtime โ€” on-device AI inference
  • TensorFlow Lite โ€” mobile AI runtime
  • OpenCV โ€” computer vision backbone
  • PyTorch โ€” model training
  • Diffusers โ€” diffusion model tooling
  • The entire open-source AI community


NeoSketch aims to become a professional offline AI creative studio โ€”
combining the best ideas from Procreate, Photoshop, Prisma, Lightroom,
and Stable Diffusion workflows into a single lightweight cross-platform experience.


Built solo. Shipped with intention.

Tcode-Motion


โ—ˆ Dark by default. Offline by design. Powerful by choice.

About

Offline AI-powered artistic photo editor for Android & Windows. Flutter + Rust + ONNX. No cloud. No compromise.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors