@arcadia_engineering/core
v0.1.0
Published
JSON-first forms, surveys, rubrics and trainings: schema, engine, scoring, results and a builder API. No framework, no DOM.
Maintainers
Readme
@arcadia_engineering/core
JSON-first forms, surveys, rubrics and trainings. Schema, engine, validation, conditions, scoring, results and a builder API. No framework and no DOM, so it runs in the browser or in Node.
npm install @arcadia_engineering/coreimport { ProjectEngine, parseProjectSchema, scoreProject } from '@arcadia_engineering/core';
const project = parseProjectSchema(jsonFromYourBackend);
const engine = new ProjectEngine(project);
engine.setValue('name', 'Ada');
const { valid, response } = engine.submit();To show a project in a page without a framework, add @arcadia_engineering/dom. For React, Vue or
Angular, render it yourself with bindProject.
Full docs: https://github.com/Brightchr/arcadia-ts-form-builder#readme
