How m135437/frameworking works
This repository is a small browser-side frontend framework. Its main workflow creates an app from initial state and a caller-supplied view, optionally restores and persists state, renders the view into a mounted root, and delegates supported events. The runtime is organized around app orchestration, a subscribable state store, DOM helpers, event handling, and browser storage. Relationships below are limited to the sampled source and source-index references; the example app’s behavior was not inspected.
Main entry points: app.js App lifecycle · dom.js DOM helpers · state.js State store · events.js Event delegation
Components 8
Framework runtime
- App lifecycle
framework/src/app.js - State store
framework/src/state.js - DOM helpers
framework/src/dom.js - Event delegation
framework/src/events.js - State persistence
framework/src/storage.js
Other components
- Supplied view
- Browser DOM
- Browser storage
Connections 9
- App lifecycle → State store: creates and subscribes
framework/src/app.js - App lifecycle → State persistence: loads and saves
framework/src/app.js - App lifecycle → Supplied view: calls with state
framework/src/app.js - App lifecycle → DOM helpers: renders and clears
framework/src/app.js - App lifecycle → Event delegation: delegates events
framework/src/app.js - State store → App lifecycle: notifies subscribers
framework/src/state.js - Event delegation → DOM helpers: adds listeners
framework/src/events.js - DOM helpers → Browser DOM: manipulates elements
framework/src/dom.js - State persistence → Browser storage: reads and writes
framework/src/storage.js