{"id":20364953,"url":"https://github.com/costrojs/costro","last_synced_at":"2025-04-12T04:46:20.894Z","repository":{"id":44673875,"uuid":"418603837","full_name":"costrojs/costro","owner":"costrojs","description":"⚡ Build web applications with Components, Store and Router in 3KB!","archived":false,"fork":false,"pushed_at":"2024-09-26T14:49:59.000Z","size":1142,"stargazers_count":12,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T04:45:53.602Z","etag":null,"topics":["components","dom","framework","frontend","javascript","jsx","router","store","template-string","ui"],"latest_commit_sha":null,"homepage":"https://costro.js.org","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/costrojs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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},"funding":{"github":["costrojs","yoriiis"]}},"created_at":"2021-10-18T17:32:59.000Z","updated_at":"2025-04-08T23:35:31.000Z","dependencies_parsed_at":"2023-10-16T04:17:42.021Z","dependency_job_id":"381e8a84-c481-48ad-b631-f0e92101bc46","html_url":"https://github.com/costrojs/costro","commit_stats":{"total_commits":240,"total_committers":1,"mean_commits":240.0,"dds":0.0,"last_synced_commit":"4be89ebf65f6c87e4c996e84ec314a18ea8aeaa1"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costrojs%2Fcostro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costrojs%2Fcostro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costrojs%2Fcostro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/costrojs%2Fcostro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/costrojs","download_url":"https://codeload.github.com/costrojs/costro/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519471,"owners_count":21117757,"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","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":["components","dom","framework","frontend","javascript","jsx","router","store","template-string","ui"],"created_at":"2024-11-15T00:14:23.711Z","updated_at":"2025-04-12T04:46:20.866Z","avatar_url":"https://github.com/costrojs.png","language":"JavaScript","funding_links":["https://github.com/sponsors/costrojs","https://github.com/sponsors/yoriiis"],"categories":[],"sub_categories":[],"readme":"# Costro\n\n![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/costrojs/costro/build.yml?branch=main\u0026style=for-the-badge) [![Coverage Status](https://img.shields.io/coveralls/github/costrojs/costro?style=for-the-badge)](https://coveralls.io/github/costrojs/costro?branch=main)\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://costro.js.org\" title=\"Costro\"\u003e\n        \u003cimg src=\"https://yoriiis.github.io/cdn/static/costro/costro-1280.png\" alt=\"Costro logo\" width=\"250\" /\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## What is Costro?\n\nCostro is a new lightweight framework with a different approach: helping you **build fast web applications** with a **low level of dependency**. If you are concerned about your app's loading performance, this library makes sense as it is extremely lightweight compared to the competition _(only 3 KB)_.\n\nCostro allows you to create components with store and a router in one lightweight easy-to-use package. It does not use virtual DOM because it is, by definition, slower than carefully crafted manual updates.\n\n### Motivation\n\n1. Finding the framework that matches your needs without impacting web performance is not that easy these days. Popular librairies generally embed more and more code as the community and popularity increase.\n2. Single Web Applications do not benefit from page reloading to improve performance, so the JavaScript code embedded during the first load is heavier.\n3. In addition, we do not use 100% of the features included in the frontend frameworks and generally, the dependency part can be larger than the actual written code.\n\n## Features\n\n- [**Components**](https://costro.js.org/docs/component) - Create function and class component.\n- [**Router**](https://costro.js.org/docs/router) - Map components to the routes.\n- [**Store**](https://costro.js.org/docs/store) - Access component store from any component.\n- [**Lifecycle hooks**](https://costro.js.org/docs/component#lifecycle-hooks) - Take advantage of component lifecycle events.\n- [**Props**](https://costro.js.org/docs/component#props) - Inject props into components.\n- [**Template string or JSX**](https://costro.js.org/docs/template-syntax) - Write your templates in a native Template String or in JSX.\n- [**JSX compiler**](https://costro.js.org/docs/template-syntax#jsx-) - Transforms JSX syntax into valid DOM elements _(only 1KB)_.\n- [**CLI**](https://costro.js.org/cli) - Create a new Costro app in seconds with an interactive experience.\n\n## Documentation\n\nYou can find the Costro documentation and examples on the [Costro website](https://costro.js.org).\n\n## Questions\n\nFor questions and support please use the [GitHub Discussions](https://github.com/costrojs/costro/discussions). For bug report or feature request, please use the [issues on GitHub](https://github.com/costrojs/costro/issues).\u003cbr /\u003ePull Requests are welcome!\n\n## Used by\n\n- [Prisma Media](https://www.prismamedia.com)\n\n## Browser support\n\nIt uses modern JavaScript to be as light as possible and therefore only works on the latest version of modern browsers (e.g. Chrome, Firefox, Edge, Safari, Opera).\n\n## Licence\n\n[MIT](https://opensource.org/licenses/MIT)\n\nCopyright (c) 2021-present, Yoriiis\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcostrojs%2Fcostro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcostrojs%2Fcostro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcostrojs%2Fcostro/lists"}