{"id":13674625,"url":"https://github.com/Fortyseven/MediaHut","last_synced_at":"2025-04-28T14:31:42.304Z","repository":{"id":41037219,"uuid":"473451422","full_name":"Fortyseven/MediaHut","owner":"Fortyseven","description":"A truly single-file, no-database, drop-in PHP media gallery.","archived":true,"fork":false,"pushed_at":"2022-05-12T17:22:59.000Z","size":27,"stargazers_count":23,"open_issues_count":3,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-11T14:42:35.037Z","etag":null,"topics":["gallery","image-gallery","media-gallery","php","single-file"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Fortyseven.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}},"created_at":"2022-03-24T04:04:44.000Z","updated_at":"2024-11-02T04:40:02.000Z","dependencies_parsed_at":"2022-09-07T23:41:18.745Z","dependency_job_id":null,"html_url":"https://github.com/Fortyseven/MediaHut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fortyseven%2FMediaHut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fortyseven%2FMediaHut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fortyseven%2FMediaHut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fortyseven%2FMediaHut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fortyseven","download_url":"https://codeload.github.com/Fortyseven/MediaHut/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251330313,"owners_count":21572266,"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":["gallery","image-gallery","media-gallery","php","single-file"],"created_at":"2024-08-02T11:00:55.477Z","updated_at":"2025-04-28T14:31:41.964Z","avatar_url":"https://github.com/Fortyseven.png","language":"PHP","funding_links":[],"categories":["Software"],"sub_categories":["Photo and Video Galleries"],"readme":"# Media Hut\n\nWhen I went looking, in early 2022, the options for a truly single-file, no-database drop-in PHP media gallery were shockingly small.\n\nWell, there _was_ one really great one, but it kind of cheated by pulling in the guts from a CDN. If the CDN goes down, or the developer decides to take their ball and go home, there goes your gallery.\n\nEverything else wanted a database setup, or was just way, way outside the scope of what I wanted: just cleanly serve images, video, audio, pdf and text assets using the filesystem for organization.\n\nDon't overthink the capabilities of this: you won't find tags, comments, or much of anything outside of directories and filenames. I may add optional features, including markdown directory docs, and thumbnail caching, but that's the primary use case. Just show media.\n\n## Problems (or \"To Do\")\n\n- Clicking on a file just opens it up directly in the browser, instead of something nicer. Not exactly in a hurry to change that, but it's on my mind.\n\n- Persistent config data would be nice, but since it's currently just a handfulcouple at the moment, you'll survive.\n\n- This could probably all be implemented better -- the build process, most especially. `build.sh` is a real shit-show, but it works.\n\n- Themes?\n\n## Give It To Me\n\nI keep a fresh copy in the `/build` directory of the `master` build. Literally just copy/paste, edit the config block pointing to a media path (it defaults to `/media`), and off you go.\n\n## Other Features\n\n- If a directory has an `readme.md` file, it will be rendered below the directories and media.\n\n- Will create and serve basic thumbnail images from the .data directory.\n\n## What's it look like?\n\n\u003cimg src=\"https://i.imgur.com/bUtx4BG.png\" width=\"512\"/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFortyseven%2FMediaHut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFortyseven%2FMediaHut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFortyseven%2FMediaHut/lists"}