costro

Build web applications with Components, Store and Router in 3KB

Usage no npm install needed!

<script type="module">
  import costro from 'https://cdn.skypack.dev/costro';
</script>

README

Costro

GitHub Workflow Status (branch) Coverage Status

Costro logo

Build web applications with Components, Store and Router. One lightweight framework with everything you really need in 3 KB!

It 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).

Features

  • Components - Create function and class component.
  • Router - Map components to the routes.
  • Store - Access component store from any component.
  • Lifecycle hooks - Take advantage of component lifecycle events.
  • Props - Inject props into components.
  • Template string or JSX - Write your templates in a native Template String or in JSX.
  • JSX compiler - Transforms JSX syntax into valid DOM elements (only 1KB).
  • CLI - Create a new Costro app in seconds with an interactive experience.

Documentation

You can find the Costro documentation and examples on the Costro website.

Questions

For questions and support please use the GitHub Discussions. For bug report or feature request, please use the issues on GitHub.
Pull Requests are welcome!

Used by

Licence

MIT

Copyright (c) 2021-present, Yoriiis (Joris DANIEL)