Skip to content

Latest commit

Β 

History

35 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Project Pol v3.0 - FFI Architecture

A Single-Process Decentralized Package Manager Bridge for Flutter

Pol converts pub.dev dependencies to Git-based dependencies - all in one desktop app with native performance.

Architecture

+-------------------------------------------+
|            Flutter Desktop App            |
|                                           |
|  +---------------+    +---------------+   |
|  | UI (Flutter)  |<-->| Business Logic|   |
|  +---------------+    |   (Dart)      |   |
|                       +-------+-------+   |
|                               |           |
|                           FFI |           |
|                               v           |
|                       +---------------+   |
|                       | dart_engine   |   |
|                       |   (Rust DLL)  |   |
|                       +---------------+   |
+-------------------------------------------+
Layer Technology Purpose
UI Flutter Windows desktop interface
Logic Dart YAML parsing, GitHub API, orchestration
Native Rust (DLL) Fast Git operations via FFI

Quick Start

1. Build Native Library

.\scripts\build.ps1

This will:

  • Build the Rust DLL
  • Copy it to the Flutter project

2. Run the App

cd frontend
flutter run -d windows

Project Structure

pol/
β”œβ”€β”€ engines/
β”‚   └── dart_engine/          # Rust FFI library
β”‚       β”œβ”€β”€ Cargo.toml
β”‚       └── src/lib.rs        # C-compatible exports
β”‚
β”œβ”€β”€ frontend/                  # Flutter Desktop App
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   β”œβ”€β”€ core/
β”‚   β”‚   β”‚   β”œβ”€β”€ ffi/          # Dart FFI bindings
β”‚   β”‚   β”‚   β”œβ”€β”€ services/     # YAML, GitHub, Converter
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   └── features/
β”‚   β”‚       β”œβ”€β”€ dependency_list/
β”‚   β”‚       β”œβ”€β”€ converter/
β”‚   β”‚       └── logs/
β”‚   └── windows/
β”‚       └── runner/
β”‚           └── dart_engine.dll  # Native library
β”‚
└── scripts/
    └── build.ps1             # Build script

Features

  • Single Process: No separate backend to run
  • Native Performance: Git operations via Rust FFI
  • Auto Resolution: Finds GitHub repos for pub.dev packages
  • Monorepo Support: Correctly handles multi-package repos
  • Backup: Creates backup before modifying pubspec.yaml

Prerequisites

GitHub Token (Optional)

For higher API rate limits, set your token in the app settings.

License

MIT License

About

πŸŒ‰ Project Pol v3.0: High-performance single-process decentralized package manager bridge converting pub.dev packages to Git with native FFI.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages