pronounced “jeekson” (/ˈdʒiːksən/
)
JSXon is an experimental project to serve UI as JSON. You write JSX and the JSXon server will serve it as JSON. So you can get the UI from the server and render it on the client side using native components.
𝕏 (Twitter) made a framework named Jetfuel that “makes it lightning fast to build new features across all clients [natively]”. I wanted to recreate it.
→ https://x.com/AqueelMiq/status/1822364223466623117
In the example/
directory, you can see a simple example of how JSXon works.
In the example/pages/
directory, you can see the JSX files that are served as JSON. The JSXon server will serve these JSX files as JSON. The path to get the JSON is the same as the path to the JSX file.
In the example/android/
directory, you can see an Android app that fetches the JSON from the JSXon server and renders it using native components.
To see it in action:
-
Run the JSXon server:
cd example npx tsx ../src/cli/cli.ts ./pages
-
Run the Android app in an emulator or on a device.