{"id":16298988,"url":"https://github.com/unitoftime/packer","last_synced_at":"2025-08-26T19:04:44.131Z","repository":{"id":57546835,"uuid":"301227514","full_name":"unitoftime/packer","owner":"unitoftime","description":"Super basic sprite packing library","archived":false,"fork":false,"pushed_at":"2023-08-18T22:14:43.000Z","size":2344,"stargazers_count":16,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-19T17:41:04.539Z","etag":null,"topics":["go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/unitoftime.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":"2020-10-04T21:06:45.000Z","updated_at":"2025-08-05T14:17:43.000Z","dependencies_parsed_at":"2024-06-19T16:04:06.996Z","dependency_job_id":"3617c74e-033b-45c0-ad1d-ba7147da6c5a","html_url":"https://github.com/unitoftime/packer","commit_stats":null,"previous_names":["jstewart7/packer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/unitoftime/packer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitoftime%2Fpacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitoftime%2Fpacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitoftime%2Fpacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitoftime%2Fpacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unitoftime","download_url":"https://codeload.github.com/unitoftime/packer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unitoftime%2Fpacker/sbom","scorecard":{"id":539313,"data":{"date":"2025-08-11","repo":{"name":"github.com/unitoftime/packer","commit":"1f2c1b1e427592c96971223104c9b2fb40c2cafc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T07:48:46.723Z","repository_id":57546835,"created_at":"2025-08-20T07:48:46.723Z","updated_at":"2025-08-20T07:48:46.723Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272247350,"owners_count":24899544,"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-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":["go","golang"],"created_at":"2024-10-10T20:46:12.385Z","updated_at":"2025-08-26T19:04:44.077Z","avatar_url":"https://github.com/unitoftime.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Packer\nThis is a work in progress texture packing standalone. Right now the packing algorithm isn't very optimized in terms of speed, but probably finds a fairly well packed set of images.\n\n### Install\n```\ngo install github.com/unitoftime/packer/cmd/packer@latest\n```\nNote: the binary is held in `cmd/packer/` so the suffix `/...` is required to install the `packer` binary to your go path.\n### Usage\nBasic\n```\npacker --input sprites --output ./path/to/file\n```\n#### Flags\n```\n--input \u003cDirectory\u003e - The directory of the input folder\n--output \u003cFilename\u003e - The filename of the output json and png files\n--extrude \u003cValue\u003e - The amount to extrude each sprite\n--stats - If true, display statistics\n--size \u003cValue\u003e - The width and height of the packed atlas\n```\n\n#### Serialized Json\nThe JSON file created by the `packer` binary is of form `SerializedSpritesheet`. (See `packer.go` for reference):\n```\ntype SerializedRect struct {\n\tX,Y,W,H float64\n}\ntype SerializedPos struct {\n\tX,Y float64\n}\ntype SerializedDim struct {\n\tW,H float64\n}\n\ntype SerializedFrame struct {\n\tFrame SerializedRect\n\tRotated bool\n\tTrimmed bool\n\tSpriteSourceSize SerializedRect\n\tSourceSize SerializedDim\n\tPivot SerializedPos\n}\ntype SerializedSpritesheet struct {\n\tImageName string\n\tFrames map[string]SerializedFrame\n\tMeta map[string]interface{}\n}\n```\n\n### Example Output\nYou can go to the `packer/cmd/images/` and use the `generate.sh` script to generate some random images. Then you can rerun the test.\n\n![packed](https://user-images.githubusercontent.com/2606873/126796465-2203321e-729f-4811-85e3-8b8ee0661d4e.png)\n\n\n### Remaining Work\n* Create package to let developers dynamically pack images (ie not through command line)\n* Dynamically resize atlas image (rather than using a size flag)\n* Optimize\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitoftime%2Fpacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funitoftime%2Fpacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funitoftime%2Fpacker/lists"}