{"id":21719958,"url":"https://github.com/ext/datapack","last_synced_at":"2026-05-18T17:38:55.368Z","repository":{"id":3394005,"uuid":"4443074","full_name":"ext/datapack","owner":"ext","description":"Compress and store data inside executable","archived":false,"fork":false,"pushed_at":"2016-07-21T22:47:23.000Z","size":72,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-26T01:45:25.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"TYPO3Fluid/Fluid","license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ext.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","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":"2012-05-25T08:29:59.000Z","updated_at":"2019-03-11T05:28:59.000Z","dependencies_parsed_at":"2022-09-06T08:01:41.708Z","dependency_job_id":null,"html_url":"https://github.com/ext/datapack","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ext%2Fdatapack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ext%2Fdatapack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ext%2Fdatapack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ext%2Fdatapack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ext","download_url":"https://codeload.github.com/ext/datapack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235619736,"owners_count":19019398,"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":"2024-11-26T01:45:50.155Z","updated_at":"2026-05-18T17:38:50.342Z","avatar_url":"https://github.com/ext.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple test of compressing and storing datafiles inside executable or a loadable binary blob.\n\n# Features\n\n* Packs datafiles directly into executable or a binary blob.\n* Compression using zlib.\n* Allows users to override files (must be explicitly enabled.)\n* API to access files in-memory (entire file is loaded into memory.)\n* Supports FILE* for reading/writing (data is streamed).\n* Load files either using a hardcoded handle from a header or using filename.\n\n# Usage\n\n1. Create ando/or edit datafiles\n2. `datapacker NAME:FILENAME..` to generate c-file.\n3. Build your app as usual and include generated c-file.\n4. Use `unpack` or `unpack_filename` to load the data into memory.\n   `unpack` uses structure directly.\n   `unpack_filename` uses a virtual filename to locate the struct.\n\n# Install\n\n1. ./configure\n2. make\n3. make install\n\n# Debian/Ubuntu\n\nFor apt-based distributions you can generate a `.deb` for easier installation:\n\n1. ./configure\n2. sudo make deb\n3. sudo dpkg -i datapack_*.deb\n\n# Using with automake\n\nSee Makefile.am for real example.\n\n    files.c: datapacker Makefile\n    \t$(AM_V_GEN)./datapacker -f ${top_srcdir}/datafiles -s ${top_srcdir} -d $(DEPDIR)/files.data -o files.c -e files.h\n    \n    -include ./$(DEPDIR)/files.data\n\nwhere `datafiles` is a list of files to pack.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fext%2Fdatapack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fext%2Fdatapack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fext%2Fdatapack/lists"}