{"id":28434866,"url":"https://github.com/stimulusreflex/stimulus-reflex-sandbox","last_synced_at":"2025-06-30T11:32:57.668Z","repository":{"id":45114116,"uuid":"363922158","full_name":"stimulusreflex/stimulus-reflex-sandbox","owner":"stimulusreflex","description":null,"archived":false,"fork":false,"pushed_at":"2022-01-07T12:27:57.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T19:49:34.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/stimulusreflex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-03T12:28:03.000Z","updated_at":"2022-01-07T14:37:15.000Z","dependencies_parsed_at":"2022-09-14T07:32:05.555Z","dependency_job_id":null,"html_url":"https://github.com/stimulusreflex/stimulus-reflex-sandbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stimulusreflex/stimulus-reflex-sandbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stimulusreflex%2Fstimulus-reflex-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stimulusreflex%2Fstimulus-reflex-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stimulusreflex%2Fstimulus-reflex-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stimulusreflex%2Fstimulus-reflex-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stimulusreflex","download_url":"https://codeload.github.com/stimulusreflex/stimulus-reflex-sandbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stimulusreflex%2Fstimulus-reflex-sandbox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262765749,"owners_count":23360968,"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":[],"created_at":"2025-06-05T19:41:33.933Z","updated_at":"2025-06-30T11:32:57.661Z","avatar_url":"https://github.com/stimulusreflex.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Logo](/srs.svg)\n\n    \n# StimulusReflex Sandbox\n\nStimulusReflex allows Rails developers to build reactive UIs without the need for SPAs like React. However, the server-side nature of Rails and SR has meant that - *until now* - it's been difficult to easily provide interactive examples that you can embed in a blog.\n\nEnter... the StimulusReflex Sandbox.\n\nSandbox apps are based on [sr mini](https://github.com/hopsoft/sr_mini), the single-file StimulusReflex-powered Rails app template. We gently oil and massage the sr_mini until it runs happily inside of a [Glitch](https://glitch.com) container. Glitch is similar to Codepen (or one of the many competitors) except that it also allows you to run a server-side VM, without any of the standard security concerns.\n\nPeople are free to try the demo, inspect the code behind it and \"remix\" their own projects based on it.\n\nYou can see some great examples of SR Sandbox apps on the [StimulusReflex Patterns](https://www.stimulusreflexpatterns.com/patterns/) site. \n\n## Demo\n\n👉 The main sandbox site is [here](https://stimulus-reflex-sandbox.glitch.me/), which you can \n[![Remix on Glitch](https://cdn.gomix.com/f3620a78-0ad3-4f81-a271-c8a4faa20f86%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/stimulus-reflex-sandbox)\n\n## Tech Stack\n\n- Ruby 3.0.1\n- Rails 6.1.4.4\n- *StimulusReflex* 3.5.0.pre8\n- *CableReady* 5.0.0.pre8\n- Redis 6.2.2\n- **NO** database\n\n#### Further Details\n- [Tab isolation mode](https://docs.stimulusreflex.com/hello-world/setup#tab-isolation) is **on**\n  \n## Usage\n\nYou can embed a StimulusReflex Sandbox app into a post on [dev.to](https://dev.to/) with a simple short-code:\n\n`{% glitch stimulus-reflex-sandbox app %}`\n\n## FAQ/Gotchas\n\n#### Help! My app is stuck in an install loop\n\nOccasionally, building the assets via snowpack will fail, so you'll have to open the Glitch terminal (bottom left under *Tools*):\n\n![Toolbar Screenshot](https://cdn.glitch.com/5d1b65f4-c468-4b36-bfe5-74a6315b9984%2FCleanShot%202021-05-09%20at%2014.11.00%402x.png?v=1620562298119)\n\nand run\n\n```bash\n$ rm -rf node_modules\n```\n\nYour container will restart, installing fresh node modules, and the app should start correctly.\n\n#### DB/Peristence/ActiveRecord\n\n**There is no database**, due to the minimal and ephemeral nature of Glitch apps. However, [nulldb](https://github.com/nulldb/nulldb) is included so any persistence calls to ActiveRecord won't blow up the demo.\n\nFeel free to emulate persistence using the `session` or Redis. If you feel adventurous, you can connect your sandbox to any external managed DB, though.\n\n  \n## Authors\n\n- [@julianrubisch](https://www.github.com/julianrubisch)\n- [@hopsoft](https://www.github.com/hopsoft)\n- [@leastbad](https://www.github.com/leastbad)\n\n  \n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstimulusreflex%2Fstimulus-reflex-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstimulusreflex%2Fstimulus-reflex-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstimulusreflex%2Fstimulus-reflex-sandbox/lists"}