{"id":13789892,"url":"https://github.com/gusb3ll/elysia-compression","last_synced_at":"2026-01-18T06:26:15.686Z","repository":{"id":179556900,"uuid":"663702771","full_name":"Gusb3ll/elysia-compression","owner":"Gusb3ll","description":"Compression plugin for elysia","archived":false,"fork":false,"pushed_at":"2023-11-26T04:33:37.000Z","size":131,"stargazers_count":24,"open_issues_count":7,"forks_count":12,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-25T03:19:24.129Z","etag":null,"topics":["bun","compression","elysia"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/elysia-compression","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/Gusb3ll.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}},"created_at":"2023-07-07T23:03:55.000Z","updated_at":"2025-02-04T15:19:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee00954e-6070-427d-bbbc-de52c31e883c","html_url":"https://github.com/Gusb3ll/elysia-compression","commit_stats":null,"previous_names":["gusb3ll/elysia-compression"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gusb3ll%2Felysia-compression","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gusb3ll%2Felysia-compression/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gusb3ll%2Felysia-compression/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gusb3ll%2Felysia-compression/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gusb3ll","download_url":"https://codeload.github.com/Gusb3ll/elysia-compression/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253695078,"owners_count":21948808,"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","compression","elysia"],"created_at":"2024-08-03T22:00:34.209Z","updated_at":"2026-01-18T06:26:15.667Z","avatar_url":"https://github.com/Gusb3ll.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# elysia-compression\n\nCompression plugin for [elysia](https://github.com/elysiajs/elysia)\n\n## Installation\n\n```bash\nbun add elysia-compression\n```\n\n## Example\n\n```typescript\nimport { Elysia } from 'elysia'\nimport { compression } from 'elysia-compression'\n\nconst app = new Elysia().use(compression()).listen(8080)\n```\n\n## Config\n\n### type\n\n@default `gzip`\n\nThe type of compression to use. Can be one of the following:\n\n- `gzip`\n- `deflate`\n\n### options\n\n@default `{}`\n\nOptions passed to the compression library.\n\nRefer to the bun zlib options [documentation](https://bun.sh/docs/api/utils#bun-gzipsync) for more details.\n\n### encoding\n\n@default `utf-8`\n\nThe encoding of the response body that is being compressed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusb3ll%2Felysia-compression","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgusb3ll%2Felysia-compression","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgusb3ll%2Felysia-compression/lists"}