{"id":32460315,"url":"https://github.com/dfinity/mops","last_synced_at":"2025-10-26T11:54:45.237Z","repository":{"id":51129493,"uuid":"505059381","full_name":"dfinity/mops","owner":"dfinity","description":"Package manager for the Motoko programming language","archived":false,"fork":false,"pushed_at":"2025-10-16T21:27:02.000Z","size":36783,"stargazers_count":43,"open_issues_count":55,"forks_count":8,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-18T00:25:14.032Z","etag":null,"topics":["ic","internet-computer","motoko","package-manager"],"latest_commit_sha":null,"homepage":"https://mops.one","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/dfinity.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-06-19T09:02:45.000Z","updated_at":"2025-10-09T19:19:23.000Z","dependencies_parsed_at":"2023-10-10T20:26:10.016Z","dependency_job_id":"f9a9025a-5fba-4f16-82dd-5ea67788220b","html_url":"https://github.com/dfinity/mops","commit_stats":{"total_commits":212,"total_committers":4,"mean_commits":53.0,"dds":"0.028301886792452824","last_synced_commit":"377097afaa4665ccd77543ac3f7016c9da4f2f18"},"previous_names":["basvandijk/mops","dfinity/mops"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dfinity/mops","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfinity","download_url":"https://codeload.github.com/dfinity/mops/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmops/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281099982,"owners_count":26443537,"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","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","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":["ic","internet-computer","motoko","package-manager"],"created_at":"2025-10-26T11:54:41.958Z","updated_at":"2025-10-26T11:54:45.232Z","avatar_url":"https://github.com/dfinity.png","language":"TypeScript","readme":"# Mops\n\nMops is a package manager for the Motoko programming language.\n\n- [Motoko Package Registry](https://mops.one)\n- [Documentation](https://docs.mops.one)\n- [Blog](https://blog.mops.one)\n- [CLI](https://cli.mops.one)\n\n## Setup\n\n### 1. Check system requirements\n- [Node.js](https://nodejs.org/)\n- [DFX](https://internetcomputer.org/docs/current/developer-docs/quickstart/local-quickstart) \u003e= 0.10.0\n\n### 2. Install CLI tool\n```\ncurl -fsSL cli.mops.one/install.sh | sh\n```\nor\n```\nnpm i -g ic-mops\n```\n\n## Install Packages\n\n### 1. Configure dfx.json\nAdd `mops` as a packtool to your `dfx.json`\n\n```json\n{\n  \"defaults\": {\n    \"build\": {\n      \"packtool\": \"mops sources\"\n    }\n  }\n}\n```\n\n### 2. Initialize\nRun this command in the root directory of your project (where is `dfx.json` placed)\n\n```\nmops init\n```\n\n### 3. Install Motoko Packages\nUse `mops add \u003cpackage_name\u003e` to install a specific package and save it to `mops.toml`\n\n```\nmops add base\n```\n\nYou can also add packages from GitHub like this\n```\nmops add https://github.com/dfinity/motoko-base\n```\n\nFor GitHub-packages you can specify branch, tag, or commit hash by adding `#\u003cbranch/tag/hash\u003e`\n```\nmops add https://github.com/dfinity/motoko-base#moc-0.9.1\n```\n\nYou can also add local packages like this (put source files inside `src` directory)\n```\nmops add ./shared\n```\n\nUse `mops install` to install all packages specified in `mops.toml`\n```\nmops install\n```\n\n### 4. Import Package\nNow you can import installed packages in your Motoko code\n\n```motoko\nimport PackageName \"mo:\u003cpackage_name\u003e\";\n```\nfor example\n```motoko\nimport Itertools \"mo:itertools/Iter\";\n```\n\n## Publish a Package\n\n### 1. Import Identity\nCreate new identity to publish packages\n\n```\ndfx identity new mops\n```\n\nImport identity into `mops`\n\n```\nmops user import -- \"$(dfx identity export mops)\"\n```\n\n### 2. Initialize\nRun this command in your package root and select type \"Package\"\n\n```\nmops init\n```\n\nEdit `description` and `repository` fields in `mops.toml` file.\n\nWrite your package code in `*.mo` source files in the `src/` directory.\n\nCreate `README.md` file with information on how to use your package.\n\n### 3. Publish\nPublish package to the mops registry!\n\n```\nmops publish\n```\n\n------------\n*Built for the [Supernova Hackathon](https://dfinity.org/supernova/)*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fmops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfinity%2Fmops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fmops/lists"}