{"id":24992088,"url":"https://github.com/strophe/strophejs-plugin-dataforms","last_synced_at":"2026-01-31T17:01:12.120Z","repository":{"id":75691345,"uuid":"80017954","full_name":"strophe/strophejs-plugin-dataforms","owner":"strophe","description":null,"archived":false,"fork":false,"pushed_at":"2020-04-24T11:09:02.000Z","size":72,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-06-06T20:43:13.350Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strophe.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-01-25T13:41:34.000Z","updated_at":"2017-01-25T13:41:34.000Z","dependencies_parsed_at":"2023-06-16T12:00:49.697Z","dependency_job_id":null,"html_url":"https://github.com/strophe/strophejs-plugin-dataforms","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/strophe/strophejs-plugin-dataforms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-dataforms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-dataforms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-dataforms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-dataforms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strophe","download_url":"https://codeload.github.com/strophe/strophejs-plugin-dataforms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strophe%2Fstrophejs-plugin-dataforms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28948356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T14:26:55.697Z","status":"ssl_error","status_checked_at":"2026-01-31T14:26:52.545Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-02-04T13:53:43.897Z","updated_at":"2026-01-31T17:01:12.112Z","avatar_url":"https://github.com/strophe.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# strophe.x.js\n\nstrophe.x.js is a plugin to provide Data Forms\n( [XEP-0004](http://xmpp.org/extensions/xep-0004.html) ).\n\n## Usage\n\n### Creating data elements\n\nCreating a form is easy:\n\n    new Strophe.x.Form({\n      type: \"submit\",\n      title: \"myTitle\",\n      instructions: \"Tell something\",\n      fields: [f1, f2]\n    });\n\nYou can call the constructor for Forms directly with $form:\n\n    $form({\n      ...\n    });\n\nYou can also use items within the form:\n\n    $form({\n      type: \"result\",\n      title: \"Search result\",\n      items: [ item1, { fields: [f1,f5]}, item3 ]\n    });\n\nHere you don't have to define the `reported` property (it is generated\nautomatically).\n\nCreating fields is similar\n\n    new Strophe.x.Field({\n      type: \"text-single\",\n      \"var\": \"myVariableName\",\n      desc: \"a description\",\n      label: \"My Label\",\n      required: true,\n      value: 1234\n    });\n\nFields also have a shorthand:\n\n    $field({\n      ...\n    });\n\nYou can also use options\n\n    $field({\n      type: \"list-multi\",\n      \"var\": \"myVariableName\",\n      desc: \"a description\",\n      label: \"My Label\",\n      required: true,\n      values: [\"a\", \"c\"],\n      options: [\n        {label:\"One\", value: \"a\"},\n        {label:\"Two\", value: \"b\"},\n        {label:\"Three\", value: \"c\"}\n    ]});\n\n### Convert to XML, HTML or JSON\n\nEvery object can be converted to xml by using the `toXML`, `toHML` or `toJSON` function\n\n### Parse XML\n\nYou can easily create a form by parsing XML:\n\n    var Form = Strophe.x.Form.fromXML(xml);\n\nThe same can be done with `fromHML` for HTML as source.\n\n## Dependencies\n\n- jQuery\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrophe%2Fstrophejs-plugin-dataforms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrophe%2Fstrophejs-plugin-dataforms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrophe%2Fstrophejs-plugin-dataforms/lists"}