{"id":15101764,"url":"https://github.com/muhammad-fiaz/open-actions","last_synced_at":"2026-02-19T13:32:19.989Z","repository":{"id":252809527,"uuid":"841491233","full_name":"muhammad-fiaz/open-actions","owner":"muhammad-fiaz","description":" Open-Actions is a Super lightweight JavaScript Framework","archived":false,"fork":false,"pushed_at":"2025-11-18T14:27:51.000Z","size":292,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-13T08:15:56.665Z","etag":null,"topics":["bun","framework","javascript","js","nodejs","npm","npm-module","npm-package","npmjs","open-action","open-actions","package","ts","typescript","web-framework"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/muhammad-fiaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["muhammad-fiaz"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2024-08-12T14:09:23.000Z","updated_at":"2025-11-18T14:27:48.000Z","dependencies_parsed_at":"2025-05-29T16:30:04.137Z","dependency_job_id":"52c467bf-b3eb-4f34-8849-6cff22ade7a9","html_url":"https://github.com/muhammad-fiaz/open-actions","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"454731201a579e483d89bb7496256131c139cc43"},"previous_names":["muhammad-fiaz/open-actions"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muhammad-fiaz/open-actions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fopen-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fopen-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fopen-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fopen-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhammad-fiaz","download_url":"https://codeload.github.com/muhammad-fiaz/open-actions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhammad-fiaz%2Fopen-actions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29614949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T13:04:20.082Z","status":"ssl_error","status_checked_at":"2026-02-19T13:03:33.775Z","response_time":117,"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":["bun","framework","javascript","js","nodejs","npm","npm-module","npm-package","npmjs","open-action","open-actions","package","ts","typescript","web-framework"],"created_at":"2024-09-25T18:29:47.541Z","updated_at":"2026-02-19T13:32:19.973Z","avatar_url":"https://github.com/muhammad-fiaz.png","language":"TypeScript","funding_links":["https://github.com/sponsors/muhammad-fiaz"],"categories":[],"sub_categories":[],"readme":"# Open Actions\n\nOpen Actions is a Super Light Web Framework that provides a set of utilities to help you build web applications. It includes a collection of utility functions, custom hooks for state and effect management, a class to handle API calls, a class to handle routing, and functions to render components to the DOM.\n\n## Installation\n\nTo install the Open Actions library, you can use the following command:\n\n```sh\nnpm install open-actions\n```\n\n## Usage\n\nYou can import the necessary functionalities from the `open-actions` package as shown below:\n\n```typescript\nimport { \n  renderComponent, \n  Api, \n  useState, \n  useEffect, \n  Router, \n  clone, \n  debounce, \n  generateId, \n  setInnerHTML, \n  setCSS, \n  addId, \n  updateValue \n} from \"open-actions\";\n\n// Example usage\nconst api = new Api();\nconsole.log(api.getData());\n\nconst router = new Router();\nrouter.navigate();\n\nconst [state, setState] = useState(0);\nuseEffect(() =\u003e {\n  console.log('State changed:', state);\n}, [state]);\n\nconst component = () =\u003e '\u003cdiv\u003eHello, World!\u003c/div\u003e';\nrenderComponent(component, document.getElementById('app'));\n\nsetInnerHTML('#app', '\u003cp\u003eNew content\u003c/p\u003e');\nsetCSS('#app', { backgroundColor: 'blue', color: 'white' });\n\nconst uniqueId = generateId('prefix_');\nconsole.log(uniqueId);\n\nconst clonedObject = clone({ key: 'value' });\nconsole.log(clonedObject);\n```\n\n## Packages\n\n### Utils\n\nA collection of utility functions for various common tasks.\n\n```typescript\nimport { \n  clone, \n  debounce, \n  generateId, \n  setInnerHTML, \n  setCSS, \n  addId, \n  updateValue \n} from 'open-actions';\n\n// Example usage\nconst clonedObject = clone({ key: 'value' });\nconsole.log(clonedObject);\n\nconst debouncedFunction = debounce(() =\u003e {\n  console.log('Debounced call');\n}, 500);\ndebouncedFunction();\n\nconst uniqueId = generateId('prefix_');\nconsole.log(uniqueId);\n\nsetInnerHTML('#app', '\u003cp\u003eNew content\u003c/p\u003e');\nsetCSS('#app', { backgroundColor: 'blue', color: 'white' });\n\nconst newId = addId('#app', 'prefix_');\nconsole.log(newId);\n\nupdateValue('#input', 'new value');\n```\n\n### Components\n\nFunctions to render components to the DOM.\n\n```typescript\nimport { renderComponent } from 'open-actions';\n\nconst component = () =\u003e '\u003cdiv\u003eHello, World!\u003c/div\u003e';\nrenderComponent(component, document.getElementById('app'));\n```\n\n### API\n\nA class to handle API calls.\n\n```typescript\nimport { Api } from 'open-actions';\n\nconst api = new Api();\nconsole.log(api.getData());\n```\n\n### DOM\n\nCustom hooks for state and effect management.\n\n```typescript\nimport { useState, useEffect } from 'open-actions';\n\nconst [state, setState] = useState(0);\nuseEffect(() =\u003e {\n  console.log('State changed:', state);\n}, [state]);\n```\n\n### Router\n\nA class to handle routing.\n\n```typescript\nimport { Router } from 'open-actions';\n\nconst router = new Router();\nrouter.navigate();\n```\n\n## Development\n\nTo build the project, run the following command:\n\n```sh\nnpm run build\n```\n\n## Contributing\n\nFeel free to open issues or submit pull requests for any bugs or feature requests.\n\n## License\n\nThis project is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammad-fiaz%2Fopen-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhammad-fiaz%2Fopen-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhammad-fiaz%2Fopen-actions/lists"}