{"id":13581533,"url":"https://github.com/PxyUp/Revact","last_synced_at":"2025-04-06T10:32:34.514Z","repository":{"id":37692963,"uuid":"177154009","full_name":"PxyUp/Revact","owner":"PxyUp","description":" Full reactivity JS/TS framework. Lightweight replacement of React + MobX + React Router. Very small and fast !!","archived":false,"fork":false,"pushed_at":"2022-12-03T03:14:35.000Z","size":3978,"stargazers_count":157,"open_issues_count":14,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-30T17:44:38.136Z","etag":null,"topics":["angular","framework","javascript","mobx","react","typescript","vue"],"latest_commit_sha":null,"homepage":"https://pxyup.github.io/Revact/","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/PxyUp.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},"funding":{"github":"PxyUp"}},"created_at":"2019-03-22T14:23:17.000Z","updated_at":"2024-07-09T09:50:26.000Z","dependencies_parsed_at":"2023-01-23T04:16:11.594Z","dependency_job_id":null,"html_url":"https://github.com/PxyUp/Revact","commit_stats":null,"previous_names":["pxyup/test"],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2FRevact","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2FRevact/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2FRevact/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PxyUp%2FRevact/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PxyUp","download_url":"https://codeload.github.com/PxyUp/Revact/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247470365,"owners_count":20944146,"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":["angular","framework","javascript","mobx","react","typescript","vue"],"created_at":"2024-08-01T15:02:04.750Z","updated_at":"2025-04-06T10:32:33.956Z","avatar_url":"https://github.com/PxyUp.png","language":"TypeScript","readme":"# Revact ![npm](https://img.shields.io/npm/v/revact.svg) [![CircleCI](https://circleci.com/gh/PxyUp/Revact/tree/master.svg?style=svg)](https://circleci.com/gh/PxyUp/Revact/tree/master)\n\nLightweight replacement of React + MobX + React Router (I hope in future Angular/Vue), which does not use the virtual DOM comparison, but the re-render of only the changed parts. Abandon the HTML template in favor of their interpretation in JS, give to us tree-shaking is components/templates and the speed of work increases since the time to parse the template is zero.\n\nThe library allows you to create quick and responsive interfaces using only JS / TS. With this you will get the minimum application size, speed and ease of development.\n\n**[OFFICIAL BENCHMARK RESULTS(old name faster-dom)](https://rawgit.com/krausest/js-framework-benchmark/master/webdriver-ts-results/table.html)**\n\n## Usage\n```sh\nyarn add revact@0.0.6-beta\n```\n\n```typescript\nimport { bootstrap, rValue } from 'revact';\n\nbootstrap('#app', () =\u003e {\n  const counter = rValue(0)\n    return {\n      tag: \"div\",\n      textValue: counter,\n      listeners: {\n        click: () =\u003e {\n          counter.value +=1\n        }\n      }\n    }\n  }\n)\n```\n\n**[📺 DEMO](https://pxyup.github.io/Revact/)**\n**[📺 DEMO at StackBlitz](https://stackblitz.com/edit/typescript-wgjbzf)**\n\n## Features\n1. Size - **4.1 kB** or **1.38 kB** gzipped.\n2. The library rewrites only changes and only when it is necessary.\n3. Performance - **going to guarantee 60 fps**.\n4. Names of imported functions and classes are not finally and *can be discussed*.\n5. There is **a tree-shaking for components and templates !!!**. \n6. **Router + Resolver** support!   \n\n## Performance\n\n**[CODE OF THE TESTS](https://github.com/PxyUp/js-framework-benchmark/pull/1/files)**\n\n**[OFFICIAL BENCHMARK RESULTS(old name faster-dom](https://rawgit.com/krausest/js-framework-benchmark/master/webdriver-ts-results/table.html)**\n\n## How it works\n\u003e Here will be good api\n\n### Motivation\n\n1. The performance of user interaction and interface speed.\n2. The large size of top frameworks (Angular / React / VueJs).\n3. Implements the component approach of creating interfaces with optimal speed, and the least number of a possible hacks.\n4. The ability of support a tree-shaking in a component's templates.\n5. Component should be splited by a file (template/reactive/listeners).\n\n### Current Status\n\n1. The support of events.\n2. Lifecycle hooks `onInit` and `onDestroy`.\n3. The support of inputs.\n4. `if` condition and `for` directive.\n5. Reactive classes and attributes bindings.\n6. Supports router\n\n### TODO (contributing is appreciated)\n1. Html transpiler (https://github.com/RyuuGan/html2FastDom)\n\n\u003e Help me please if you are interested.\n","funding_links":["https://github.com/sponsors/PxyUp"],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPxyUp%2FRevact","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPxyUp%2FRevact","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPxyUp%2FRevact/lists"}