{"id":13550655,"url":"https://github.com/synrc/form","last_synced_at":"2025-12-17T19:59:33.449Z","repository":{"id":14152601,"uuid":"16858374","full_name":"synrc/form","owner":"synrc","description":"🧾 FORM: Business X-Forms","archived":false,"fork":false,"pushed_at":"2023-03-24T02:29:31.000Z","size":590,"stargazers_count":39,"open_issues_count":0,"forks_count":16,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-12-05T14:25:01.517Z","etag":null,"topics":["meta","x-forms"],"latest_commit_sha":null,"homepage":"https://form.n2o.dev","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/synrc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-02-15T07:17:40.000Z","updated_at":"2024-01-30T19:51:18.000Z","dependencies_parsed_at":"2023-01-13T17:49:14.912Z","dependency_job_id":null,"html_url":"https://github.com/synrc/form","commit_stats":{"total_commits":346,"total_committers":18,"mean_commits":19.22222222222222,"dds":0.3959537572254336,"last_synced_commit":"805febe161c2c9aafd0bde9d7612165102a47338"},"previous_names":["spawnproc/forms"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/synrc/form","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Fform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Fform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Fform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Fform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/synrc","download_url":"https://codeload.github.com/synrc/form/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/synrc%2Fform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27759608,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["meta","x-forms"],"created_at":"2024-08-01T12:01:35.833Z","updated_at":"2025-12-17T19:59:33.433Z","avatar_url":"https://github.com/synrc.png","language":"Erlang","funding_links":[],"categories":["Erlang","Validations","others"],"sub_categories":[],"readme":"FORM: Declarative Documents\n============================\n\n[![Actions Status](https://github.com/synrc/form/workflows/mix/badge.svg)](https://github.com/synrc/form/actions)\n[![Build Status](https://travis-ci.com/synrc/form.svg?branch=master)](https://travis-ci.com/synrc/form)\n[![Hex pm](http://img.shields.io/hexpm/v/form.svg?style=flat)](https://hex.pm/packages/form)\n\nIntro\n-----\n\n```erlang\n  #document { name = Name, sections = [\n      #sec { name=[\u003c\u003c\"Input the password \"\n                     \"you have received by SMS\"/utf8\u003e\u003e,\n             nitro:to_list(Phone#phone.number)] } ],\n\n    buttons  = [ #but { name='decline',\n                        title=\u003c\u003c\"Cancel\"/utf8\u003e\u003e,\n                        class=cancel,\n                        postback={'CloseOpenedForm',Name} },\n\n                 #but { name='proceed',\n                        title = \u003c\u003c\"Proceed\"/utf8\u003e\u003e,\n                        class = [button,sgreen],\n                        sources = [otp],\n                        postback = {'Spinner',{'OpenForm',Name}}}],\n\n    fields = [ #field { name='otp',\n                        type=otp,\n                        title= \u003c\u003c\"Password:\"/utf8\u003e\u003e,\n                        labelClass=label,\n                        fieldClass=column3}]}.\n\n```\n\nSpec\n----\n\nDocuments or Forms consist of set of fields grouped\nin sections and a row of control buttons.\nIt mey also contain fields of customizable types.\n\n```erlang\n  -record(document, { ?ITERATOR(feed),\n                      name,\n                      base,\n                      sections,\n                      fields,\n                      buttons,\n                      access }).\n```\n\n```erlang\n -record(field,     { id, sec=1, name, pos, title,\n                      layout, visible=true,\n                      disabled=false, format=\"~w\",\n                      curr=[], postfun=[], desc,\n                      wide=normal, type=binary,\n                      etc, labelClass=label,\n                      fieldClass=field,\n                      boxClass=box,\n                      access, tooltips=[],\n                      options=[], min=0, max=1000000,\n                      length=10, postback }).\n```\n\n```erlang\n -record(sec,       { id,\n                      name,\n                      desc=\"\" }).\n```\n```erlang\n -record(but,       { id,\n                      postback,\n                      name,\n                      title,\n                      sources=[],\n                      class }).\n```\n```erlang\n  -record(sel,      { id,\n                      postback,\n                      name,\n                      title }).\n```\n```erlang\n -record(opt,       { id,\n                      postback,\n                      name,\n                      title,\n                      checked=false,\n                      disabled=false,\n                      noRadioButton=false }).\n```\n```erlang\n -record(validation, { name, type, msg,\n                       extract = fun(X) -\u003e X end,\n                       options=[], function,\n                       field={record,pos} }).\n```\n\nKVX Data Model\n--------------\n\nThe Metainformation is used to generate KVS Data Model.\nThe [KVS](http://github.com/synrc/kvs) layer provides persistence.\n\nNITRO Applications\n-----------------\n\nJavaScript Web Application is generated using Metainformation and Data Model.\n[N2O](http://github.com/synrc/n2o) is used as a domain specific language to generate forms.\nJavaScript/OTP is used to generate form. Average rendering speed is 25 forms per second.\nErlang and JavaScript/OTP are used to define validation\nrules applied to documents during workflow.\n\nBPE Processes\n-------------\n\nWorkflows are complimentary to business rules and could be specified separately.\n[BPE](http://github.com/synrc/bpe) defenitions provide front API to end-user applications.\n\nCredits\n-------\n\n* Maxim Sokhatsky\n\nOM A HUM\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynrc%2Fform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsynrc%2Fform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsynrc%2Fform/lists"}