@marktiderman/genesis-forms
0.11.1Primitive · FormsGenesis Forms engine: a serializable form definition, logic, navigation, validation and server-side checking. Zero dependencies; runs in browsers, React Native, Node and edge runtimes. Part of the Genesis framework.
The Genesis Forms engine. A form is plain JSON: blocks, logic, endings and typed hidden inputs. It can be stored, diffed, versioned, and evaluated identically in a browser, in React Native and on a server. Zero dependencies.
**Status: 0.1, release R1.** Field types: `short-text`, `long-text`, `email`, `phone`, `rating`, `nps`, `single-choice`, `multi-choice`, `yes-no`, `dropdown`, `number`, `date`, `consent`. Logic: show, hide, jump to a field or an ending. Layouts (rendered by `genesis-forms-web`): focus (one question at a time) and classic. The full plan is in docs/FORMS.md.
pnpm add @marktiderman/genesis-formsOther exports (135)
answersFromSnapshots · answerSnapshots · answersOnPath · CALCULATED_TYPE · calculatedProps · calculatedValue · canonicalJson · carryAnswers · CHOICE_FIELD_TYPES · choiceKind · choiceOptions · clearFilteredAnswers · coerceHidden · coerceHiddenValue · COMPUTED_FIELD_TYPES · computePath · contentText · createDraftAutosave · createDraftStore · createForm · createSubmitOutbox · dateLimits · DEFAULT_PHOTO_FILES · DEFAULT_PHOTO_SIZE_MB · defineForm · describeCondition · DRAFT_KEY_PREFIX · DRAFT_MAX_AGE_MS · draftOf · evaluate · evaluateFormula · explain · f · filteredChoiceError · fingerprint · formatCalculated · formatTimestamp · formProgress · FORMULA_FUNCTIONS · formulaInput · formulaNumber · formulaRefs · furthestReached · getContentType · getFieldType · hasOptionFilters · hiddenByPrefill · HIGHLIGHT_NOTE_MESSAGE · IDEMPOTENCY_KEY_PATTERN · isBuiltInFieldType · isChoiceField · isEmptyValue · isFormEvent · isHttpsUrl · isIdempotencyKey · isIsoDate · isJson · isOtherValue · isPhotoFormat · isPhotoRef · isPrefillParam · isSearchable · isSensitive · isSubmitResult · listContentTypes · listFieldTypes · listLimits · MAX_CALCULATED_DECIMALS · MAX_FORM_FORMULA_LENGTH · MAX_FORMULA_ITEMS · MAX_FORMULA_LENGTH · MAX_HIDDEN_STRING_LENGTH · MAX_HIGHLIGHT_NOTE_LENGTH · MAX_HIGHLIGHT_QUOTE_LENGTH · MAX_PHOTO_FILES · MAX_PHOTO_ID_LENGTH · MAX_PHOTO_NAME_LENGTH · MAX_PHOTO_SIZE_MB · MAX_PREFILL_PARAM_LENGTH · MAX_SETTLE_ITEMS · MAX_TABLE_CELL_LENGTH · MAX_TABLE_COLUMNS · MAX_TIMESTAMP_SECONDS · MAX_UPLOAD_REQUEST_BYTES · memoryStorage · mergeResponses · normalizeValue · numberLimits · OPTION_LIMITS · optionFilter · optionJson · optionMatches · optionsSource · OTHER_MAX_LENGTH · otherOption · parseForm · parseFormula · parseTimestamp · PHOTO_FORMATS · PHOTO_TYPE · photoCountMessage · photoFormatList · photoLimits · photoRefs · photoSizeMessage · photoTypeMessage · prefillFromLink · prefillSetting · ratingDisplay · readOption · recall · registerContentType · registerFieldType · renameFormulaKey · replay · REQUIRED_MESSAGE · respondentPath · restoreDraft · ruleVisible · scaleLabels · SEARCHABLE_OPTION_COUNT · searchOptions · steps · STRUCTURED_FIELD_TYPES · submitOutcome · summarizeValue · tableColumns · tableLimits · UPLOAD_FIELD_TYPES · validateField · VALIDATOR_FAILED_MESSAGE · visibleOptions · webStorage · when · withHostOptions
And 95 types.
Other exports (40)
addressPrefix · allow · answersFromSnapshots · answerSnapshots · attemptHash · checkUploads · clientIp · createEditSecretReader · createUploadHandler · DEFAULT_TRUSTED_IP_HEADERS · EDIT_LINK_PARAM · EDIT_LINK_TTL_SECONDS · editLinkUrl · IDEMPOTENCY_KEY_PATTERN · isEditLinkRequest · isIdempotencyKey · isSubmitResult · isUsableEditSecret · MAX_EVENTS · MAX_REPLAY_WORK · MAX_SUBMISSION_VALUES · MAX_UPLOAD_REQUEST_BYTES · mergeResponses · MIN_EDIT_SECRET_BYTES · NOT_UPLOADED_MESSAGE · publicDefinition · RATE_LIMIT_DEFAULTS · rateLimitKey · RAW_EVENTS_PER_EVENT · signEditToken · submitOutcome · submitResponse · UPLOAD_MESSAGES · uploadFields · uploadRules · validateSubmission · verifyEditToken · withEditLinkHeaders · withEditToken · withHostOptions
And 41 types.
Other exports (76)
answerCell · checkHookHost · checkWebhookUrl · clearGoogleOAuthTokenCache · clearGoogleTokenCache · columnLetter · conditionOf · createDeliveryRunner · createSecrets · DEDUPE_WINDOW · DEFAULT_BATCH_SIZE · DEFAULT_MAX_ATTEMPTS · DEFAULT_MAX_DEFERRALS · DEFAULT_SHEET_NAME · defaultBackoff · DeliveryError · deliveryFailure · deliveryOutcome · deriveSecretKey · DRIVE_FILE_SCOPE · emailBody · emailDestination · escapeFormula · escapeHtml · escapeSlack · GOOGLE_TOKEN_URL · googleAccessToken · googleOAuthAccessToken · HEADER_SCAN_ROWS · headerSafe · hookHost · HookUrlError · httpError · idempotencyKey · isCondition · isPrivateHost · isPublicAddress · isRetryableStatus · isSafeAddress · isSafeFrom · isSecretError · MAX_CONDITION_DEPTH · MAX_HOOK_URL_LENGTH · MAX_RECIPIENTS · mergeHeader · MIN_WEBHOOK_SECRET_BYTES · newWebhookSecret · openSecret · parseHookUrl · parseKeyring · passesCondition · refreshGoogleAccessToken · renderEmail · REQUEST_TIMEOUT_MS · RESEND_API · resendProvider · responseRow · retryAfterSeconds · rowFor · sealSecret · SecretError · secretKeyBytes · SENSITIVE_MASK · SHEETS_API · SHEETS_SCOPE · sheetsDestination · signJwt · signWebhook · SLACK_HOSTS · SLACK_VALUE_LIMIT · slackDestination · slackMessage · verifyWebhook · visibleInputs · webhookDestination · webhookPayload
And 51 types.
Other exports (5)
compactEvents · coverage · recordScenario · runScenario · simulate
And 8 types.