State · Injection · Navigation · Translation
Extreme-performance, Clean Architecture micro-framework for Flutter — battle-tested on real-time audio DAWs, 3D/VR engines, 256 Hz EEG streams, and on-device LLM inference.
SINT focuses strictly on four foundational pillars — zero HTTP clients, validators, or unrelated bloat:
| Pillar | Core APIs | Guide |
|---|---|---|
| S — State | SintController, Obx, ObxSelect, .obs, Sint.computed, Sint.batch, Sint.frameBatch, FrameThrottledRx, RxFuture, SintStatus, SintView |
State Docs |
| I — Injection | Bind.contract, Bind.putContract, Sint.put, Sint.lazyPut, Sint.find, Sint.findAll, SintScope, SintService |
Injection Docs |
| N — Navigation | SintApp, SintPage, SintRoute, SintRouterOutlet, globalMiddlewares, Sint.toNamed, Sint.maybePop, Sint.canPop, Sint.pop, pathParams, queryParams |
Navigation Docs |
| T — Translation | .tr, .trParams, Translations, Sint.updateLocale, Sint.registerLazyTranslations, translateEndpoints |
Translation Docs |
Battle-Tested on Extreme-Performance Platforms (Open Neom)
Most Flutter state/DI libraries are designed around CRUD forms. SINT is engineered and proven in production across Open Neom's 70+ modular Clean Architecture packages, powering applications that continuously push Flutter's frame budget to the limit:
| Production Workload | Open Neom Platforms | How SINT Keeps 60–120 FPS |
|---|---|---|
| Audio DAW, VST & Real-Time DSP |
neom_daw, neom_vst, neom_generator, Cyberneom
|
Sint.frameBatch & FrameThrottledRx coalesce high-rate playheads, VU meters, and synth automation into 1 UI flush per VSync with zero heap allocations. |
| 3D / VR & Flutter GPU Scenes |
vrlizate, vrlizate_scene, neom_vr
|
Fine-grained Obx / ObxSelect isolates HUD overlays from high-frequency camera and controller poses while SintScope manages multi-viewport isolation. |
| Real-Time EEG & Biofeedback |
neom_eeg, cyberneom
|
256 Hz multi-channel biosignal bursts coalesce cleanly to display refresh (8× fewer UI dispatches) without allocating StreamControllers or Timers. |
| On-Device Edge AI & LLM Streaming |
Itzli, saia_edge, saia_gguf
|
High-throughput token streams (50–100+ tok/s) update chat buffers cleanly via Sint.frameBatch while Bind.contract swaps local vs. cloud inference backends cleanly. |
| Large Modular Ecosystems & Web/Wasm |
neom_craft_workspace, EMXI, Gigmeout
|
Single-element MultiBinder (Type-keyed DI (100% Web/Wasm minification-safe), and Multi-Level Prefix Trie routing. |
- High-Frequency Real-Time UI Primitives (
Sint.frameBatch,FrameThrottledRx,ObxSelect):Sint.frameBatch(() { ... })&Sint.flushFrameBatch(): Coalesces rapid multi-tick mutations (256 Hz sensors, DAW playheads, VR poses, LLM token streams) across separate async callbacks into at most one VSync frame flush with zero per-tick allocations (8× fewer UI dispatches and 3.56× faster than unbatchedValueNotifierin our 60-frame telemetry benchmark).FrameThrottledRx<T>(rx.throttledToFrame()&controller.frameThrottled(rx)): Zero-Stream, zero-Timer VSync-throttled derived signal that skips notifications when unobserved or when sub-frame jitter returns to the last emitted value (0 → 1 → 0emits 0 rebuilds), with automaticonClose()disposal onSintController.ObxSelect<T>: Inline fine-grained selector widget (ObxSelect(selector: ..., builder: ..., equals: ...)) that rebuilds only when the projected slice changes, eliminating boilerplateComputedfields for complexRx<Model>objects.
- Automated GetX → SINT Migration & 10-Rule Architectural Linter (
dart run sint:migrate&dart run sint:audit):- Built-in pure-Dart CLIs (
bin/migrate.dart,bin/audit.dart, zero extra dependencies) with--dry-run,--apply,--strict,--fail-on-warnings,--rule=,--jsonCI reporting, and inline// sint-ignore: <code>suppressions. - Rewrites
pubspec.yaml(get:→sint: ^2.3.0) and Dart imports/symbols (Get*→Sint*,getPages:→sintPages:) safely outside comments and string literals, while auditing 10 real-world architectural rules (sint_no_get_connect,bind_put_closure_trap,sint_back_inside_modal,avoid_sint_put_in_build,avoid_direct_navigator,prefer_sint_find_or_null,prefer_sint_find_or_put,prefer_contract_binding,prefer_sint_batch, and--strictdeprecated_flutter_ui_import).
- Built-in pure-Dart CLIs (
- Built-in Runtime Diagnostics,
onRebuildHook & VM Service Extensions (Sint.diagnostics):- Zero-overhead 4-pillar inspector (
Sint.diagnostics.snapshot(),stateSnapshot(),dependenciesSnapshot(),routesSnapshot(),localizationSnapshot()). - Opt-in live
Obx/ObxSelectrebuild hot-spot profiler (Sint.diagnostics.enableRebuildTracking = true,debugLabel:,rebuildStats()) plusSint.diagnostics.onRebuildfor external watchdogs (e.g.sint_sentinel'sStateWatchdog). - Automatically registers Dart VM Service Extensions (
ext.sint.getSnapshot,ext.sint.getDependencies,ext.sint.getRoutes,ext.sint.getLocalization,ext.sint.getRebuildStats) in debug/profile builds (!kReleaseMode).
- Zero-overhead 4-pillar inspector (
- Ecosystem Ergonomics Proven Across 70+ Open Neom Packages (
Sint.findOrPut,Sint.argumentsAs<T>(), Headless-Safe Route Getters):Sint.findOrPut<T>(() => ...): Atomic single-lookup find-or-register honoringSintScopeoverrides (eliminatesSint.isRegistered<T>() ? Sint.find<T>() : Sint.put(T())boilerplate).Sint.argumentsAs<T>()& Headless-Safe Route Getters: Type-safeargumentsAs<T>()(never throwsTypeError) andSintRoot-guardedarguments,parameters,pathParams,queryParams,routeParam,pathParam,queryParam, andqueryParamOrDefaultso controllers work cleanly in unit tests withouttry/catchwrappers;Sint.findnow throws a typedStateError(only_throw_errors).
-
2.2.2: Flutter 3.50 / Dart 3.14 clean static analysis (160/160pub points readiness), decoupled 49 legacy SDK material/cupertino imports, leak-freeSint.snackbar(),consttransitions, standaloneSintAppBarparity, andBind.putdynamic-type hardening. -
2.2.1: FullNavigator-free APIs (Sint.maybePop,Sint.canPop, safeSint.pop), automaticMaterialApp/CupertinoAppwidget-test fallback viaSint.resolveNavigator, and synchronous snackbar queue cancellation. -
2.2.0: Single-elementMultiBinder($O(1)$ widget depth), glitch-free & lazyComputed, single-slotObx, reactive.trwith zero-reassembleSint.updateLocale, unified Navigator 2.0SintMiddlewareguards,Sint.putContractAsync,package:sint/rx.dart, andllms.txt. -
2.1.0: Contract-first DI (Bind.contract/Bind.putContract/aliases:),SintScope, zero-Stream synchronous workers,ValueListenableinterop,RxFuture<T>+ sealedSintStatus<T>,globalMiddlewares, typedSintRoute<TArgs, TResult>, and$O(1)$ pre-resolved locale cache. -
2.0.0: Standalone design systems (SintAppformaterial_ui/cupertino_ui), incremental$O(1)$ Obx+Sint.batch+Sint.computed, Multi-Level Prefix Trie router (97.8× speedup), andSintRouterOutlet.
dependencies:
sint: ^2.3.0import 'package:flutter/widgets.dart';
import 'package:material_ui/material_ui.dart';
import 'package:sint/sint.dart';
class TelemetryController extends SintController {
final sampleHz = 0.obs;
final channel = 'Fp1'.obs;
// VSync-throttled derived signal (auto-disposed on route close)
late final uiSample = frameThrottled(sampleHz);
late final label = computed(() => '${channel.value}: ${uiSample.value} Hz');
/// Called at 256 Hz from a native DSP/EEG/WebSocket callback:
void onHardwarePacket(int hz) => Sint.frameBatch(() {
sampleHz.value = hz; // Coalesced to 1 UI flush per VSync frame!
});
}
void main() => runApp(
SintApp(
materialTheme: ThemeData(),
initialRoute: '/',
sintPages: [
SintPage(
name: '/',
binds: [Bind.put(TelemetryController())],
page: () {
final c = Sint.find<TelemetryController>();
return Scaffold(
body: Center(
child: Obx(
() => Text(c.label.value),
debugLabel: 'telemetry-readout',
),
),
floatingActionButton: FloatingActionButton(
onPressed: () => c.onHardwarePacket(c.sampleHz.peek + 1),
child: const Text('+'),
),
);
},
),
],
),
);| Scenario | Recommended SINT 2.3 Idiom | Why |
|---|---|---|
| Dismiss dialog / bottom sheet | Sint.pop(result) |
Pops the active overlay without accidentally popping the underlying page route. |
| Pop a page route |
Sint.back(result: value) or Sint.maybePop(value)
|
Honors PopScope and safely handles root routes. |
| Bind interface + controller | Bind.contract<AuthService, AuthController>(() => AuthController(), fenix: true) |
Single shared factory; eliminates manual 2-line closure bridges. |
| Multi-field synchronous update | Sint.batch(() { a.value = 1; b.value = 2; }) |
Recomputes Computed and rebuilds Obx once instead of |
| High-frequency stream (60–1000 Hz) |
Sint.frameBatch(...) or controller.frameThrottled(rx)
|
Caps UI notifications at display VSync with zero Stream/Timer allocations. |
Slice of a complex Rx<Model> |
ObxSelect(selector: () => m.value.field, builder: ...) |
Rebuilds only when the selected field changes. |
GetX was criticized for bundling unrelated utilities (GetConnect HTTP/sockets, string validators), using Type.toString() keys that broke under Web/Wasm minification, leaking conditional Obx listeners, and lacking batching or computed signals. SINT replaces those internals completely with:
-
Strict 4-Pillar Scope (
S · I · N · T): Clean Architecture boundaries (domain,engine,router,ui) with zero unrelated bloat. -
Reified
Type-Keyed DI &$O(M)$ Route Teardown: Safe under Web/Wasm minification; route-owned controllers,computed, andframeThrottledsignals auto-dispose deterministically on route pop. -
Zero-Stream Synchronous & VSync Signals:
StreamControlleris allocated lazily only if.stream/.listenis accessed;Obx,ObxSelect,Computed,Sint.batch,Sint.frameBatch, andeverrun on synchronous pointer lists. -
Why Context-Free APIs (
Sint.toNamed,Sint.find,.tr) Are Safe by Design: Navigation, overlays, and localization belong to the root application host, not leaf widgets. ThreadingBuildContextinto controllers or async callbacks couples domain logic to the UI tree and triggersuse_build_context_synchronouslybugs afterawaitgaps.
Building an equivalent 4-pillar feature (Reactive State + Derived Value + Scoped DI + Parameterized Route + i18n + Snackbar):
| Dimension | SINT 2.3 |
BLoC Stack (bloc + get_it + go_router + intl) |
Riverpod Stack (riverpod + go_router + intl) |
Provider Stack (provider + go_router + intl) |
Legacy GetX |
|---|---|---|---|---|---|
| Packages to Maintain & Audit | 1 (sint) |
5+ external packages | 4+ packages + build_runner
|
4+ external packages | 1 (bloated with HTTP/utils) |
| Files Touched per Feature | 1–2 files | 5–6 files | 4–5 files (.g.dart, .arb) |
4 files | 1–2 files |
Codegen (build_runner) |
0 generated files | Optional (freezed/injectable) + ARB |
Required (.g.dart + ARB) |
ARB codegen | 0 generated files |
| Feature Boilerplate (LoC) | ~35 LoC | ~165 LoC (4.7× more) | ~115 LoC (3.3× more) | ~105 LoC (3.0× more) | ~40 LoC |
| High-Frequency Frame Coalescing | Native (Sint.frameBatch, FrameThrottledRx, ObxSelect) |
Manual RxDart / debounce | Manual select / stream throttle |
Manual throttle + Selector
|
None |
| DI ↔ Router Lifecycle (I ↔ N) | Native ( |
Manual BlocProvider / GetIt
|
Coupled to widget unmount | Coupled to BuildContext
|
|
| Route Matching (N) | Multi-Level Prefix Trie ($O(\text{depth})$) | External (go_router) |
External (go_router) |
External (go_router) |
Linear / 1st-segment regex |
| Flutter 3.47+ Standalone UI | Native (SintApp) |
Manual host setup | Manual host setup | Manual host setup | Unsupported |
Verified Benchmarks (four_pillars_benchmark_test.dart · high_frequency_benchmark_test.dart)
| Workload | SINT 2.3 Median | Baseline / Alternative Median | Result |
|---|---|---|---|
| Pillar S (High-Frequency) — 60 Frames × 8 Bursts/Frame (256–480 Hz) × 50 Subscribers |
20.6 µs (Sint.frameBatch, 3,000 dispatches)39.6 µs (FrameThrottledRx, 3,000 dispatches) |
73.3 µs (ValueNotifier, 24,000 dispatches)74.8 µs (Unbatched Rx, 24,000 dispatches) |
8× fewer UI dispatches 3.56× faster ( Sint.frameBatch) · 1.85× faster (FrameThrottledRx) |
| Pillar S (Transaction) — 20-Widget Screen, 4-Field Update + Derived Total |
0.23 µs/op (Sint.batch + Computed) |
0.37 µs/op (Unbatched Rx)0.90 µs/op (ChangeNotifier)1.02 µs/op (Immutable State Copy) |
1.6× faster than unbatched Rx4.0× – 4.5× faster than ChangeNotifier / BLoC
|
Pillar N — 1,000 Shared-Prefix Routes (/api/item999/:id) |
2.56 µs/op (Multi-Level Trie) |
250.48 µs/op (1st-segment / linear regex scan) |
97.8× faster ( |
Pillar I — Hot Typed/Tagged Dependency Lookup (Sint.find<T>) |
0.021 µs/op (Reified Type registry) |
— | ~47M lookups/sec (Web/Wasm minification-safe) |
Full S·I·N·T Cycle (Route Match + Sint.find + batch/computed + .trParams) |
3.57 µs/op |
— | ~280,000 complete 4-pillar cycles/sec |
Use the built-in CLI to preview and apply a safe migration + architectural audit:
# 1. Preview every change & architectural finding without touching disk:
dart run sint:migrate . --dry-run
# 2. Apply pubspec.yaml and Dart symbol rewrites (Get* -> Sint*, getPages -> sintPages):
dart run sint:migrate . --apply
# 3. Run read-only architectural linting in CI (10 rules, exits 1 on warnings):
dart run sint:audit . --fail-on-warnings --strict
# 4. Export JSON diagnostics for CI pipelines:
dart run sint:audit . --jsonZero-breaking-change compatibility in
2.x: All@DeprecatedGet*aliases (Get,GetxController,GetMaterialApp,GetPage,GetBuilder,GetRouterOutlet) remain functional throughout2.xso teams can migrate incrementally before3.0.0.
Inspect all four pillars live in debug/profile mode with zero release overhead:
// 1. Profile Obx / ObxSelect rebuild hot-spots:
Sint.diagnostics.enableRebuildTracking = true;
print(Sint.diagnostics.rebuildStats()); // Ordered descending by rebuild count
// 2. Capture a unified JSON-serializable 4-pillar snapshot:
final snapshot = Sint.diagnostics.snapshot();In debug and profile builds (!kReleaseMode), SintRoot automatically registers five Dart VM Service Extensions (ext.sint.getSnapshot, ext.sint.getDependencies, ext.sint.getRoutes, ext.sint.getLocalization, ext.sint.getRebuildStats) for Flutter DevTools and custom telemetry dashboards.
- Pillar Guides: State · Injection · Navigation · Translation
- AI Coding Assistant Reference: llms.txt
- Standalone Material / Cupertino Migration: MIGRATION_DESIGN_SYSTEMS.md
- Benchmarks & Methodology: test/benchmarks/README.md · performance/README.md
- Release History & Roadmap: CHANGELOG.md · ROADMAP.md
SINT is MIT-licensed and maintained by Open Neom, where it powers 70+ Clean Architecture packages across audio DSP, VR/3D, neurotech/EEG, edge AI, and cross-platform Web/Wasm apps (EMXI, Gigmeout, Cyberneom, Itzli).
If SINT saves engineering time for you or your team, consider supporting ongoing development through GitHub Sponsors.
Released under the MIT License. Part of the Open Neom ecosystem.
