{"id":26596180,"url":"https://github.com/zeit/micro-dev","last_synced_at":"2025-03-23T17:01:19.184Z","repository":{"id":38379346,"uuid":"97933800","full_name":"vercel/micro-dev","owner":"vercel","description":"The development environment for `micro`","archived":false,"fork":false,"pushed_at":"2024-06-08T20:31:08.000Z","size":369,"stargazers_count":709,"open_issues_count":28,"forks_count":77,"subscribers_count":65,"default_branch":"main","last_synced_at":"2025-03-17T01:11:24.675Z","etag":null,"topics":["cli","command-line","development","interface","tools"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/vercel.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":"2017-07-21T10:01:13.000Z","updated_at":"2025-03-07T02:40:02.000Z","dependencies_parsed_at":"2023-02-01T04:17:22.641Z","dependency_job_id":"112ca54b-5604-437c-8f8f-5e08b13ac280","html_url":"https://github.com/vercel/micro-dev","commit_stats":{"total_commits":136,"total_committers":29,"mean_commits":4.689655172413793,"dds":0.2647058823529411,"last_synced_commit":"dd0470796189c856c52a6fa3dfdb8ab74e1eb157"},"previous_names":["zeit/micro-dev"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fmicro-dev","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fmicro-dev/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fmicro-dev/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fmicro-dev/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercel","download_url":"https://codeload.github.com/vercel/micro-dev/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245136368,"owners_count":20566587,"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":["cli","command-line","development","interface","tools"],"created_at":"2025-03-23T17:00:45.443Z","updated_at":"2025-03-23T17:01:19.146Z","avatar_url":"https://github.com/vercel.png","language":"JavaScript","readme":"# Micro (Dev) — Asynchronous HTTP microservices\n\nThis command line interface provides a belt full of tools that make building microservices using [micro](https://github.com/vercel/micro) a breeze! It's only meant to be used in development, **not in production** (that's where [micro](https://github.com/vercel/micro) comes in).\n\n## Features\n\n-   **Hot Reloading:** When making changes to your code, the server will restart by itself\n-   **Logs:** Incoming and outgoing requests will be logged to `stdout`\n-   **Beautiful JSON:** When JSON bodies are logged, they're styled and prettified\n-   **Clipboard Support:** The local address is pasted to the clipboard automatically\n-   **Port Selection:** Automatic detection and use of an open port (if the specified one is in use)\n-   **Debug in Your Network:** The network address shown in addition to local one\n-   **Duration Logs:** Calculates and shows the duration for each request\n-   **Pretty Errors:** Prettifies the `Error` object if any exceptions are thrown\n\n## Usage\n\n**Important:** This tool is only meant to be used in development. In production, you should use [micro](https://github.com/vercel/micro), which is much lighter and faster (and also comes without the belt of tools used when developing microservices).\n\nWhen preparing your development environment, firstly install `micro-dev`:\n\n```bash\nnpm install --save-dev micro-dev\n```\n\n**Note:** You'll need at least Node.js v7.6.0 to run `micro-dev`.\n\nNext, add a new `script` property below `micro` inside `package.json`:\n\n```json\n\"scripts\": {\n  \"start\": \"micro\",\n  \"dev\": \"micro-dev\"\n}\n```\n\nAs the final step, start the development server like this:\n\n```bash\nnpm run dev\n```\n\n## Debugging\n\nThe package can be used in conjunction with the Node.js inspector like this:\n\n```json\n\"scripts\": {\n  \"inspect\": \"node --inspect node_modules/.bin/micro-dev\"\n}\n```\n\nAs the final step, start the development server like this:\n\n```bash\nnpm run inspect\n```\n\n## Contributing\n\n1. [Fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device\n2. Move into the directory of the clone: `cd micro-dev`\n3. Link it to the global module directory of Node.js: `npm link`\n\nInside the project where you want to test your clone of the package, you can now either use `npm link micro-dev` to link the cloned source to your project's local dependencies or run `micro-dev` right in your terminal.\n\n## Authors\n\n-   Leo Lamprecht ([@leo](https://x.com/leo))\n-   Tim Neutkens ([@timneutkens](https://x.com/timneutkens)) - [Vercel](https://vercel.com)\n","funding_links":[],"categories":["JavaScript","Development Tools"],"sub_categories":["Utilities"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeit%2Fmicro-dev","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeit%2Fmicro-dev","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeit%2Fmicro-dev/lists"}