[Showoff Saturday] Built a single-file React crossword app deployed on S3 + CloudFront
retained text
<!-- SC_OFF --><div class="md"><p>CrossGoss is a weekly news crossword. Every clue is a real news story from the past week and a new puzzle goes up every Sunday.</p> <p>The frontend build approach is a bit unusual. It uses vite-plugin-singlefile to inline all JS and CSS into a single HTML file. The reason: the backend pipeline injects the puzzle data into a script tag inside that file before uploading it to S3. No runtime API calls, no separate assets, the whole app including the board data ships as one file.</p> <p>Stack is React, TypeScript, Vite 8, Zustand v5, MUI v9. State is all Zustand with no Context anywhere. CloudFront routing needed custom error responses mapping both 403 and 404 to index.html because S3 returns 403 for missing keys.</p> <p><a href="http://crossgoss.com">crossgoss.com</a> if you want to try it. Happy to chat about the architecture.</p> </div><!-- SC_ON -->   submitted by   <a href="https://www.reddit.com/user/WellSizedWez"> /u/WellSizedWez </a> <br /> <span><a href="https://www.reddit.com/r/webdev/comments/1tymguh/showoff_saturday_built_a_singlefile_react/">[link]</a></span>   <span><a href="https://www.reddit.com/r/webdev/comments/1tymguh/showoff_saturday_built_a_singlefile_react/">[comments]</a></span>
document fetched 2026-06-07 08:48