{"id":15156644,"url":"https://github.com/piterweb/reverui","last_synced_at":"2026-02-27T00:31:08.760Z","repository":{"id":257628389,"uuid":"858342293","full_name":"PiterWeb/ReverUI","owner":"PiterWeb","description":"\u003c 3kb React Alternative that works on top lf Vite","archived":false,"fork":false,"pushed_at":"2024-11-21T19:10:35.000Z","size":571,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-31T01:57:45.049Z","etag":null,"topics":["javascript","jsx","jsx-elements","jsx-renderer","jsx-syntax","preact","react","reverui","signals","typescript","ui-library"],"latest_commit_sha":null,"homepage":"https://reverui.vercel.app/","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/PiterWeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-09-16T18:20:08.000Z","updated_at":"2024-11-21T19:10:40.000Z","dependencies_parsed_at":"2024-09-17T20:56:36.948Z","dependency_job_id":"bfe7567d-f078-4d13-ab63-c65ca3f31801","html_url":"https://github.com/PiterWeb/ReverUI","commit_stats":null,"previous_names":["piterweb/reverui"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FReverUI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FReverUI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FReverUI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiterWeb%2FReverUI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiterWeb","download_url":"https://codeload.github.com/PiterWeb/ReverUI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237981913,"owners_count":19397155,"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":["javascript","jsx","jsx-elements","jsx-renderer","jsx-syntax","preact","react","reverui","signals","typescript","ui-library"],"created_at":"2024-09-26T19:40:25.673Z","updated_at":"2025-10-24T14:30:33.191Z","avatar_url":"https://github.com/PiterWeb.png","language":"TypeScript","readme":"# ReverUI\n\u003cimg src=\"./github/reverui-logo.webp\" alt=\"ReverUI Logo\" width=\"200px\" height=\"200px\"/\u003e\n\n![](https://badgen.net/bundlephobia/minzip/reverui)\n\n\u003cimg src=\"https://github.com/user-attachments/assets/88fd50a3-bb27-47c5-bdc7-618531ffc75c\" alt=\"reverui-preview\" width=\"500px\" height=\"500px\"/\u003e\n\nEffortless UI, Powerful Simplicity\n- 🔥 Similar to React\n- 🔑 TS Native 🔐 (But can be used with JS)\n- ❌ No Virtual DOM 📦\n- ❌ No compiler ⚙\n- 📦 [Rever Router](https://github.com/PiterWeb/ReverRouter) (Router for ReverUI)\n\n### Try out [now](https://stackblitz.com/github/PiterWeb/ViteReverUITemplate)\n\n### Current functionality:\n\n-   [x] React-like JSX\n-   [x] Good intellisense\n-   [x] useSignal ♻\n-   [x] useEffect (state changes \u0026 mounted)\n-   [x] Fragments (\u003c\u003e \u003c/\u003e)\n-   [x] Custom Hooks (must start with \"$use\")\n-   [x] Conditional Rendering (\u003c$Show when={condition}/\u003e) ❓\n-   [x] Loop Rendering (\u003c$For each={arr} element={() =\u003e {...}}\u003e) 📜\n-   [x] Event Handling (all events in lowercase) \u003ckbd\u003eClick\u003c/kbd\u003e \u003ckbd\u003eKey\u003c/kbd\u003e ...\n-   [x] Compatible with Vite Plugins (TailwindCSS, ...) ✨\n-   [x] Reusable Components (\u003c$Component/\u003e) 📦\n-   [x] Smart Re-rendering 🧠\n\n**The project is built on top of Vite**\n\nThis are the features that Vite provides:\n\n-   JSX Parser (Configurable)\n-   Typescript config\n-   Bundler\n-   HMR (Hot Module Replacement)\n-   Support for CSS Preprocessors\n-   Transpiler\n\n### Try it yourself:\n\nThere is a prepared [Vite template](https://github.com/PiterWeb/ViteReverUITemplate) ready to use that includes examples \u0026 TailwindCSS configured by default\n\n#### Steps:\n\n-   Clone the repository: `git clone https://github.com/PiterWeb/ViteReverUITemplate.git`\n-   Open the folder \u0026 install the dependencies: `npm install`\n-   Run the development enviroment: `npm run dev`\n\n#### More Examples:\n\n-   $useSignal:\n\n    ```tsx\n    import { $useSignal } from \"reverui\";\n\n    export default function StateFullApp() {\n    \tconst mySignal = $useSignal(\"initValue\");\n\n    \treturn \u003cdiv\u003e...\u003c/div\u003e;\n    }\n    ```\n\n-   $useEffect:\n\n    ```tsx\n    import { $useEffect, $useSignal } from \"reverui\";\n\n    export default function StateFullApp() {\n    \t$useEffect(() =\u003e {\n    \t\tconsole.log(\"Mounted\");\n    \t});\n\n    \tconst counter = $useSignal(0);\n\n    \t$useEffect(() =\u003e {\n    \t\tconsole.log(\"Counter value changed to \" + counter.value);\n    \t}, [counter]);\n\n    \treturn \u003cdiv\u003e...\u003c/div\u003e;\n    }\n    ```\n\n-   Example Counter Component:\n\n    ```tsx\n    import { $useSignal, $useEffect } from \"reverui\";\n\n    export default function StateFullApp() {\n    \t// UseEffect with no dependencies before $useSignal will be called only on mount\n    \t$useEffect(() =\u003e {\n    \t\tconsole.log(\"Mounted\");\n    \t});\n\n    \tconst counter = $useSignal(0);\n    \t// const signal = $useSignal(initialValue);\n\n    \t// $useEffect with dependencies will be called only when the dependencies change\n    \t$useEffect(() =\u003e {\n    \t\tconsole.log(\"Counter value changed to \" + counter.value);\n    \t}, [counter]);\n\n    \treturn (\n    \t\t\u003cdiv\u003e\n    \t\t\t\u003ch1\u003eStateful Component\u003c/h1\u003e\n    \t\t\t\u003cp\u003e\n                    Counter: \n                    \u003cShow when={counter.value === 0} element={() =\u003e \u003cspan\u003e\"You didn't click\"\u003c/span\u003e} /\u003e\n                    \u003cShow when={counter.value !== 0} element{() =\u003e \u003cspan\u003ecounter.value\u003c/span\u003e} /\u003e\n    \t\t\t\u003c/p\u003e\n    \t\t\t\u003cbutton onclick={() =\u003e counter.value++}\u003eIncrement\u003c/button\u003e\n    \t\t\u003c/div\u003e\n    \t);\n    }\n    ```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiterweb%2Freverui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiterweb%2Freverui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiterweb%2Freverui/lists"}