← All components
In the works

Core

The Flutter-client and Dart-server foundation every Tom application is built on, over a shared kernel and the tom_basics floor. It guarantees a resource-driven UI, i18n, authentication, four-state authorization, and uniform deployment by construction.

9 modules
499.6k loc · 3.1k tests · 259.3k test LOC
0 released 0 published 8 in works 1 not started

From the component readme.md file:

Tom Core — the foundation layer of the Tom Framework

> Attribution. The Tom Framework is developed by Peter Nicolai Alexis Kyaw. > These packages are proprietary and internal (publish_to: none).

Tom Core is the set of packages every Tom application is built on: a platform-neutral kernel (dependency injection, observable state, security, resources, logging) and the runtimes layered on top of it — a server stack, two Flutter layers, a DartScript bridge tool, a VS Code bridge server, and a set of agentic building blocks.

This repository (al-the-bear/tom_core) holds the whole layer. This document is the map; each package has its own README.md and doc/ folder for the detail. Nothing about a package's API is re-documented here — one phrase of "what it is" plus the link is the contract.

> New here? The richest on-ramp is the upcoming tom_core_samples/ learning > path (see Sample learning path). Until it lands, read > tom_core_kernel (the foundation) and run one of > the two live demo apps — tom_flutter_form_test > (the form stack) or tom_flutter_ui_test > (the full widget set).

---

What you can do with Tom Core

  • Build a backend service — HTTP host, an endpoint pipeline, a type-safe

relational persistence layer with datasources and migrations, configuration, caching, and authentication/authorization — from one dependency (tom_core_server). - Build a Flutter app from authorization-aware, observable, resource-bound widgets — a Material/Cupertino widget set, a declarative form system, and a fluent layout engine (tom_flutter_ui). - Share one model of state, security, and resources across server and client — the platform-neutral tom_core_kernel is the single source of those cross-cutting concerns. - Script the framework — expose the kernel, server, build, and document toolkits to sandboxed DartScript through tom_core_d4rt. - Assemble agent runtimes from generic, domain-free, dart:io-free building blocks (tom_core_agentic).

---

How the layer fits together

Everything roots at the kernel. The two runtimes (server and Flutter) re-export it, so an app depends on one of them and gets the kernel API for free. The UI library is the rich widget set that the Flutter runtime's thin integration layer complements. The scripting and bridge tools wrap the runtimes for DartScript and the VS Code extension. The agentic blocks sit beside the kernel, depending only on tom_basics.

                    tom_core_kernel            (platform-neutral foundation)
                   /       |        \
       tom_core_server  tom_core_flutter  tom_flutter_ui
         (backend)      (Flutter glue)    (widget library)
              |
       tom_core_d4rt  ── tom_core_bridge        (DartScript / VS Code bridge)

       tom_core_agentic  (agent building blocks; depends only on tom_basics)

---

The packages

Every package below has a README.md (linked) and a doc/ folder. Base path for all entries is this repository root.

Foundation

PackageWhat it is
tom_core_kernel The platform-neutral foundation: dependency injection (bean locator), observable state, security and four-state authorization, resource resolution, logging, JSON, and runtime utilities. Reflection-aware; no UI or server-runtime dependency, so any Dart target can consume it.

Runtimes

PackageWhat it is
tom_core_server The server layer: an HTTP host, an endpoint pipeline, a relational persistence layer with a type-safe query model, datasources and migrations, server configuration, caching, and authentication/authorization. Re-exports the kernel through its own barrel.
tom_core_flutter The Flutter integration layer: re-exports the kernel and adds Flutter widgets that bind to observable kernel state, form primitives, typed UI properties, client-side platform detection, and client auth helpers.

UI

PackageWhat it is
tom_flutter_ui The Flutter widget library: a Material/Cupertino-aware widget set, a declarative form system, a behavioural action system, and a fluent row-based layout engine (Advanced Container Layout). Every widget understands the kernel's tomId / tomGroup visibility, the four-state TomAuthState model, and resource-driven styling.

Scripting & bridges

PackageWhat it isBinary
tom_core_d4rt The D4rt scripting tool with the full Tom Framework bridge set — an interactive REPL and headless script runner that exposes the kernel, server, build, distributed, and document toolkits to sandboxed DartScript. d4rt
tom_core_bridge The VS Code bridge server extended with the complete Tom D4rt bridge set — tom_bs (DCli + VS Code API bridges) plus everything tom_core_d4rt registers. core_bs

