{"id":19427387,"url":"https://github.com/codesandbox/sandpack-cdn","last_synced_at":"2025-04-24T17:31:30.605Z","repository":{"id":60918072,"uuid":"432212155","full_name":"codesandbox/sandpack-cdn","owner":"codesandbox","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-31T16:47:22.000Z","size":659,"stargazers_count":32,"open_issues_count":1,"forks_count":9,"subscribers_count":3,"default_branch":"next","last_synced_at":"2025-04-24T04:37:05.882Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codesandbox.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":"2021-11-26T14:49:06.000Z","updated_at":"2025-04-04T03:56:11.000Z","dependencies_parsed_at":"2023-01-23T17:16:35.308Z","dependency_job_id":"1746cae7-8d55-4d11-84e3-1ebcc50341a5","html_url":"https://github.com/codesandbox/sandpack-cdn","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandbox%2Fsandpack-cdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandbox%2Fsandpack-cdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandbox%2Fsandpack-cdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codesandbox%2Fsandpack-cdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codesandbox","download_url":"https://codeload.github.com/codesandbox/sandpack-cdn/tar.gz/refs/heads/next","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250674346,"owners_count":21469204,"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":[],"created_at":"2024-11-10T14:11:34.262Z","updated_at":"2025-04-24T17:31:30.262Z","avatar_url":"https://github.com/codesandbox.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sandpack NPM CDN\n\nThe sandpack cdn is used to serve npm modules in a browser-optimized way, by having the entire npm registry on disk and query it, download the needed files from npm and serve those in a msgpack bundle to the client. Besides this it always add a really fast resolver that uses the in-memory/on-disk npm registry.\n\n## Running the project\n\nRun the following command: `cargo run`\n\n## Environment variables\n\n### Port\n\nDefine a custom port to start the server on\n\nExample: `PORT=1234` - Defaults to 8080\n\n### Database\n\nTo run this locally you need to define the location of the rocksdb database, which is where the sandpack cdn stores all the data it needs.\n\nExample: `NPM_ROCKS_DB=/persisted/npm_rocks_db`\n\n### Tracing\n\n- OpenTelemetry exporter endpoint: `OTEL_EXPORTER_OTLP_ENDPOINT`\n- OpenTelemetry metadata headers, prefix with `OTEL_METADATA_`, for example for honeycomb you add: `OTEL_METADATA_X_HONEYCOMB_TEAM=\u003cAPI_TOKEN\u003e`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesandbox%2Fsandpack-cdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesandbox%2Fsandpack-cdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesandbox%2Fsandpack-cdn/lists"}