This page tracks current implementation status for Moth packages and project builders. It also records the important accepted gaps and next extensions for partial package surfaces so later work does not need to rediscover them from implementation details.
The exact-numeric migration is delivered. Package signatures and constants use exact numeric types, Core Math uses F64 and ordinary numeric defaults use I32/F64. These changes add no HTML-Wasm package capabilities. The rows below distinguish delivered support from accepted extensions.
The compiler progress matrix tracks the core language, compiler, memory work and backend implementation. Backend implementation progress belongs there even when a project builder consumes that backend. This page tracks builder-owned project behaviour and the packages supplied by Core or a project builder.
Accepted deferred surfaces may appear here. Open design questions and outside-scope mechanisms do not. Package acquisition, resolver and package-manager sequencing remains roadmap work rather than something this matrix designs.
docs/docs/packages/** and the relevant project documentation.docs/roadmap/roadmap.md.| Status | Meaning |
|---|---|
| Supported | Implemented for the current supported surface and expected to compile, type check and run through its advertised builder/runtime path. |
| Partial | A useful subset is implemented, but important common operations, package surfaces or builder behaviour remain incomplete. |
| Experimental | Present in the repository, but not part of the Alpha stability promise. |
| Deferred | Accepted or design-compatible follow-up work that is not currently implemented. |
| Coverage | Meaning |
|---|---|
| Broad | Multiple focused cases exist, including success and failure coverage. |
| Targeted | Dedicated coverage exists, but not across all important edges. |
| Thin | Coverage exists indirectly or through only a small number of cases. |
| None | No clear canonical coverage found. |
| Surface | Status | Coverage | Runtime target | Notes |
|---|---|---|---|---|
| Prelude policy | Supported | Targeted prelude symbol registration, namespace-alias plumbing and collision rejection coverage. | Frontend / JS | The builtin prelude policy registers io as a namespace alias to @core/io and leaves compiler-owned Error as a bare language symbol. Prelude is visibility policy, not a package origin or backing. There is no @core/prelude package. |
| Binding-backed platform packages | Partial | Broad provider, registry, asset/glue, exact numeric boundary and target-validation coverage. html_js_reexport_linking executes a pure Moth facade. html_js_binding_runtime_topology combines one/two-hop facades, aliases/namespaces, repeated imports, Call/Invoke, caught failure, full-width U32, executed generics and distinct same-basename providers. Inactive/private and constant-only controls emit no provider assets. Typed JS parser failures retain the authored Moth import span, and privacy/missing-symbol negatives retain their rejection contracts. |
Frontend / JS | Binding-backed packages expose free functions, opaque types and compile-time scalar constants. Annotated JavaScript providers accept I32/I64/U32/U64/F32/F64 numeric slots alongside Bool, String, Char and same-file opaque handles, as pinned by package registration tests. Flat literal U32 constants form the |
| Source-backed package roots | Partial | Targeted AST-backed config loading, known-key and shape enforcement, self-contained config dependency rejection, generic package-root discovery, registered @package.moth facade enforcement, collision detection and public-surface enforcement coverage. |
Frontend / HTML | Source-backed packages and regular modules share module-root and visibility rules. Every registered source root requires a directly contained @package.moth facade, so @mod.moth alone is insufficient. A damaged compiler-shipped set is an infrastructure failure, while a malformed third-party package reports a structure diagnostic naming @package.moth. @config.moth is compiled as one self-contained source before package discovery and rejects every dependency clause before path resolution. |
| Builder-provided source-backed packages | Partial | Targeted builder source-backed registration and HTML/Canvas package coverage. Direct-file and directory consumers share HTML/Canvas package boundaries and reject registered-package source collisions, including case-only names and child scopes. Missing direct-file dependencies retain authored spans, and ordinary/Boracle package failures retain source context. No-dependency direct-file consumers skip package bodies but validate namespaces. Template file values resolve the fixed Core helper prelude. Nested and flat registered-package graphs exercise the real writer and Node with distinct logical JS paths, exact provider bytes, runtime values and stable import/wrapper order across repeated and reversed creation/registration. Multi-component package paths such as @builder/game/core resolve by whole components through a real build. Registration rejects overlapping source paths, and an entry-root folder at the exact package path collides while ancestor folders stay allowed. |
Frontend / HTML | Builders expose source-backed packages through |
| Project-local packages | Partial | Targeted structural @package.moth support roots, entry-only and paired normal-position owners, rejected legacy package-folder configuration, independently registered builder packages, dependency resolution, fixed normal module roots and public-surface coverage. |
Frontend / HTML | Structural @package.moth support packages and the optional project-root facade define the accepted project-local package model. A module with @mod.moth or @entry.moth occupies the normal-position owner role, and an entry-only owner still gives its support descendants a legal scope. Importable project-local claims of the reserved core or builder namespaces are rejected, while unrelated html/, css/, styles/ and web/ folders stay legal. Legacy config-driven package_folders paths and the historical default lib/ are removed. Independently registered Builder/Core source packages retain their own package boundaries. |
| Public Rust builder SDK | Partial | Targeted definition registration, rejection, project build driver, build profile, typed builder configuration settings, validated artefact publication, entryless package build, external-crate compile coverage, typed unsupported-capability reporting and whole-workflow acceptance coverage. | Frontend / Rust |
|
| Builder runtime packages | Partial | Targeted built-in JS-backed package, runtime asset, runtime module, pure-facade import-map, glue and backend validation coverage. Import-map assertions inspect emitted artefacts separately from the normal Node harness, which rejects import maps. | HTML / JS | Builder-owned runtime packages such as @builder/web/canvas are binding-backed packages. They share the specialised external package registry and HTML external JS asset/glue pipeline with provider-created imports. |
| First-party no-third-party-dependencies guard | Partial | Targeted package-manager, vendored-root, allowed-runtime-import and rejected-module-import coverage. | Validation / packages | The first-party-deps validation owner inspects first-party implementation roots plus the compiler-owned JavaScript inventory. Physical .js assets, Core helper bodies, inline lowering templates and registered runtime modules are checked. User-owned and future dependency packages, generated glue, documentation, tests and benchmarks remain outside its scan. |
| Surface | Status | Coverage | Runtime target | Notes and accepted next gaps |
|---|---|---|---|---|
| Core IO package | Partial | Broad console helpers, prelude/explicit namespace dependencies, old callable rejection, removed public IO, input metadata/type-checking, HTML-JS input helper reachability and backend unsupported-call diagnostics. Executable Node tests with a fake browser host cover snapshot publication, press/release transitions, repeat suppression, coalescing, last_* reads, modifier-safe key release, focus and visibility release, teardown and bounded storage in src/backends/js/tests/io_input_runtime.rs. An integration case observes the Unsupported code 1 from io.input.new on a host without input. |
Frontend / JS / HTML-Wasm validation | @core/io exposes io.print, io.line, io.debug, io.warn, io.error and io.input.*. The prelude injects io as a compile-time namespace alias, not a runtime value. It is the broad host-capability facade and the only preluded Core package. Input polling follows the published snapshot contract: update is the only publication point, transitions coalesce per key and button, focus loss releases held input and close leaves the handle inert. HTML-JS emits print and line as one browser console entry each. Portable snapshot additions are the next candidates. An ordered event queue waits for a final Moth event value that crosses the binding boundary. Timers, sleep, event waits, network events and callbacks wait for structured async and a host-ingress contract. Targeted browser event control belongs to future @builder/web/* surfaces. Queued io.set_title is a later host-title call, not current IO support; see the deferred row below. |
| Core collections package | Partial | Broad literal, fixed/growable mutation, indexing, fallibility, AST/HIR call target, JS helper and diagnostic coverage. | Frontend / JS / HTML-Wasm validation | @core/collections provides the compiler-owned collection operation identities behind fixed and growable collection members. Common non-sorting gaps still need a focused package audit. The accepted stable-by-default sorting contract is owned by its specialised package plan and remains blocked on final mixed-backend collection support. |
| Core math package | Partial | Broad runtime and diagnostic coverage. core_math_basic_functions and transcendental fixtures cover all thirty-one registered functions. core_math_constants checks all six nearest F64 constants. core_math_float_boundary_validation covers domain and finite-result failures. |
JS / HTML-Wasm validation | Core Math owns the delivered F64 function and constant contracts, including domains, units and finite-result delivery. Calls require an explicit dependency. HTML-Wasm function lowering and compile-time evaluation of function calls remain unsupported. The six constants remain compile-time values. Richer and generic Math APIs remain accepted later work, not part of this scalar migration. |
| Core text package | Partial | Targeted runtime, Unicode, helper reachability, arity, type-error and compile-time evaluation coverage. core_text_functions covers HTML output and HTML-Wasm rejection, with additional negative-predicate edge cases. core_text_runtime_parity pairs folded and runtime results, and core_text_helper_retention_mixed keeps only the helpers that runtime calls still need. |
JS / HTML | @core/text exposes length, emptiness, containment, prefix and suffix checks. text.length returns I32 and counts Unicode scalar values. Calls whose arguments are compile-time strings fold through compiler-owned Core evaluation, so fully folded calls need no helper and also build on HTML-Wasm. Accepted extensions include scalar-indexed access and slicing, search positions, match counting, Unicode-whitespace trimming and literal replacement. Collection-valued APIs await supported binding signatures. Unicode casing, case folding, normalisation and grapheme operations await a pinned Moth-owned Unicode data policy. Regex and locale-sensitive text remain separate design areas. Runtime HTML-Wasm calls remain target-rejected. |
| Core random package | Partial | Targeted dependency, helper, runtime, arity and type-error coverage. core_random_functions and core_random_int_edge_cases cover HTML execution and HTML-Wasm rejection. |
JS / HTML | @core/random exposes F64 random_float and inclusive I32 random_int helpers. Seeded random and additional distributions remain deferred. The portable observable contracts do not fix a cross-backend generator algorithm. HTML-Wasm calls remain target-rejected. |
| Core time package | Partial | Broad dependency, direct alias, namespace, helper, runtime, arithmetic, parse-grammar, calendar, offset, renderable-window and overflow coverage, with each rejection case observing the returned error code, plus arity/type diagnostic, old-name rejection, opaque-field rejection and backend validation coverage. | JS / HTML-Wasm validation |
|
| Surface | Status | Coverage | Runtime target | Notes and accepted next gaps |
|---|---|---|---|---|
| HTML project builds | Supported | Broad routing, API-only artefact filtering, document shell, metadata, config, output cleanup, external JS glue, page-fragment and resource-output coverage. Facade scenarios check exact provider materialisation and demanded wrappers without inactive assets. Multi-entry checks preserve one shared provider and page-specific wrapper selection. Pages with identical wrapper selections share one source-named glue module. | HTML / JS | This is the release-critical project builder. Only roots with HTML artefact activity participate in page, runtime asset, resource-output and homepage planning. Backend implementation and HTML-Wasm progress remain on the compiler progress matrix. |
| Fallible HTML entry and runtime fragment publication | Partial | Targeted compiler-owned entry failure, propagated/implicit failure, code-zero failure, local recovery, once-only execution, fragment suppression and safe release-notice coverage. The execution harness records failure at the generated entry call. | HTML / JS | The compiler-owned entry has builtin |
Moth template .mtf content assets |
Partial | Targeted compiler-integrated dependency binding, synthetic content constant, markdown folding, module-root re-export, direct API, diagnostics and integration coverage. Directory tests cover builder parity, and single-file and check-only tests cover both prelude providers. Integration cases cover project-facade isolation, and a header-binding fixture covers duplicate-prelude rejection. | Every builder / frontend | .mtf is a fixed compiler-supported source kind under every builder, including custom SDK builders. It synthesizes one private compile-time content #String constant from an implicit $md template body. Nested templates without an explicit directive also default to Markdown and explicit directives override that default. They bind extensionlessly into .moth and must fully fold. The fixed flat constant prelude reads the official @core/html and @core/css Core/MothSource packages; project-local packages, runtime values, types and private constants never enter it. Duplicate public constants across the two providers fail during header binding before any consumer body evaluates. |
Plain Markdown .md content assets |
Supported | Broad extensionless dependency, direct alias, module-root re-export, parser options, raw HTML, literal links/images, collision, direct-extension and module-root rejection coverage. | HTML builder / frontend | .md files render to HTML at compile time and synthesize one private content #String constant. They do not parse Moth declarations, interpolation, templates, frontmatter or metadata. |
| Compiler and builder source file kinds | Partial | Targeted fixed .moth/.mtf classification, optional Markdown registration, extensionless resolution, unsupported-kind diagnostics, source discovery and tokenizer/preparation coverage. |
Stage 0 / frontend | .moth and .mtf are fixed compiler-supported kinds under every builder. A builder cannot disable, reassign or substitute them. Builders may register optional kinds that participate in source dependency discovery and frontend preparation; the HTML builder registers plain Markdown .md content assets. |
Core HTML package @core/html |
Partial | Targeted Core/MothSource registration and @package.moth facade coverage, docs-site use across templates, tables and code blocks, the canvas markup helper, and .mtf prelude composition and collision coverage. |
Every builder / frontend | @core/html provides compile-time HTML markup helpers, including the canvas element helper. It is a mandatory Core/MothSource package registered under every builder, with its public surface in packages/core/html/@package.moth. Runtime canvas types and drawing calls belong to @builder/web/canvas, which a browser-capable HTML builder provides. It should grow only where helpers are broadly useful rather than becoming a general web framework. |
Core CSS package @core/css |
Supported | Targeted Core/MothSource registration, the six exported style fragments, docs-site heading composition, .mtf prelude composition and project-facade isolation coverage. |
Every builder / frontend | @core/css owns exactly center, right, left, smaller, medium and larger. Each is a compile-time [$in style:...] fragment that fills the style slot exposed by @core/html. The package is registered under every builder from packages/core/css/@package.moth and contributes to the fixed .mtf constant prelude. Runtime canvas, DOM and component surfaces stay out of it. |
Canvas package @builder/web/canvas |
Partial | Broad binding-backed package registration, opaque handle types, runtime assets/glue and current drawing API coverage, including namespace, alias, missing-symbol and Wasm-unsupported rejection. | HTML / JS | The current surface covers canvas element management, 2D context state, rectangles, paths, text, gradients, patterns, image drawing, image data and pixel access. Canvas is deliberately allowed a broader expansion target than most packages because visuals and animation make it a useful Moth language and runtime stress-test surface. |
Static site URL package @builder/web/site |
Supported | Integration cases cover origin-aware root and suffix rendering on both HTML targets, the structural site root surviving package export and cross-module composition, no browser asset emission and absence from .mtf implicit scope. A unit test covers its Builder source registration and @package.moth facade. |
HTML builder | Builder source-backed package at the nested web/site path under @builder/, published from packages/builder/web/site/@package.moth. root and the url slot wrapper compose compile-time strings only. Route validation, encoding and route matching are outside V1. |
Browser page state package @builder/web/page |
Supported | Node execution tests cover every getter, navigation matching, aliases, breadcrumbs, marker cleanup and typed failures. Integration cases cover namespace and direct callers, runtime asset emission, unused imports, the missing-import boundary and HTML-Wasm rejection. The docs sidebar uses it. | HTML / JS | Builder binding-backed snapshots read on each call plus the opt-in sync_navigation helper. Event subscriptions, reactive state and general DOM access are deferred. |
| Surface | Status | Coverage / diagnostic direction | Notes | |
|---|---|---|---|---|
| Core Text collection-valued operations | Deferred | Keep final collection signatures unavailable rather than exposing opaque JS handles. | split, join, lines and an eventual character iteration surface wait for stable collection-valued binding signatures or another final source-backed route. | |
| Core Text Unicode transforms | Deferred | Exact search and current transforms remain host-version-independent. | Unicode lowercase/uppercase, case folding and NFC/NFD/NFKC/NFKD normalization wait for one pinned Moth-owned Unicode data policy and generated first-party tables shared across implementations. Host JavaScript or Rust Unicode versions do not define Core semantics. | |
| Core Text grapheme operations | Deferred | Existing length and positions remain Unicode-scalar based. | Grapheme-aware length, iteration and slicing wait for an accepted explicit API plus pinned Unicode segmentation data. They do not replace the scalar semantics of length, char_at, search positions or slice. | |
| Core Text fallible constant evaluation | Deferred | Runtime APIs keep normal Error semantics; no temporary optional forms are introduced. | Rust parity functions for fallible text helpers can exist with the package, but compile-time evaluation of char_at and slice waits for an accepted compiler-owned fallible Core evaluator. | |
| Source-backed package HIR caching | Deferred | No precompiled source-backed package cache. | Source-backed packages are compiled from source each build. Caching stays deferred until package identities and the package system are stable. | |
| Package manager | Deferred | No package manager, remote registries, lockfiles or dependency resolver. | Project dependency declarations, resolver/catalog handoff and package-manager foundations are owned by their later roadmap work. This matrix records status only and does not design that system. | |
| Binding-backed JS package expansion | Deferred | JS provider diagnostics reject unsupported public binding forms. | The HTML builder supports annotated single-file .js imports and builder-owned JS-backed packages. Additional binding forms should be added only when their package contract is clear and they fit existing package ownership. | |
| Generic binding-backed package functions | Deferred | External signature validation rejects unsupported generic binding-backed surfaces. | Binding-backed packages currently expose concrete functions, opaque types and constants only. Generic binding-backed functions remain deferred and must not be introduced just to flesh out a package. | |
| Presence-based entry roots and command policy | Supported | Root-role combinations, empty, static-only and metadata-only entries, imported-entry suppression, zero-entry checks, descendant-only directory builds, single-file synthetic entries and package-only build outcomes. | Build system / HTML builder | A directory with @entry.moth is entry-eligible regardless of authored activity. @mod.moth and @package.moth never become entries. HTML build and dev need at least one entry anywhere below the selected project root and no homepage. check accepts a project with no entries. Development launch opens the real homepage when present, otherwise the first route in alphabetical order. |
| HTML builder root slots | Supported | Direct root routing, metadata-only entries, body interleaving, imported/helper/API-only isolation, unknown and nonconstant target rejection, resource liveness, scalar metadata, favicon sources, title fallback/concat, stylesheet validation and origin dedup, head dedup, and equivalent JavaScript and HTML-Wasm documents. | Direct const root inserts in @entry.moth supply document metadata, tracked stylesheet resources and additional head HTML. The compiler validates registered destinations without knowing HTML names. Scalar metadata concatenates, an explicit empty value stays supplied, title falls back through route then project name with prefix/postfix, and title/attribute values are escaped. Each stylesheets insert must contain one tracked CSS origin; the first origin wins. Complete head contributions deduplicate after URL rendering and are emitted last. Runtime named builder slots are not supported. $required and $unique remain unimplemented candidates, and there is no $page directive. Reserved page_* constants have no implicit effect. | |
| Dev entry-error reporting | Supported | Dev-server and generated-bootstrap tests cover returned Errors including code 0, assertion and unexpected startup-fault categories, hostile text, stale, duplicate, malformed, oversized and cross-origin reports, origin prefixes, unavailable transport and isolated pages. Socket and browser-client tests cover a page catching up after a missed publication broadcast, reconnection to the same generation without reloading and registration interleaved with publication. A release case proves output has no dev reporting dependency. | In moth dev, a returned entry Error covers its page with a runtime view that keeps hot reload, logs to the console and reports once to the server terminal. A successful build stays successful for every page. Assertion failures are identified structurally and other faults escaping the generated startup wrapper are reported as unexpected startup faults. Later callbacks and unrelated scripts are not intercepted. A page that missed a publication reloads when its event stream connects or reconnects. | |
Browser-capability io.set_title |
Deferred | None | Queued Core IO call: one String-content input, no value result, HTML-JS host capability, pre-lowering rejection on unsupported reachable targets. Not a silent no-op. Current IO helpers are unchanged. | |
WebGL2 package @builder/web/graphics |
Deferred | The HTML builder registers the package with no public symbols. Targeted source cases cover namespace resolution without runtime asset/glue emission and missing-symbol diagnostics at the authored selection. No placeholder or temporary API is published. | Accepted Builder binding-backed WebGL2 package. WebGL1 is outside current scope. graphics.gl is the initial implementation area. graphics.frame is accepted scope that waits for an accepted host-to-Moth execution mechanism, never a polling stand-in. The shared binding boundary now supports fixed U32 constants for closed-domain values such as primitive modes, but nested annotated symbol paths, cross-package opaque type references for the @builder/web/canvas canvas handle and bulk numeric and byte data transfer remain pending for a useful v1. The package still publishes no symbols and renders nothing. | |
| MON static project builder | Deferred | None | Accepted late follow-up for compile-time-known .mon assets through normal build output ownership. No command, source kind, builder registration, package surface or output writes are implemented. The documented Rust-only codec contract implies none of these. |
Keep this page concise but useful as a handoff between package iterations.
docs/roadmap/roadmap.md.docs/docs/packages/**.