Agentic

PackageWhat it is
tom_core_agentic Generic, domain-free, dart:io -free building blocks for agentic systems — placeholder resolution, path-scoped sandboxing, content-hash conventions, config read/write. Depends only on tom_basics ; reusable across the brain, the assistant, and any agent runtime.

Demo & test apps

These are runnable harnesses (publish_to: none), not libraries — they exercise the layer end-to-end against the live Flutter engine.

AppWhat it is
tom_flutter_form_test A two-tab Flutter showcase of the form framework ( tom_flutter_ui forms/fields over the kernel's resources, security, and reflection). See its demo catalogue .
tom_flutter_ui_test A four-tab Flutter demo / smoke-test of the whole tom_flutter_ui library — the ACL layout engine, the widget set, the form framework, and the resource/authorization machinery. See its demo catalogue .

---

Sample learning path

A dedicated tom_core_samples/ folder is forthcoming (Tom Core quest, README & samples plan, Phase B). It will build one todo-management application across six subprojects, ordered as a learning path from a backend up through responsive UI. Until those land, the two demo apps above are the live, runnable reference.

OrderSample (planned, tom_core_samples/…)Introduces
1 core_server_sample The server stack against MySQL-in-Docker — endpoints, persistence, auth, healthcheck.
2 core_client_sample A Flutter todo app on tom_core_flutter + tom_flutter_ui , talking to the server, with ACL-driven field states.
3 core_flutter_ui_showcase Every tom_flutter_ui widget group, each shown with its instantiation code.
4 core_flutter_form_showcase The forms framework in depth — field types, validation, layout, theming, master-detail, lists.
5 core_flutter_acl_sample The Advanced Container Layout engine — sizing, growth, alignment, nesting, borders, variants, and the four authorization states.
6 core_flutter_acl_responsive Responsive UIs on the ACL engine — breakpoints, family-swap, adaptive layouts across phone/tablet/desktop.

---

Documentation index

Each package keeps its user documentation in its own doc/ folder; the READMEs above link the relevant files. The most common entry points:

TopicDocument
Kernel module reference tom_core_kernel/doc/ (per-module folders)
Server modules (persistence, endpoints, auth, …) tom_core_server/doc/
Flutter integration modules tom_core_flutter/doc/
Widget library — ACL engine tom_flutter_ui/doc/advanced_container_layout.md
Widget library — forms & authorizers tom_flutter_ui/doc/forms.md · form_authorizers.md
DartScript bridge groups tom_core_d4rt/doc/ (one .md per bridged package)
VS Code bridge operations tom_core_bridge/doc/operations.md
Agentic building blocks tom_core_agentic/doc/
Form demo catalogue tom_flutter_form_test/doc/demo_catalogue.md
UI demo catalogue tom_flutter_ui_test/doc/demo_catalogue.md

---

Repository layout

tom_core_kernel/       platform-neutral foundation (DI, state, security, …)   (foundation)
tom_core_server/       backend runtime: HTTP, persistence, auth               (runtime)
tom_core_flutter/      Flutter integration layer (re-exports the kernel)      (runtime)
tom_flutter_ui/        Flutter widget library: widgets, forms, ACL engine     (UI)
tom_core_d4rt/         DartScript REPL + runner with full Tom bridges (d4rt)   (scripting)
tom_core_bridge/       VS Code bridge server with the Tom bridge set (core_bs) (bridge)
tom_core_agentic/      domain-free agentic building blocks (dart:io-free)      (agentic)
tom_flutter_form_test/ runnable demo: the form framework                      (demo app)
tom_flutter_ui_test/   runnable demo/smoke-test: the whole widget library     (demo app)

Dependency direction, simplified: everything roots at tom_core_kernel; tom_core_server and tom_core_flutter build on and re-export it; tom_flutter_ui builds on the kernel and is exercised by the two demo apps; tom_core_d4rt bridges the runtimes into DartScript and tom_core_bridge serves those bridges to the VS Code extension; tom_core_agentic depends only on tom_basics.

License

Proprietary and confidential. Each package carries the same proprietary LICENSE; see any package folder for the full text.

tom_core_agentic In the works

tom_core_agentic · v1.8.0
4.3k loc · 435 tests · 4.5k test LOC
Domain-free, `dart:io`-free agentic plumbing on the lightweight tier (depends only on `tom_basics`): cooperative cancellation, a use-after-close guard, category logging, async shutdown coordination, and typed YAML config read/write. Reused across Tom Brain, the assistant, and future agent runtimes.
In the works

tom_core_agentic

tom_core_agentic · v1.8.0

From the module readme.md file:

LOC
4.3k
Tests
435
Test LOC
4.5k
5 docs · 1 API

tom_core_bridge Not started

tom_core_bridge · v1.0.0
11 loc · 0 tests · 0 test LOC
An alternative VS Code bridge server binary (`core_bs`): the base `tom_bs` from `tom_vscode_bridge` plus the complete Tom-framework D4rt bridge set registered by `tom_core_d4rt`, so editor scripts can drive a running app's core, server, and build APIs.
Not started

tom_core_bridge

tom_core_bridge · v1.0.0

From the module readme.md file:

LOC
11
Tests
0
Test LOC
0
4 docs · 0 API

tom_core_d4rt In the works

tom_core_d4rt · v1.0.0
51.3k loc · 33 tests · 548 test LOC
The D4rt scripting tool with full Tom-framework bridge support: a REPL (`d4rt`) and headless script runner that registers generated bridges for a dozen Tom packages — kernel, server, build, distributed, and document toolkits — so sandboxed DartScript can call straight into the framework.
In the works

tom_core_d4rt

tom_core_d4rt · v1.0.0

From the module readme.md file:

LOC
51.3k
Tests
33
Test LOC
548
17 docs · 0 API

tom_core_flutter In the works

tom_core_flutter · v1.1.0
558 loc · 47 tests · 383 test LOC
The client half of a Tom application: resource-driven UI, forms, the observing/runtime layer, and client-side security, all built on tom_core_kernel.
In the works

tom_core_flutter

tom_core_flutter · v1.1.0

From the module readme.md file:

LOC
558
Tests
47
Test LOC
383
9 docs · 1 API

tom_core_kernel In the works

tom_core_kernel · v1.1.0
6.5k loc · 1.5k tests · 236.4k test LOC
The base both Tom app halves rest on: dependency injection / bean locator, the observable/reactive system, security, logging, isolate pooling, settings, JSON, timezone handling, and the reflection glue for runtime auto-assembly.
In the works

tom_core_kernel

tom_core_kernel · v1.1.0

From the module readme.md file:

LOC
6.5k
Tests
1.5k
Test LOC
236.4k
19 docs · 1 API

tom_core_server In the works

tom_core_server · v1.1.0
7.0k loc · 216 tests · 1.6k test LOC
The server half of a Tom application: authentication, authorization, data sources, database migration, endpoints, transactions, object persistence, caching, and health checks over Shelf.
In the works

tom_core_server

tom_core_server · v1.1.0

From the module readme.md file:

LOC
7.0k
Tests
216
Test LOC
1.6k
15 docs · 1 API

tom_flutter_form_test In the works

tom_flutter_form_test · v1.0.0+1
342.0k loc · 363 tests · 8.2k test LOC
A demonstration and test application exercising the Tom form system and its resource-driven behaviour.
In the works

tom_flutter_form_test

tom_flutter_form_test · v1.0.0+1

From the module readme.md file:

LOC
342.0k
Tests
363
Test LOC
8.2k
3 docs · 0 API

tom_flutter_ui In the works

tom_flutter_ui · v1.0.0
53.7k loc · 521 tests · 7.1k test LOC
The widgets, form authorizers, theming, groups, and actions that make a Tom UI configurable from resources rather than hard-coded, so the same app adapts without code changes.
In the works

tom_flutter_ui

tom_flutter_ui · v1.0.0

From the module readme.md file:

LOC
53.7k
Tests
521
Test LOC
7.1k
16 docs · 1 API

tom_flutter_ui_test In the works

tom_flutter_ui_test · v1.0.0+1
34.3k loc · 7 tests · 390 test LOC
A demonstration and test application exercising the tom_flutter_ui widget library and its resource parameters.
In the works

tom_flutter_ui_test

tom_flutter_ui_test · v1.0.0+1

From the module readme.md file:

LOC
34.3k
Tests
7
Test LOC
390
6 docs · 0 API