{"id":13687559,"url":"https://github.com/snoyberg/file-embed","last_synced_at":"2025-09-07T02:41:02.022Z","repository":{"id":619731,"uuid":"258947","full_name":"snoyberg/file-embed","owner":"snoyberg","description":"Use Template Haskell to embed file contents directly.","archived":false,"fork":false,"pushed_at":"2025-02-24T08:47:41.000Z","size":96,"stargazers_count":98,"open_issues_count":8,"forks_count":28,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-07T23:31:47.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/snoyberg.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","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":"2009-07-23T18:55:38.000Z","updated_at":"2025-07-01T16:44:57.000Z","dependencies_parsed_at":"2024-11-06T00:04:21.413Z","dependency_job_id":"15433e07-99b1-4437-93b8-9190e7442745","html_url":"https://github.com/snoyberg/file-embed","commit_stats":{"total_commits":96,"total_committers":20,"mean_commits":4.8,"dds":0.375,"last_synced_commit":"b8467613a76bf0ca8edeb5c84e46c0fc785e350b"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"purl":"pkg:github/snoyberg/file-embed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snoyberg%2Ffile-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snoyberg%2Ffile-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snoyberg%2Ffile-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snoyberg%2Ffile-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snoyberg","download_url":"https://codeload.github.com/snoyberg/file-embed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snoyberg%2Ffile-embed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273989156,"owners_count":25203214,"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-09-07T02:00:09.463Z","response_time":67,"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":[],"created_at":"2024-08-02T15:00:56.579Z","updated_at":"2025-09-07T02:41:02.000Z","avatar_url":"https://github.com/snoyberg.png","language":"Haskell","readme":"# file-embed ![Hackage](https://img.shields.io/hackage/v/file-embed.svg) ![Hackage-Deps](https://img.shields.io/hackage-deps/v/file-embed.svg) ![Tests](https://github.com/snoyberg/file-embed/workflows/Tests/badge.svg)\n\nEmbed arbitrary files like JSON or plain text into your Haskell code as if they were written inside Haskell.\n\nNote: This library uses Template Haskell for the embedding.\n\n## Quickstart\n\nAdd [the latest version](https://hackage.haskell.org/package/file-embed) of `file-embed` to your\npackage description `\u003cpackage\u003e.cabal` or Stack `package.yaml` file.\n\nGiven the folder structure\n\n```shell\n$ tree\n.\n└── myapp\n│   ├── app\n│   │   └── Main.hs\n│   ├── embedded.json\n│   └── myapp.cabal\n└── cabal.project\n```\n\nyou can embed a file as follows:\n\n```haskell\n-- file: Main.hs\n{-# LANGUAGE TemplateHaskell #-}\n\nimport qualified Data.ByteString as BS\nimport Data.FileEmbed (embedFileRelative)\n\nmyFile :: BS.ByteString\nmyFile = $(embedFileRelative \"embedded.json\")\n```\n\nThe path to `embedFileRelative` is relative to the package root; the folder where the `\u003cpackage\u003e.cabal` file is.\nTake a look at the [Hackage documentation](https://hackage.haskell.org/package/file-embed/docs/Data-FileEmbed.html)\nfor more examples and variations.\n","funding_links":[],"categories":["Haskell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnoyberg%2Ffile-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnoyberg%2Ffile-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnoyberg%2Ffile-embed/lists"}