{"id":15989392,"url":"https://github.com/brycerussell/inject-asset-prototype","last_synced_at":"2026-01-19T02:32:17.750Z","repository":{"id":226953979,"uuid":"770019585","full_name":"BryceRussell/inject-asset-prototype","owner":"BryceRussell","description":"Inject static assets and access bundled paths from inside an Astro integration","archived":false,"fork":false,"pushed_at":"2024-03-21T03:31:33.000Z","size":3573,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T22:28:10.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BryceRussell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-03-10T17:43:25.000Z","updated_at":"2024-03-21T03:21:52.000Z","dependencies_parsed_at":"2024-03-14T00:27:59.057Z","dependency_job_id":null,"html_url":"https://github.com/BryceRussell/inject-asset-prototype","commit_stats":null,"previous_names":["brycerussell/inject-asset-prototype"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BryceRussell/inject-asset-prototype","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Finject-asset-prototype","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Finject-asset-prototype/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Finject-asset-prototype/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Finject-asset-prototype/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BryceRussell","download_url":"https://codeload.github.com/BryceRussell/inject-asset-prototype/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BryceRussell%2Finject-asset-prototype/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28558230,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T00:46:33.223Z","status":"online","status_checked_at":"2026-01-19T02:00:08.049Z","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-10-08T04:42:27.596Z","updated_at":"2026-01-19T02:32:17.733Z","avatar_url":"https://github.com/BryceRussell.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prototypes for injecting static assets into Astro bundle\n\n**Basic Idea**\n\n```ts\n\"astro:config:setup\": (params) =\u003e {\n  // Should inject an asset into the build and return the path that it is available at client side\n  asset = injectAsset({\n    entrypoint: \"C:/.../styles.css\",\n  });\n},\n```\n\n### Why?\n\n- Inject static assets from anywhere\n- Include assets inside the Astro bundle\n- Access the bundled/hashed path of an asset inside an integration\n\n### Strategies\n\nExplore different strategies in the list below. Each strategy is a branch that includes explainations, limitations, examples, playground, etc\n\n- [Static Analysis](https://github.com/BryceRussell/inject-asset-prototype/tree/static-analysis)\n- [Getter Function](https://github.com/BryceRussell/inject-asset-prototype/tree/getter-function)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycerussell%2Finject-asset-prototype","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrycerussell%2Finject-asset-prototype","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycerussell%2Finject-asset-prototype/lists"}