How escherlabs/grapheneforms works
Graphene Forms is a browser-side form library driven by JSON descriptors. The principal workflow is to supply a descriptor and initial values, render an interactive form, and read or serialize its values; the README also highlights validation, conditional display, modal forms, wizards, duplicatable fieldsets, and prebuilt field types. The graph includes the indexed runtime modules and theme implementations. Several feature-to-engine links are dashed because the excerpts do not show their wiring; the README documents those capabilities but not their internal call paths.
Main entry points: gform.js Form engine · types.js Field type registry · conditions.js Conditional display · validate.js Validation
Components 20
Form runtime
- Form engine
src/js/gform.js
Form behavior
- Conditional display
src/js/conditions.js - Validation
src/js/validate.js
Field types
- Field type registry
src/js/types.js - Combo field
src/js/types/smallcombo.js - Rich text field
src/js/types/summernote.js
Presentation
- Default theme
src/js/themes/default.js - Bootstrap theme
src/js/themes/bootstrap.js - Bulma theme
src/js/themes/bulma.js - Milligram theme
src/js/themes/milligram.js - Skeleton theme
src/js/themes/skeleton.js
Browser distributions
- Default browser build
bin/gform.js - Default styling bundle
bin/default/default.js - Default theme bundle
bin/default/gform_default.js - Bootstrap styling bundle
bin/bootstrap/bootstrap.js - Bootstrap form bundle
bin/bootstrap/gform_bootstrap.js - Combo field bundle
bin/bootstrap/smallcombo.js
Other components
- Application developer
- JSON descriptor
- Form values
Connections 19
- Application developer → JSON descriptor: defines form
README.md - JSON descriptor → Form engine: configures
README.md - Form engine → Form values: provides values
README.md - Form engine → Conditional display: evaluates conditions
- Form engine → Validation: validates fields
- Form engine → Field type registry: uses field types
- Field type registry → Combo field: includes combo
- Field type registry → Rich text field: supports rich text
- Form engine → Default theme: renders with
- Form engine → Bootstrap theme: renders with
- Form engine → Bulma theme: renders with
- Form engine → Milligram theme: renders with
- Form engine → Skeleton theme: renders with
- Application developer → Default browser build: loads
- Application developer → Default styling bundle: loads
- Application developer → Default theme bundle: loads
- Application developer → Bootstrap styling bundle: loads
- Application developer → Bootstrap form bundle: loads
- Application developer → Combo field bundle: loads