{"id":30286866,"url":"https://github.com/fairstyle/dynamicstepform","last_synced_at":"2026-05-16T08:32:38.935Z","repository":{"id":49745125,"uuid":"517890640","full_name":"fairstyle/dynamicstepform","owner":"fairstyle","description":"Vanilla js library to create a form by steps, tailwindcss required for now","archived":false,"fork":false,"pushed_at":"2022-07-31T06:53:02.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T05:03:20.364Z","etag":null,"topics":["form","javascript","steps","tailwindcss","vanilla-javascript"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/fairstyle.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2022-07-26T02:48:20.000Z","updated_at":"2022-07-28T06:29:41.000Z","dependencies_parsed_at":"2022-09-18T06:53:51.692Z","dependency_job_id":null,"html_url":"https://github.com/fairstyle/dynamicstepform","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fairstyle/dynamicstepform","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairstyle%2Fdynamicstepform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairstyle%2Fdynamicstepform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairstyle%2Fdynamicstepform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairstyle%2Fdynamicstepform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fairstyle","download_url":"https://codeload.github.com/fairstyle/dynamicstepform/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fairstyle%2Fdynamicstepform/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270772025,"owners_count":24642401,"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-08-16T02:00:11.002Z","response_time":91,"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":["form","javascript","steps","tailwindcss","vanilla-javascript"],"created_at":"2025-08-16T21:15:16.058Z","updated_at":"2026-05-16T08:32:33.899Z","avatar_url":"https://github.com/fairstyle.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stepform\n\nWhenever I start a new project, I don't know what to write for the first commit. After doing a “git init” there is technically nothing there...\n\n## Warning\nThis is a very early package. It is not ready for use.\n\n## Install\n\n```npm\nnpm install dynamicstepform\n```\n\n# Usage\nThis package need tailwindcss for now to work\n\n```javascript\nlet element = document.getElementById(\"stepformdiv\");\nlet stepform = new Dynamicstepform();\n// stepone | steptwo | stepthree - all this are id of divs\nstepform.steps([\n    {\n        \"element\": \"stepone\", \n        \"call\": resolveAfter3Seconds, //Promisse example\n        \"clearStep\": () =\u003e {console.log(\"clear step 1\");return true;}\n    },{\n        \"element\": \"steptwo\", \n        \"call\": resolveAfterResponse,  //Promisse example\n        \"clearStep\": () =\u003e {console.log(\"clear step 2\");return true;}\n    },{\n        \"element\": \"stepthree\", \n        \"call\": () =\u003e {console.log(\"step 3\");return true;}, \n        \"clearStep\": () =\u003e {console.log(\"clear step 3\");return true;}\n    }\n]);\nstepform.opts({\n    customAccessVarName: \"stepform\" // Optional\n});\nstepform.create(element);\n```\n\n### Example calls\nExample calls for validate steps with promises\n\n```javascript\nfunction resolveAfter3Seconds() {\n    return new Promise(resolve =\u003e {\n        setTimeout(() =\u003e {\n            console.log(\"a\");\n            resolve(true);\n        }, 3000);\n    });\n}\n\nfunction resolveAfterResponse() {\n    return new Promise(async resolve =\u003e {\n        let json = await fetch(\"localhost\", {\n            method: 'GET',\n            headers: new Headers({\n                'Access-Control-Allow-Origin': '*',\n            }),\n        }).then(res =\u003e res)\n            .catch(error =\u003e {\n                console.log(error)\n            })\n            .then(response =\u003e {\n                return response;\n            });\n        resolve(json.status === 200);\n    });\n}\n```\n\n### Utils Methods\nMethods for manipulating steps\n\n```javascript\n// to create a new stepform\nstepform.create();\n\n// next step\nstepform.nextStep();\n\n// back step\nstepform.backStep();\n\n// clear current step\nstepform.clearStep();\n\n// reset stepform\nstepform.reset();\n```\n\n# Contributing\nIf someone wants to add or improve something, I invite you to collaborate directly in this repository: [dynamicstepform](https://github.com/fairstyle/dynamicstepform)\n\n# License\ndynamicstepform is released under the [MIT License](https://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairstyle%2Fdynamicstepform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffairstyle%2Fdynamicstepform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffairstyle%2Fdynamicstepform/lists"}