{"id":13524141,"url":"https://github.com/dfinity/motoko-dev-server","last_synced_at":"2025-09-02T16:56:56.407Z","repository":{"id":160097084,"uuid":"551784825","full_name":"dfinity/motoko-dev-server","owner":"dfinity","description":"A live reload development server for Motoko smart contracts.","archived":false,"fork":false,"pushed_at":"2025-07-21T23:32:55.000Z","size":2926,"stargazers_count":24,"open_issues_count":10,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-08-09T10:59:31.722Z","etag":null,"topics":["cli","command-line","create-react-app","dapp","dfx","hot-module-reloading","hot-module-replacement","icp","internet-computer","live-reload","motoko","nextjs","productivity","prototyping","smart-contract","tools","typescript","vite"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dfinity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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}},"created_at":"2022-10-15T04:47:20.000Z","updated_at":"2025-04-04T04:01:26.000Z","dependencies_parsed_at":"2024-03-28T17:26:22.602Z","dependency_job_id":"3a12fa48-28f7-4fd7-a478-3ae48e192502","html_url":"https://github.com/dfinity/motoko-dev-server","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dfinity/motoko-dev-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmotoko-dev-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmotoko-dev-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmotoko-dev-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmotoko-dev-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfinity","download_url":"https://codeload.github.com/dfinity/motoko-dev-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfinity%2Fmotoko-dev-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273317765,"owners_count":25084037,"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-09-02T02:00:09.530Z","response_time":77,"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":["cli","command-line","create-react-app","dapp","dfx","hot-module-reloading","hot-module-replacement","icp","internet-computer","live-reload","motoko","nextjs","productivity","prototyping","smart-contract","tools","typescript","vite"],"created_at":"2024-08-01T06:01:07.403Z","updated_at":"2025-09-02T16:56:56.381Z","avatar_url":"https://github.com/dfinity.png","language":"TypeScript","funding_links":[],"categories":["Motoko"],"sub_categories":["Monitoring"],"readme":"\n# `mo-dev` \u0026nbsp;[![npm version](https://img.shields.io/npm/v/mo-dev.svg?logo=npm)](https://www.npmjs.com/package/mo-dev) [![GitHub license](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/dfinity/motoko-dev-server/issues)\n\n\u003e ### A [live reload](https://blog.logrocket.com/complete-guide-full-stack-live-reload/) development server for [Motoko](https://smartcontracts.org/) smart contracts.\n\n---\n\n`mo-dev` is a flexible command-line tool for speeding up your Motoko development workflow. \n\n- [Announcement blog post](https://ryanvandersmith.medium.com/announcing-the-motoko-dev-server-live-reloading-for-web3-dapps-20363088afb4)\n- [Developer forum topic](https://forum.dfinity.org/t/announcing-mo-dev-live-reloading-for-motoko-dapps/21007)\n\n## Try Online\n\nGet started with a full-stack [Vite + React + Motoko](https://github.com/rvanasa/vite-react-motoko#readme) project directly in your browser:\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/rvanasa/vite-react-motoko)\n\n## Quick Start\n\nRun the following command (requires [Node.js](https://nodejs.org/en/) ≥ 16):\n\n```sh\nnpm i -g mo-dev\n```\n\n\u003e Note: standalone `mo-dev` binaries are also available as [GitHub releases](https://github.com/dfinity/motoko-dev-server/releases). \n\nOnce installed, view the available command-line options by passing the `--help` flag:\n\n```sh\nmo-dev --help\n```\n\nCheck out the [Vite + React + Motoko](https://github.com/rvanasa/vite-react-motoko#readme) starter project for an example of how to integrate `mo-dev` into a modern full-stack webapp.\n\n## Basic Features\n\nRegenerate type declarations on Motoko file change (`--generate` or `-g`):\n\n```sh\nmo-dev --generate\n```\n\nDeploy canisters on Motoko file change (`--deploy` or `-d`):\n\n```sh\nmo-dev --deploy\n```\n\nAutomatically respond \"yes\" to reinstall prompts (`--yes` or `-y`; may clear canister state):\n\n```sh\nmo-dev --deploy -y\n```\n\nRun unit tests (`*.test.mo`) on Motoko file change (`--test` or `-t`):\n\n```sh\nmo-dev --test\n```\n\nRun an arbitrary command on Motoko file change (`--exec` or `-x`):\n\n```sh\nmo-dev --exec 'npm run my-reload-script'\n```\n\nSpecify the working directory (`--cwd` or `-C`; should contain a `dfx.json` file):\n\n```sh\nmo-dev --cwd path/to/dfx_project\n```\n\nOnly run the dev server for specific canisters (`--canister` or `-c`):\n\n```sh\nmo-dev --canister foo --canister bar --deploy\n```\n\nPass an installation argument to `dfx deploy` (`--argument` or `-a`):\n\n```sh\nmo-dev --deploy --argument '()'\n```\n\n## Advanced Features\n\nShow additional debug output in the console (`--verbose` or `-v`):\n\n```sh\nmo-dev -v # more verbose\nmo-dev -vv # extra verbose\n```\n\nProgrammatically start `mo-dev` using JavaScript:\n\n```js\nimport devServer from 'mo-dev';\n\n// Default settings\ndevServer();\n\n// Custom settings\ndevServer({\n    directory: '.',\n    port: 7700,\n    verbosity: 0,\n    // ...\n});\n```\n\n## `mo-test`\n\nThe `mo-dev` npm package includes a `mo-test` command which can be used to run unit tests in CI workflows. \n\nView all available options:\n\n```sh\nmo-test --help\n```\n\nRun all Motoko unit tests (`*.test.mo`):\n\n```sh\nmo-test\n```\n\nRun all Motoko unit tests using a WASI runtime by default (faster but requires installing [Wasmtime](https://wasmtime.dev/) on your system):\n\n```sh\nmo-test --testmode wasi\n```\n\nConfigure the runtime of an individual unit test by including the following comment in a `*.test.mo` file:\n\n```motoko\n// @testmode wasi\n```\n\nRun specific unit tests by passing a file name prefix (`-f` or `--testfile`):\n\n```sh\nmo-test -f Foo -f Bar # (only run tests for files starting with `Foo` or `Bar`)\n```\n\nThese options may also be passed directly into the `mo-dev` command (e.g. `mo-dev --testmode wasi -f SomeTest`).\n\n---\n\n`mo-dev` is early in development. Please feel free to report a bug, ask a question, or request a feature on the project's [GitHub issues](https://github.com/dfinity/motoko-dev-server/issues) page. \n\nContributions are welcome! Please check out the [contributor guidelines](https://github.com/dfinity/motoko-dev-server/blob/main/.github/CONTRIBUTING.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fmotoko-dev-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfinity%2Fmotoko-dev-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfinity%2Fmotoko-dev-server/lists"}