{"id":37607761,"url":"https://github.com/offspot/imager-service","last_synced_at":"2026-01-16T10:13:58.308Z","repository":{"id":39801840,"uuid":"140012925","full_name":"offspot/imager-service","owner":"offspot","description":"Create Kiwix Hotspot images online","archived":false,"fork":false,"pushed_at":"2025-12-04T14:46:40.000Z","size":108747,"stargazers_count":19,"open_issues_count":77,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-12-06T18:49:26.268Z","etag":null,"topics":["kiwix","offline","raspberry-pi","sd-card","wikipedia"],"latest_commit_sha":null,"homepage":"https://imager.kiwix.org/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/offspot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"kiwix","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-07-06T17:26:03.000Z","updated_at":"2025-12-04T22:10:41.000Z","dependencies_parsed_at":"2023-10-16T20:59:16.523Z","dependency_job_id":"fe6e58d1-34a5-4c7b-be2f-01baf89a0185","html_url":"https://github.com/offspot/imager-service","commit_stats":{"total_commits":440,"total_committers":6,"mean_commits":73.33333333333333,"dds":0.1863636363636364,"last_synced_commit":"b6294327131d589b41183af0825d36f48dbdc645"},"previous_names":["kiwix/cardshop","offspot/imager-service"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/offspot/imager-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offspot%2Fimager-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offspot%2Fimager-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offspot%2Fimager-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offspot%2Fimager-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/offspot","download_url":"https://codeload.github.com/offspot/imager-service/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offspot%2Fimager-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478049,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T06:30:42.265Z","status":"ssl_error","status_checked_at":"2026-01-16T06:30:16.248Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["kiwix","offline","raspberry-pi","sd-card","wikipedia"],"created_at":"2026-01-16T10:13:58.227Z","updated_at":"2026-01-16T10:13:58.294Z","avatar_url":"https://github.com/offspot.png","language":"Python","funding_links":["https://github.com/sponsors/kiwix"],"categories":[],"sub_categories":[],"readme":"# Kiwix Imager Service\n\n[Kiwix Hotspot](https://www.kiwix.org/en/downloads/kiwix-hotspot/)\nImager is a solution for semi-automation of SD-cards creation using\na central scheduler, creator workers (to create image files),\ndownloader workers and writer workers (to write images onto real\nSD-cards).\n\n[![CodeFactor](https://www.codefactor.io/repository/github/offspot/imager-service/badge)](https://www.codefactor.io/repository/github/offspot/imager-service)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n## i18n\n\nAs manager and scheduler uses different stacks, while both depending on the same tools\nuses different management scripts\n\n### manager\n\n```sh\n./manage.py makemessages -l fr\ndjango-admin compilemessages\n```\n\n### scheduler\n\n```sh\npybabel -v extract -F src/babel.config -k _lz -k _ -k _l -o ./src/locale/messages.pot ./src\npybabel update -i src/locale/messages.pot -d src/locale\npybabel compile -d src/locale/\n```\n\n## Warehouse\n\n`warehouse`: A container on a machine with plenty of space (must be\nable to receive images created by all _creators_ and retain them until\ndownloaded by _downloaders_). It is an FTP server which authenticates\nthrough the scheduler.\n\n## Creator\n\n`creator`: A container fetching Tasks from scheduler, creating images\nand uploading them to the warehouse.\n\n## Downloader\n\n`downloader`: A container downloading images from the warehouse so it\ncan be written by a `writer` worker (shares credentials with writer –\nmust be on same computer).\n\n## Writer\n\n`writer`: A container writing images to SD-cards. Image files must be\npresent (downloaded by the `downloader` worker).\n\n## Writer Host (whost)\n\nA non-docker tool installed on the Writers' host to configure and\nmanage the workers:\n\n* SD-slots identification\n* Configuration for:\n    * network\n    * authentication\n    * SD-card writers (USB device to Name association)\n* Auto start of `downloader` and `writer` containers.\n\nMust be physically accessible, CPU doesn't matter, large space (256G\nper worker on host).\n\n## Manager\n\n`manager`: A container providing a UI to create orders and manage\nusers. Technically optional.\n\n## Scheduler\n\n* `mongo` MongoDB container to hold persistent data (`Users`, `Tokens`, `Orders`, `Tasks`, etc.)\n* `scheduler`: API providing CRUD for persistent Data and managing Authentication for all services.\n\n## Authentication\n\n* Users all have a `username`+`password` pair.\n* Scheduler offers Tokens for `username:password`.\n* Manager and workers identifies via Token to work the API.\n* Creator and Downloader identifies with Warehouse via a Token obtained from Scheduler.\n\nTokens are 2 fold:\n\n* Access token, 60mn TTL: needed to work the API.\n* Refresh token, 30d TTL: allows one to get new Access Token.\n* Credentials authentication returns both at once.\n\n## License\n\n[GPLv3](https://www.gnu.org/licenses/gpl-3.0) or later, see\n[LICENSE](LICENSE) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffspot%2Fimager-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffspot%2Fimager-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffspot%2Fimager-service/lists"}