vasille
v7.2.2
Published
The same devkit which is designed to build fault tolerant frontends (core library).
Readme
Steel Frame

AI can produce code. Organizations still have to produce software.
Agentic development is changing how software gets made,
but it hasn't changed what it cost to be wrong, Steel Frame do it.
Table of content
Installation
npm install steel-frame --saveHow to use Steel Frame
Create an app from a template
$ npm create steel-frameFull documentation:
- Learn
Steel Framein 5 minutes - Router Documentation
- Compiler Hints
- Composition functions
- Dependency injection
Examples
How SAFE is Steel Frame
The safety of your application is ensured by
100%coverage of code by unit tests. Each function, each branch is working as designed.- OOP, DRY, KISS and SOLID principles are applied.
strong typingmakes your code safe. All entities ofSteel Framecore library are strongly typed, including:- data fields & properties.
- computed properties (function parameters and result).
- methods.
- events (defined handlers & event emit).
- DOM events & DOM operation (attributing, styling, etc.).
- slots of components.
- references to children.
- No asynchronous code, when the line of code is executed, the DOM and reactive things are already synced.
How INTUITIVE is Steel Frame
There is the "Hello World":
import { compose, mount } from "steel-frame";
const App = compose(() => {
<p>Hello world</p>;
});
mount(document.body, App, {});How POWERFUL is Steel Frame
All of these are supported:
- Components.
- Reactive values (observables).
- Inline computed values.
- Multiline computed values.
- HTML tags.
- Component custom slots.
- 2-way data binding in components.
- Logic block (if, else).
- Loops (array, map, set).
- Dependency injection.
Road map
- [x]
100%Test Coverage for core Library v3. - [x] Develop the
JSXlibrary. - [x]
100%Test Coverage for the JSX library. - [x] Develop the
Babel Plugin. - [x]
100%Test Coverage fot babel plugin. - [x] Add CSS support (define styles in components).
- [x] Add router.
- [x] Add SSG (static site generation).
- [ ] Develop tools extension for debugging (WIP).
- [ ] Add SSR (server side rendering).
Change log
We respect semantic versioning:
- A major version is increased when we make incompatible API changes.
- A minor version is increased when we add functionality.
- Patch version is increased when we fix bugs.
7.0 - 7.2
- 7.2: Add tracking of the builtin models size. Reactive array/set/map can be converted into a builtin model.
- 7.1: Add support for ARIA attributes.
- Add
debouncedandfieldfunctions, which extend the reativity system. - Add
Zombiecomponent, it keeps HTML elements alive some time after destruction. - Add
abortSignalto cancel fetch requests and timers when component is destroyed. - Renamed
reftostate,bindtolive,watchtoeffect, depracatedcalculate. - Add
safeState,safeLive,safeInitfunctions, they make the JSX much safer. callbackhandler can return cleanup function.- Navigation paths are now checked in compile time, missing paths are reported.
- Injected dependencies now are tracked in compile time, missing dependencies are reported.
- Support for wrapper in router, it can provide global dependencies.
- Reactive members are forbidden in live expressions. [API change]
- Reactive values are not unwrapped automatically, need
unwrapcall. [API change] - Reactivity breaking is now reported in compile time. [API change]
- Writing to reactive states from effects is restricted,
workaround with
bypassWriteRestriction. [API change] - New reactivity marks
r_&wr_insted of$, workaround withv4-namingcompilation flag. [API change] - Component files have strict structure (imports, export, helpers, CSS). [API change]
6.0 RC (never released)
- Add
QueueRenderer,ArrayView,ArrayModelView,SetModelView,MapModelView,IterateandForEachcomponents. const a = []is not implicit array model, use explicitarrayModel. [API change]
5.0 - 5.1
- Add support for context and dependencies injection.
- New developement direction:
fault tolerant. - Renamed to
steel-frame. [API change] - Removed
forwardandbackwardfunctions. [API change] - Removed
Debugcomponent. [API change] - Add support for web components compile target
web build components. Web components as custom tags are supported in any version.
4.0 - 4.3
- Initial version of the framework with file based routing and building scripts (
web devandweb build spa). - Reactive values naming switched to
$prefix. [API change] 4.1Added SSG (static site generation) as build optionweb build static.4.2Add support for inlined conditions in JSX, binary&&and ternary?:operator.4.3Add new functionsafewhich make functions safe, errors are reported automatically.
3.0 - 3.2
- Switch to a babel plugin to compile components code. [API change]
- 100% of the code has been covered with unit tests.
- New development direction:
keep it simple.
2.0 - 2.3
- Introduces components compilation via a typescript plugin. [API change]
- New development direction:
write less, do more.
1.0 - 1.2
- Initial version of a core library.
- Development direction:
performance-first.
Questions
If you have questions, feel free to contact the maintainer of the project:
