{"id":15046009,"url":"https://github.com/denoland/eszip","last_synced_at":"2025-05-14T23:05:56.757Z","repository":{"id":37080967,"uuid":"338917074","full_name":"denoland/eszip","owner":"denoland","description":"A compact file format to losslessly serialize an ECMAScript module graph into a single file","archived":false,"fork":false,"pushed_at":"2025-05-13T18:16:12.000Z","size":78816,"stargazers_count":259,"open_issues_count":10,"forks_count":30,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-13T19:15:02.236Z","etag":null,"topics":["deno","esm","javascript","rust","typescript"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/eszip","language":"Rust","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/denoland.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,"zenodo":null}},"created_at":"2021-02-14T22:40:09.000Z","updated_at":"2025-05-13T18:11:39.000Z","dependencies_parsed_at":"2022-08-08T19:01:50.289Z","dependency_job_id":"224b01b3-a079-4522-9dc9-4e0f30c03f26","html_url":"https://github.com/denoland/eszip","commit_stats":{"total_commits":266,"total_committers":21,"mean_commits":"12.666666666666666","dds":0.7180451127819549,"last_synced_commit":"20505458608d096e1cf437151d5cf88865fe3451"},"previous_names":[],"tags_count":175,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Feszip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Feszip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Feszip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Feszip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denoland","download_url":"https://codeload.github.com/denoland/eszip/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254243358,"owners_count":22038046,"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":["deno","esm","javascript","rust","typescript"],"created_at":"2024-09-24T20:52:35.051Z","updated_at":"2025-05-14T23:05:51.734Z","avatar_url":"https://github.com/denoland.png","language":"Rust","readme":"# eszip\n\nThe eszip format lets you losslessly serialize an ECMAScript module graph\n(represented by [`deno_graph::ModuleGraph`][module_graph]) into a single compact\nfile.\n\nThe eszip file format is designed to be compact and streaming capable. This\nallows for efficient loading of large ECMAScript module graphs.\n\nhttps://eszip-viewer.deno.dev/ is a tool for inspecting eszip files.\n\n[module_graph]: https://docs.rs/deno_graph/latest/deno_graph/struct.ModuleGraph.html\n\n## Examples\n\n### Creating an eszip\n\n```shell\ncargo run --example eszip_builder https://deno.land/std/http/file_server.ts file_server.eszip2\n```\n\n### Viewing the contents of an eszip\n\n```shell\ncargo run --example eszip_viewer file_server.eszip2\n```\n\n### Loading the eszip into V8\n\n```shell\ncargo run --example eszip_load file_server.eszip2 https://deno.land/std/http/file_server.ts\n```\n\n## File format\n\nThe file format looks as follows:\n\n```\nEszip:\n| Magic (8) | Header size (4) | Header (n) | Header hash (32) | Sources size (4) | Sources (n) | SourceMaps size (4) | SourceMaps (n) |\n\nHeader:\n( | Specifier size (4) | Specifier (n) | Entry type (1) | Entry (n) | )*\n\nEntry (redirect):\n| Specifier size (4) | Specifier (n) |\n\nEntry (module):\n| Source offset (4) | Source size (4) | SourceMap offset (4) | SourceMap size (4) | Module type (1) |\n\nSources:\n( | Source (n) | Hash (32) | )*\n\nSourceMaps:\n( | SourceMap (n) | Hash (32) | )*\n```\n\nThere is one optimization for empty source / source map entries. If both the\noffset and size are set to 0, no entry and no hash is present in the data\nsections for that module.\n\n## Development\n\nWhen opening a PR make sure to rebuild Wasm by running:\n\n```\ndeno task build\n```\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenoland%2Feszip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenoland%2Feszip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenoland%2Feszip/lists"}