Title: ReactPy static site generation (SSG) · Issue #1272 · reactive-python/reactpy · GitHub
Open Graph Title: ReactPy static site generation (SSG) · Issue #1272 · reactive-python/reactpy
X Title: ReactPy static site generation (SSG) · Issue #1272 · reactive-python/reactpy
Description: Current Situation Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s). Proposed Actions Create some sort of reactpy CLI (or maybe a Bun plugin?) that all...
Open Graph Description: Current Situation Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s). Proposed Actions Create some sort of react...
X Description: Current Situation Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s). Proposed Actions Create some sort of react...
Opengraph URL: https://github.com/reactive-python/reactpy/issues/1272
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ReactPy static site generation (SSG)","articleBody":"### Current Situation\n\nNow that we have [client side components](https://github.com/reactive-python/reactpy/pull/1269), it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s).\n\n### Proposed Actions\n\nCreate some sort of `reactpy` CLI (or maybe a `Bun` plugin?) that allows ReactPy to be compiled down into flatpage(s).\n\nThis function should compile client-side components `*.py` files into equivalently named `*.html` files. Alternatively, if the user provides a glob pattern with `*.html`, these templates are assumed to be Jinja compatible.\n\nFor example, a CLI command might looks like this:\n\n```bash\nreactpy ssg \"glob_pattern/to/my_components_*.py\" --outdir \"dist/\" --base_url \"example/\"\n```\n\nWe should also have a Python API equivalent for people wanting to perform SSG via scripts. It might look like this:\n\n```python\nfrom reactpy.pyscript import compile_static_site\n\ncompile_static_site( \"glob_pattern/to/my_components_*.py\", outdir=\"dist/\")\n```","author":{"url":"https://github.com/Archmonger","@type":"Person","name":"Archmonger"},"datePublished":"2025-02-11T00:13:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1272/reactpy/issues/1272"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:db6fcb1e-fdb9-57b7-0ccb-80928268e3de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B668:14AB50:B1FD6B2:E6C0BD0:69767832 |
| html-safe-nonce | 5c2049f35eb2a74e8dba6be1f4224df897e897e1c6fe634abe1f9d0df5e614fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjY4OjE0QUI1MDpCMUZENkIyOkU2QzBCRDA6Njk3Njc4MzIiLCJ2aXNpdG9yX2lkIjoiNzE5NzExOTY5NjU5NDE3MTk1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1fab57b593e324978ca25c048c5feeabbcb19f48c0114c0f610002a7c716bb8e |
| hovercard-subject-tag | issue:2843998526 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/reactive-python/reactpy/1272/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab2ea354480b5fc0bc88c6d69737b2e22b118cfb3239966a0be66ca85edc00fa/reactive-python/reactpy/issues/1272 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab2ea354480b5fc0bc88c6d69737b2e22b118cfb3239966a0be66ca85edc00fa/reactive-python/reactpy/issues/1272 |
| og:image:alt | Current Situation Now that we have client side components, it is now technologically possible for ReactPy to be compiled into a static site / flatpage(s). Proposed Actions Create some sort of react... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Archmonger |
| hostname | github.com |
| expected-hostname | github.com |
| None | 032152924a283b83384255d9489e7b93b54ba01da8d380b05ecd3953b3212411 |
| turbo-cache-control | no-preview |
| go-import | github.com/reactive-python/reactpy git https://github.com/reactive-python/reactpy.git |
| octolytics-dimension-user_id | 106191177 |
| octolytics-dimension-user_login | reactive-python |
| octolytics-dimension-repository_id | 171410703 |
| octolytics-dimension-repository_nwo | reactive-python/reactpy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 171410703 |
| octolytics-dimension-repository_network_root_nwo | reactive-python/reactpy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5b577f6be6482e336e3c30e8daefa30144947b17 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width