Digitally Tailored

Act – A Simple, Lightweight JavaScript Microframework

#5948

Act is a lightweight microframework designed to be the simplest and easiest to use without sacrificing features. Built and utilized with vanilla JS, HTML, and CSS, it requires minimal additional learning beyond basic web development skills found in most tutorials. The framework seamlessly embeds into existing projects, allowing for the creation of reusable components that can be incorporated across multiple pages or applications.

Features

 
  • Reusable Modules: Each module in Act holds a reusable, self-contained block of code that encapsulates HTML, CSS, and ES6 JavaScript that belong together.
  • Scoped CSS: CSS rules are scoped to the component, which ensures that the styles applied to one module do not affect other modules in the app.
  • Powerful Helpers: Modules are given powerful helpers and direct references to themselves and their children, which makes it easy to build complex user interfaces.
  • Flexible Render Method: The render method in Act is very flexible and can take simple HTML strings, HTML elements, Act views and nested views (which can also be strings or views).
  • Simple State Management: Simple state management is available within modules and can be directly embedded into HTML.
  • No Transpiler/Compiler Required: There is no need to use a transpiler or compiler with Act; simply insert the act.js script tag, and you’re good to go.
  • Tiny: Act is less than 4KB!
  • Human-Readable Output: The output generated by Act is human-readable, and no browser plugins are required to debug it.
  • Accessible Modules: Modules can be of any element type for accessibility (no div soup). Events are attached directly to their elements, and CSS rules are clearly defined.
Files

No files attached.

Work With Digitally Tailored

If you would like to implement, discuss or add to this project, please contact us.

License

Copyright 2019 - 2023 Digitally Tailored LTD

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.