{"id":13740556,"url":"https://github.com/rackt-org/rackt","last_synced_at":"2026-01-12T02:38:56.506Z","repository":{"id":45005741,"uuid":"381004940","full_name":"rackt-org/rackt","owner":"rackt-org","description":"An ultrasmall (~70 loc) React wrapper written in RacketScript","archived":false,"fork":false,"pushed_at":"2025-04-02T18:06:43.000Z","size":63,"stargazers_count":59,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T19:23:21.008Z","etag":null,"topics":["javascript","racket","racketscript","react"],"latest_commit_sha":null,"homepage":"https://rackt-org.github.io/","language":"Racket","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/rackt-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-06-28T11:19:39.000Z","updated_at":"2025-04-02T18:06:47.000Z","dependencies_parsed_at":"2024-11-15T10:33:09.413Z","dependency_job_id":"28fb6e75-1340-4163-b4cb-bb5d6c70baea","html_url":"https://github.com/rackt-org/rackt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rackt-org%2Frackt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rackt-org%2Frackt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rackt-org%2Frackt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rackt-org%2Frackt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rackt-org","download_url":"https://codeload.github.com/rackt-org/rackt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253144832,"owners_count":21861129,"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","racket","racketscript","react"],"created_at":"2024-08-03T04:00:49.650Z","updated_at":"2026-01-12T02:38:56.500Z","avatar_url":"https://github.com/rackt-org.png","language":"Racket","readme":"\u003cimg src=\"logo.svg\" align=\"right\" height=\"110\" /\u003e\n\n# [Rackt](https://rackt-org.github.io) \u0026middot; [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/rackt-org/rackt/blob/master/LICENSE)\n\n\u003e An ultra small (~70 loc) [React](https://github.com/facebook/react) wrapper written in [RacketScript](https://github.com/racketscript/racketscript)\n\nRackt allows you to develop full-featured React web apps in RacketScript. You can use all React compatible libraries with it as well.\n\n## Key features\n\n- 🪶 **Ultra small**. Rackt is a pretty thin wrapper for React. Just consider you use React but with RacketScript.\n- ⚡ **Super lightweight**. Compiled code takes only 6 Kb ungzipped.\n- 🔌 **Easy to use API**. All transformations between JavaScript and RacketScript primitives happen under the hood. You can focus on writing code.\n- ✨ **Modern**. It has first-class support of functional components and hooks.\n\nHere you can see an example of a pretty simple Rackt-component:\n\n```racket\n(define (counter props ..)\n    (define-values (counter set-counter) (use-state 0))\n\n    (\u003cel \"div\"\n        (\u003cel \"button\"\n            #:props ($/obj [ className \"button\" ]\n                   [ type \"button\" ]\n                   [onClick (lambda (_) (set-counter (- counter 1)))])\n            \"- 1\")\n\n        (\u003cel \"span\" #:props ($/obj [ className \"counter\" ]) counter)\n\n        (\u003cel \"button\"\n            #:props ($/obj [ className \"button\" ]\n                   [ type \"button\" ]\n                   [onClick (lambda (_) (set-counter (+ counter 1)))])\n            \"+ 1\")))\n\n(render (\u003cel counter) \"root\")\n```\n\n`\u003cel` is just a simple wrapper for `React.createElement`. It has the same API but with a little bit different syntax:\n\n```racket\n(define create-element \n    (lambda (component #:props [props null] . children)\n\n    ...\n```\n\nAs you can see it takes `component`, optional `props` and any amount of `children`.\n\nFor other functions, you can see their implementation right [here](https://github.com/rackt-org/rackt/blob/master/main.rkt#L23-L48) and use React documentation for all of them.\n\nYou can find working examples [on the Rackt's main page](https://rackt-org.github.io/).\n\n## Installation\n\nIt's unpublished in [the registry](https://pkgs.racket-lang.org/) for now, so to install the library you should clone the repo and install it manually:\n\n```bash\ngit clone git@github.com:rackt-org/rackt.git\ncd ./rackt\nraco pkg install\n```\n","funding_links":[],"categories":["Web Frameworks"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frackt-org%2Frackt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frackt-org%2Frackt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frackt-org%2Frackt/lists"}