{"id":29703463,"url":"https://github.com/thedumbtechguy/stimulus_uploader","last_synced_at":"2025-07-23T13:39:56.111Z","repository":{"id":268468472,"uuid":"904456834","full_name":"thedumbtechguy/stimulus_uploader","owner":"thedumbtechguy","description":"A minimal Stimulus file upload component built live on stream, inspired by Ryan Florence's React uploader.","archived":false,"fork":false,"pushed_at":"2024-12-16T23:39:01.000Z","size":59,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-17T00:50:07.688Z","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/thedumbtechguy.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":"2024-12-16T23:35:22.000Z","updated_at":"2024-12-16T23:39:05.000Z","dependencies_parsed_at":"2024-12-17T01:01:24.137Z","dependency_job_id":null,"html_url":"https://github.com/thedumbtechguy/stimulus_uploader","commit_stats":null,"previous_names":["thedumbtechguy/stimulus_uploader"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thedumbtechguy/stimulus_uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2Fstimulus_uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2Fstimulus_uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2Fstimulus_uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2Fstimulus_uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thedumbtechguy","download_url":"https://codeload.github.com/thedumbtechguy/stimulus_uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thedumbtechguy%2Fstimulus_uploader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266689850,"owners_count":23969146,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-07-23T13:39:54.332Z","updated_at":"2025-07-23T13:39:56.109Z","avatar_url":"https://github.com/thedumbtechguy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stimulus File Uploader\n\nA file upload component reimplemented using Stimulus, inspired by [Ryan Florence's React uploader](https://x.com/ryanflorence/status/1867399513352417547).\n\n## Overview\n\nThis project provides a minimal, clean file upload interface using Stimulus controllers, demonstrating a pure JavaScript approach to file upload interactions.\n\n## Prerequisites\n\n- Ruby 3.3.5\n- Node.js 20.17.0\n- Yarn or npm\n\n## Setup\n\nInstall dependencies\n   ```bash\n   yarn install   # or npm install\n   bundle install\n   ```\n\nStart the development server\n   ```bash\n   bin/dev\n   ```\n\n## Features\n\n- Stimulus-powered file upload interface\n- Simulated upload process with local timer\n- Lightweight and minimal implementation\n\n## Current Limitations\n\n- Upload functionality is currently mocked\n- No actual file transmission implemented\n- Intended as a demonstration/learning project\n\n## Project Structure\n\n- `app/javascript/controllers/upload_container_controller.js`: Manages overall upload container behavior\n- `app/javascript/controllers/upload_element_controller.js`: Handles individual upload element interactions\n\n## Future Improvements\n\n- Implement actual file upload mechanism\n- Add progress tracking\n- Enhance error handling\n\n## Livestream Creation\n\nThis project was developed live on YouTube during a coding livestream. Watch the full process:\n\n- **Livestream:** [Building a Stimulus File Uploader](https://www.youtube.com/watch?v=eii87p_Dt_I)\n\n## License\n\nMIT License\n\nCopyright (c) 2024 Stefan Froelich\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n## Acknowledgments\n\n- Inspired by Ryan Florence's React uploader component\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedumbtechguy%2Fstimulus_uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedumbtechguy%2Fstimulus_uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedumbtechguy%2Fstimulus_uploader/lists"}