{"id":25733626,"url":"https://github.com/ustymukhman/bun-plugin-glsl","last_synced_at":"2025-08-21T19:18:55.216Z","repository":{"id":276345505,"uuid":"928366923","full_name":"UstymUkhman/bun-plugin-glsl","owner":"UstymUkhman","description":"🕸️ Import, inline (and compress) GLSL shader files 🔌","archived":false,"fork":false,"pushed_at":"2025-02-24T17:29:50.000Z","size":11,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T18:30:31.603Z","etag":null,"topics":["bun","bun-plugin","bunjs","glsl","glsl-shaders","plugin","shaders","threejs","webgl","webgl-shaders","webgpu","webgpu-shaders"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/bun-plugin-glsl","language":"TypeScript","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/UstymUkhman.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":"2025-02-06T14:18:57.000Z","updated_at":"2025-02-24T17:29:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"9726797d-1497-44d7-8cd8-89842ab13f3e","html_url":"https://github.com/UstymUkhman/bun-plugin-glsl","commit_stats":null,"previous_names":["ustymukhman/bun-plugin-glsl"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UstymUkhman%2Fbun-plugin-glsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UstymUkhman%2Fbun-plugin-glsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UstymUkhman%2Fbun-plugin-glsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UstymUkhman%2Fbun-plugin-glsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UstymUkhman","download_url":"https://codeload.github.com/UstymUkhman/bun-plugin-glsl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240790286,"owners_count":19858008,"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":["bun","bun-plugin","bunjs","glsl","glsl-shaders","plugin","shaders","threejs","webgl","webgl-shaders","webgpu","webgpu-shaders"],"created_at":"2025-02-26T04:22:16.450Z","updated_at":"2025-08-21T19:18:55.197Z","avatar_url":"https://github.com/UstymUkhman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bun Plugin GLSL\n\n\u003e Import, inline (and minify) GLSL/WGSL shader files\n\n![npm](https://img.shields.io/npm/dt/bun-plugin-glsl?style=flat-square)\n![GitHub package.json version](https://img.shields.io/github/package-json/v/UstymUkhman/bun-plugin-glsl?color=brightgreen\u0026style=flat-square)\n![GitHub](https://img.shields.io/github/license/UstymUkhman/bun-plugin-glsl?color=brightgreen\u0026style=flat-square)\n\n_Inspired by [vite-plugin-glsl](https://github.com/UstymUkhman/vite-plugin-glsl), compatible with [Babylon.js](https://www.babylonjs.com/), [three.js](https://threejs.org/) and [lygia](https://lygia.xyz/)._\n\n## Installation ##\n\n```bash\nbun add bun-plugin-glsl --dev\n```\n\n## Usage ##\n\n```js\nimport glsl from 'bun-plugin-glsl';\n\nBun.plugin(glsl());\n```\n\n### With TypeScript ###\n\nAdd extension declarations to your [`types`](https://www.typescriptlang.org/tsconfig#types) in `tsconfig.json`:\n\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\n      \"bun-plugin-glsl/ext\"\n    ]\n  }\n}\n```\n\nor as a [package dependency directive](https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html#-reference-types-) to your global types:\n\n```ts\n/// \u003creference types=\"bun-plugin-glsl/ext\" /\u003e\n```\n\n## Default Options ##\n\n```js\nglsl({\n  include: /\\.(glsl|wgsl|vert|frag|vs|fs)$/, // RegExp of file extensions to import\n  removeDuplicatedImports: false,            // Automatically remove an already imported chunk\n  warnDuplicatedImports: true,               // Warn if the same chunk was imported multiple times\n  defaultExtension: 'glsl',                  // Shader suffix to use when no extension is specified\n  importKeyword: '#include',                 // Keyword used to import shader chunks\n  minify: false,                             // Minify/optimize output shader code\n  watch: true,                               // Recompile shader on change\n  root: '/'                                  // Directory for root imports\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustymukhman%2Fbun-plugin-glsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fustymukhman%2Fbun-plugin-glsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fustymukhman%2Fbun-plugin-glsl/lists"}