{"id":25595502,"url":"https://github.com/polywrap/wrapscan-registry","last_synced_at":"2026-06-19T08:31:39.090Z","repository":{"id":177872334,"uuid":"659196296","full_name":"polywrap/wrapscan-registry","owner":"polywrap","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-20T15:43:43.000Z","size":406,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-21T11:45:27.183Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/polywrap.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,"publiccode":null,"codemeta":null}},"created_at":"2023-06-27T10:23:40.000Z","updated_at":"2023-09-07T01:09:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"4eeb5574-fb6e-4b60-97b6-bdc6edb2f4a9","html_url":"https://github.com/polywrap/wrapscan-registry","commit_stats":null,"previous_names":["polywrap/wrapscan-registry"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/polywrap/wrapscan-registry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fwrapscan-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fwrapscan-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fwrapscan-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fwrapscan-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polywrap","download_url":"https://codeload.github.com/polywrap/wrapscan-registry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polywrap%2Fwrapscan-registry/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34523982,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":"2025-02-21T11:29:32.040Z","updated_at":"2026-06-19T08:31:39.083Z","avatar_url":"https://github.com/polywrap.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wrapscan Registry\n\n## Gateway\n\nWrapscan Registry is a package registry for `wraps` (composable wasm modules).\nThe primary function of the registry is to facilitate the publishing of URIs, acting as the go-to source from where these wraps can be downloaded.\n\n### Routes: \n- `GET /` - Home: get version of the registry\n- `GET /r/{user}/{package_and_version}` - Get the latest version of the wrap\n  - Returns: \n    - Body `{ name: \"0.1.0\", uri: \"wrap://...\", ... }`\n- `GET /v/{user}/{package}` - Get package info\n  - Returns: \n    - Body `{ id: \"user_name/package_name\", name: \"package_name\", ... }`\n- `GET /r/{user}/{package_and_version}/wrap.info` - Get the published URI for the wrap\n  - Returns: \n    - Header `x-wrap-uri: wrap://...`\n    - Status: 200\n- `POST /r/{user}/{package_and_version}` - Publish a URI for the wrap\n  - Header: `Authorization: Bearer {base64 encoded API key}`\n  - Body: `{ uri: \"wrap://...\" }`\n\n### How to run\n- nvm use\n- `yarn db` to start the db\n- `yarn dev` to start the server\n- `yarn test` to run the tests\n\nYou can also use the cargo commands directly in the gateway_service crate:\n- `cargo run -F local` to start the server\n- `cargo test` to run the tests\n\nAll of the yarn commands run both for the feature flag `local` and without it.\n\nWe use `#[cfg(feature = \"local\")]` to switch between local and production code.\nTo run locally the feature flag `local` must be set. This will use a local database and server.\nTo get your editor working with the local flag, temporarily edit Cargo.toml and add the following:\n```\n[features]\ndefault = [\"local\"]\n```\n\n### Getting started with the codebase\n\n- `rust/gateway_service` contains the gateway service crate\n\n#### Main files and directories\n- `src/main.rs` is the entrypoint for the server\n- `src/setup_routes` contains the server initialization and route registration\n- `src/routes` contains the route handlers\n- `src/functions` contains the raw functions the service supports (1:1 mapping to routes)\n- `src/constants` contains constants used throughout the service\n- `src/models` contains the models used throughout the service\n\n#### Database\n- `src/db` contains the database code\n- `src/db/local_db.rs` contains setup for the local database, it only runs when the `local` feature flag is set\n- `src/db/dynamodb.rs` contains DynamoDbClient and PackageRepository implementations for the production database\n\n### Debugging\n- `src/debugging.rs` contains debugging utilities\n- To help with debugging locally, two macros are available (note they only work when the `local` feature flag is set):\n  - `debug!` - is a wrapper around `dbg!`.\n    - It prints the file and line number of the debug statement as well as the value of the expression passed.\n  - `debug_println!` - prints to stdout","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolywrap%2Fwrapscan-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolywrap%2Fwrapscan-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolywrap%2Fwrapscan-registry/lists"}