{"id":18893219,"url":"https://github.com/infantiablue/vanjs","last_synced_at":"2026-04-16T01:33:06.338Z","repository":{"id":57390811,"uuid":"361787036","full_name":"infantiablue/vanjs","owner":"infantiablue","description":"Pure vanilla javascript toolkit","archived":false,"fork":false,"pushed_at":"2022-09-20T16:14:46.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T13:48:58.295Z","etag":null,"topics":["javascript","jsx"],"latest_commit_sha":null,"homepage":"https://infantiablue.github.io/vanjs/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/infantiablue.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}},"created_at":"2021-04-26T14:48:03.000Z","updated_at":"2022-02-01T15:21:27.000Z","dependencies_parsed_at":"2022-09-17T03:51:08.118Z","dependency_job_id":null,"html_url":"https://github.com/infantiablue/vanjs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/infantiablue/vanjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infantiablue%2Fvanjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infantiablue%2Fvanjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infantiablue%2Fvanjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infantiablue%2Fvanjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/infantiablue","download_url":"https://codeload.github.com/infantiablue/vanjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/infantiablue%2Fvanjs/sbom","scorecard":{"id":487840,"data":{"date":"2025-08-11","repo":{"name":"github.com/infantiablue/vanjs","commit":"76eaee62568b277eb466318be37d4e02aaf081b0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-hc6q-2mpp-qw7j","Warn: Project is vulnerable to: GHSA-4vvj-4cpr-p986"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T18:15:27.137Z","repository_id":57390811,"created_at":"2025-08-19T18:15:27.137Z","updated_at":"2025-08-19T18:15:27.137Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31867710,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: 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":["javascript","jsx"],"created_at":"2024-11-08T08:12:31.749Z","updated_at":"2026-04-16T01:33:06.309Z","avatar_url":"https://github.com/infantiablue.png","language":"JavaScript","readme":"# vanjs\n\nVanilla Javascript toolkits for basic web opearations.\n\n## Introduction\n\nInspired from [Vanilla Javascript library](http://vanilla-js.com/). The VanJS's goal is to implement some daily-used functions in pure javascript such as `notify`, `ready` ... and even JSX without React. It's not a library, think it like a toolkit, especially when making prototype.\n\n## Usage\n\n### Requirements\n\nFor now, you will need [Babel](https://babeljs.io/), [Bootstrap 5.x](https://getbootstrap.com/) and [Animate CSS 4.x](https://animate.style/) for user interface. The native components will be updated later\n\n### Installation\n\nUse in browser\n\n```html\n    \u003cscript src=\"https://unpkg.com/vanjs-toolkit\"\u003e\u003c/script\u003e\n```\n\nUse as Node module\n\n```bash\nyarn add vanjs-toolkit\n#or\nnpm i vanjs-toolkit\n```\n\nthen\n\n```javascript\n\nimport { fadeIn, ready } from \"vanjs-toolkit\";\n\n```\n\n### JSX\n\nImplement JSX in pure vanilla javscript. It's really convenient to use JSX without get the whole burden from React.\n\n```html\n  \u003cscript src=\"/dist/vanjs.js\"\u003e\u003c/script\u003e\n  \u003cscript type=\"text/babel\"\u003e\n    /** @jsx createElement */\n    /*** @jsxFrag createFragment */\n    const { createElement, appendChild, createFragment } = vanjs;\n    const UsingFragment = (\n        \u003cdiv\u003e\n            \u003ch1\u003eVanJS Toolkit\u003c/h1\u003e\n                \u003cdiv\u003e\n                \u003c\u003e\n                    \u003cp\u003eThis is a paragraph in a fragment in JSX without React.\u003c/p\u003e\n                \u003c/\u003e\n                    \u003cp\u003eThis is a list by using map.  \u003c/p\u003e\n                \u003cul\u003e\n                    {[1, 2, 3].map((item) =\u003e (\n                        \u003cli\u003e{item}\u003c/li\u003e\n                    ))}\n                \u003c/ul\u003e\n            \u003c/div\u003e\n        \u003c/div\u003e\n    );\n    document.querySelector(\"#root\").appendChild(UsingFragment);\n  \u003c/script\u003e\n```\n\n### ready()\n\nThis is called to check if the DOM is loaded. Example:\n\n```javascript\n    const { ready } = vanjs;\n    ready(() =\u003e {\n        // The DOM is loaded\n    })\n\n```\n\n### notify()\n\nCreate simple pop up notification message, with Bootstrap CSS. Example:\n\n```javascript\n    const { notify } = vanjs;\n    notify(\"There is an error\", \"danger\");\n```\n\n### djangoCall()\n\nTo be updated\n\n### getCookie()\n\nTo be updated\n\n### countWords()\n\nTo be updated\n\n### fadeIn(), fadeOut()\n\nTo be updated\n\n### loadingDots()\n\nTo be updated\n\n### randomColor()\n\nTo be updated\n\n### isEmail()\n\nTo be updated\n\n### minLength()\n\nTo be updated\n\n### maxLength()\n\nTo be updated\n\n### raneg()\n\nInspired from *range()* in Python, return a list from a pair of integer\n\n```javascript\nconsole.log(range(1,10)) // [1, 2, 3, 4, 5,6, 7, 8, 9]\n```\n\n## TODO\n\n[] Develop own CSS style to remove Bootstrap dependency or partial import Bootstrap components\n\n[] Implement Rollup\n\n[] Test suite\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfantiablue%2Fvanjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfantiablue%2Fvanjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfantiablue%2Fvanjs/lists"}