{"id":13485156,"url":"https://github.com/denoland/deno_registry2","last_synced_at":"2025-10-19T21:32:16.949Z","repository":{"id":37416371,"uuid":"275603876","full_name":"denoland/deno_registry2","owner":"denoland","description":"The backend for the deno.land/x service","archived":false,"fork":false,"pushed_at":"2024-02-28T17:56:11.000Z","size":2063,"stargazers_count":92,"open_issues_count":27,"forks_count":14,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-01-30T06:11:13.620Z","etag":null,"topics":["deno"],"latest_commit_sha":null,"homepage":"https://deno.land/x","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/denoland.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":"2020-06-28T14:38:21.000Z","updated_at":"2024-05-20T14:45:40.000Z","dependencies_parsed_at":"2024-01-16T07:22:16.687Z","dependency_job_id":"3c133e59-b9aa-4dcc-a46e-f3782940bd0f","html_url":"https://github.com/denoland/deno_registry2","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/denoland%2Fdeno_registry2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdeno_registry2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdeno_registry2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denoland%2Fdeno_registry2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denoland","download_url":"https://codeload.github.com/denoland/deno_registry2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237221176,"owners_count":19274447,"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"],"created_at":"2024-07-31T17:01:48.211Z","updated_at":"2025-10-19T21:32:16.624Z","avatar_url":"https://github.com/denoland.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# deno_registry2\n\nThis is the backend for the deno.land/x service.\n\n## Limits\n\nThere are a few guidelines / rules that you should follow when publishing a\nmodule:\n\n- Please only register module names that you will actually use.\n- Do not squat names. If you do, we might transfer the name to someone that\n  makes better use of it.\n- Do not register names which contain trademarks that you do not own.\n- Do not publish modules containing illegal content.\n\nAdditionally to these guidelines there are also hard limits:\n\n- You can not publish more than 3 different modules from a single repository\n  source.\n- You can not publish more than 15 modules from a single GitHub account or\n  organization.\n\nIf you need an increase to these quotas, please reach out to\n[modules@deno.com](mailto:modules@deno.com).\n\n## Requirements\n\n- AWS account\n- [MongoDB Atlas](https://cloud.mongodb.com) account\n\n## Preparing Docker\n\nMake sure to follow the official instructions to\n[login to ECR](https://docs.aws.amazon.com/AmazonECR/latest/userguide/registry_auth.html)\nvia the Docker cli - this is needed to push the images used by the Lambda\ndeployment to ECR.\n\n```bash\naws ecr get-login-password --region region | docker login --username AWS --password-stdin aws_account_id.dkr.ecr.region.amazonaws.com\n```\n\n## Preparing MongoDB Atlas\n\n1. Create an API key on [MongoDB Atlas](https://cloud.mongodb.com). The API key\n   should have sufficient privileges to create a new project and configure it\n   afterwards.\n\n## Deploy\n\n1. Install `aws` CLI.\n2. Sign in to `aws` by running `aws configure`\n3. [Install Terraform](https://terraform.io/downloads.html) version 0.13 or\n   higher\n4. Copy `terraform/terraform.tfvars.example` to `terraform/terraform.tfvars`\n5. Modify `terraform/terraform.tfvars`: set `mongodb_atlas_org_id` to your\n   MongoDB Atlas organization ID, and update `mongodb_atlas_private_key` and\n   `mongodb_atlas_public_key` with the API key you created earlier.\n6. Move to the `terraform/` and **comment out** the `backend` section in the\n   `meta.tf` file (important for first-time apply)\n7. Run the following steps:\n\n```bash\nterraform init\nterraform plan -var-file terraform.tfvars -out plan.tfplan\nterraform apply plan.tfplan\naws s3 ls | grep 'terraform-state' # take note of your tf state bucket name\n# before the final step, go back and remove the comments from step 5\nterraform init -backend-config \"bucket=\u003cyour-bucket-name\u003e\" -backend-config \"region=\u003caws-region\u003e\"\n```\n\n## Setting up MongoDB\n\nTerraform automatically provisions a MongoDB cluster in a separate project.\n\n1. In the newly created MongoDB cluster, create a database called `production`.\n2. In this database create a collection called `modules`.\n3. In this collection create a new Atlas Search index with the name `default`\n   and the mapping defined in `indexes/atlas_search_index_mapping.json`\n4. In this collection create a new index with the name `by_owner_and_repo` like\n   it is defined in `indexes/modules_by_owner_and_repo.json`\n5. In this collection create a new index with the name\n   `by_is_unlisted_and_star_count` like it is defined in\n   `indexes/modules_by_is_unlisted_and_star_count.json`\n6. In this database create a collection called `builds`.\n7. In this collection create a new _unique_ index with the name\n   `by_name_and_version` like it is defined in\n   `indexes/builds_by_name_and_version.json`\n\n## Teardown\n\nBefore destroying your staging environment, make sure to:\n\n1. run `terraform state pull` to make a local copy of your state file\n2. comment out the `backend` section of the `meta.tf` file\n3. re-initialize your terraform workspace by running\n   `terraform init -backend-config \"region=\u003caws-region\u003e\"`\n4. make sure you empty your s3 buckets, otherwise the destroy will fail\n\nYou can then run `terraform destroy` to completely remove your staging\nenvironment.\n\n## Development\n\nTo run tests locally, make sure you have Docker and docker-compose installed.\nThen run:\n\n```sh\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenoland%2Fdeno_registry2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenoland%2Fdeno_registry2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenoland%2Fdeno_registry2/lists"}