{"id":19028074,"url":"https://github.com/mackignacio/uxml","last_synced_at":"2025-02-21T19:43:01.287Z","repository":{"id":193176754,"uuid":"687503093","full_name":"mackignacio/uxml","owner":"mackignacio","description":"Unscripted Extended Markup Language","archived":false,"fork":false,"pushed_at":"2023-09-12T06:21:57.000Z","size":475,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T00:03:29.383Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mackignacio.github.io/uxml/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mackignacio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-05T13:42:48.000Z","updated_at":"2023-09-11T10:09:49.000Z","dependencies_parsed_at":"2023-09-10T14:07:06.979Z","dependency_job_id":null,"html_url":"https://github.com/mackignacio/uxml","commit_stats":null,"previous_names":["mackignacio/usml","mackignacio/uxml"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackignacio%2Fuxml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackignacio%2Fuxml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackignacio%2Fuxml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mackignacio%2Fuxml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mackignacio","download_url":"https://codeload.github.com/mackignacio/uxml/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079610,"owners_count":19744720,"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":[],"created_at":"2024-11-08T21:09:53.839Z","updated_at":"2025-02-21T19:43:01.267Z","avatar_url":"https://github.com/mackignacio.png","language":"TypeScript","readme":"# Unscripted eXtended Markup Language (UXML)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"100%\" height=\"100%\" src=\"https://github.com/mackignacio/uxml/blob/main/banner.png\"\u003e\n\u003c/p\u003e\n\n**`UXML`** a lightweight, script-free component library designed specifically for web development within HTML. Whether you're a seasoned developer or new to web development, UXML simplifies the creation of interactive web applications without the need for complex JavaScript frameworks. You can create dynamic web components effortlessly without the need for any JavaScript code. With UXML, you can enhance user interfaces, handle user interactions, and build feature-rich web applications while working within the familiar HTML structure.\n\n## Features\n\n- **Script-Free HTML**\n  UXML enables the creation of dynamic web content directly within HTML, eliminating the need for inline JavaScript.\n- **Simplified Interactivity**\n  Easily add interactive features to your web pages using HTML attributes and minimal configuration.\n- **Cross-Browser Compatibility**\n  UXML is compatible with modern web browsers, ensuring a consistent user experience.\n- **Lightweight**\n  UXML is incredibly lightweight, weighing in **(~3k min.js gzip'd)** size, no dependency, very extendable, compatible to all major browser and `90%` smaller than popular libraries like [react](https://react.dev/).\n- **No Virtual DOM**\n  UXML doesn't rely on a virtual DOM. This results in a more efficient and simplified rendering process.\n- **Shallow Learning Curve**\n  UXML offers a shallow learning curve, making it accessible to developers of all skill levels. If you know **HTML**, you can start using UXML right away.\n\n## Getting Started\n\n1. Include the UXML library in your HTML document:\n\n   ```html\n   \u003cscript src=\"https://unpkg.com/uxml.js@0.1.0/uxml.js\"\u003e\u003c/script\u003e\n   ```\n\n2. Use UXML attributes within your HTML elements to add interactivity:\n\n   ```html\n   \u003cbody $load=\"get:/pages\" $swap=\"innerHTML\"\u003e\n     \u003c!-- Your HTML body --\u003e\n   \u003c/body\u003e\n   ```\n\n## Basic\n\nUXML uses a simple syntax **`$action=\"event:selector\"`** similar on how we do a basic `onclick=\"click()\"` event handler in plain HTML. This is consist of three(**3**) parts, a _declaration_ **`$action`**, an _assignment_ **`=`** and a _handler_ **`\"event:selector\"`**.\n\n- A **`$`** sign to define/access `UXML` inspired by [jquery](https://jquery.com/)\n- A **`action`** to be performed on the element inspired by [angularjs](https://angularjs.org/)\n- A **`event`** to emit an `UXMLEvent` or trigger an `http` request inspired by [htmx](https://htmx.org/)\n- A **`:`** to separate **event** and **selector**\n- A **`selector`** to \"**query**\" HTML elements or \"**value**\" of a given event i.e. `url` for http request\n\n## Usage\n\nUXML provides a range of attributes to enhance interactivity, such as `$click`, `$submit`, `$load`, `$component` and more. These attributes allow you to define behaviors without the need for JavaScript code.\n\n```html\n\u003cbutton $click=\"show:#hello\"\u003eShow message!\u003c/button\u003e\n\u003cdiv id=\"hello\"\u003eHello, UXML!\u003c/div\u003e\n```\n\n## Contributions\n\nWe welcome contributions from the community to improve UXML. If you have ideas for improvements or encounter any issues, please consider opening an issue or submitting a pull request on our **[GitHub repository](https://github.com/mackignacio/uxml/issues)**.\n\n## License\n\nUXML is distributed under the MIT License. Feel free to use, modify, and distribute this library in your projects.\n\n## Acknowledgments\n\nUXML stands on the shoulders of giants, drawing inspiration from [jquery](https://jquery.com/), [htmx](https://htmx.org/), [angularjs](https://angularjs.org/) and the need for more simplified, cleaner, and maintainable web code. Their pioneering work has illuminated our path, empowering us to develop this project. We thank the open-source community for their contributions and support in making this project possible.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackignacio%2Fuxml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmackignacio%2Fuxml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmackignacio%2Fuxml/lists"}