{"id":29904628,"url":"https://github.com/antfu-collective/vite-node","last_synced_at":"2025-08-05T13:25:14.065Z","repository":{"id":66184558,"uuid":"415078018","full_name":"antfu-collective/vite-node","owner":"antfu-collective","description":"Vite as Node.js runtime","archived":false,"fork":false,"pushed_at":"2025-07-24T05:27:39.000Z","size":566,"stargazers_count":425,"open_issues_count":3,"forks_count":9,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-07-31T13:39:45.465Z","etag":null,"topics":["node","runtime","vite"],"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/antfu-collective.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["antfu"]}},"created_at":"2021-10-08T17:45:42.000Z","updated_at":"2025-07-27T08:42:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c662db2-9803-4425-8e68-69298cea41c7","html_url":"https://github.com/antfu-collective/vite-node","commit_stats":null,"previous_names":["antfu-collective/vite-node"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/antfu-collective/vite-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/antfu-collective","download_url":"https://codeload.github.com/antfu-collective/vite-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/antfu-collective%2Fvite-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268272456,"owners_count":24223784,"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-08-01T02:00:08.611Z","response_time":67,"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":["node","runtime","vite"],"created_at":"2025-08-01T18:02:04.032Z","updated_at":"2025-08-01T18:03:27.783Z","avatar_url":"https://github.com/antfu-collective.png","language":"JavaScript","funding_links":["https://github.com/sponsors/antfu"],"categories":["TypeScript","JavaScript","Loaders / Execution Tools"],"sub_categories":[],"readme":"# Project Moved to [Vitest Monorepo](https://github.com/vitest-dev/vitest/tree/main/packages/vite-node)\n\n\u003cdetails\u003e\n\n# vite-node\n\n[![NPM version](https://img.shields.io/npm/v/vite-node?color=a1b858\u0026label=)](https://www.npmjs.com/package/vite-node)\n\nVite as Node runtime.\n\n\u003e **EXPERIMENTAL**\n\n\n## Usage\n\n```bash\nnpx vite-node index.ts\n```\n\nOptions:\n\n```bash\nnpx vite-node -h\n```\n\n## Features\n\n- Out-of-box ESM \u0026 TypeScript support (possible for more with plugins)\n- Top-level await\n- Vite plugins, resolve, aliasing\n- Respect `vite.config.ts`\n- Shims for `__dirname` and `__filename` in ESM\n- Access to native node modules like `fs`, `path`, etc.\n- Watch mode (like `nodemon`)\n\n## When NOT to Use\n\n- Production, yet - in very early stage, check it later\n- Most of the time, when other tools can do that job\n  - We need to start a Vite server upon each execution, which inevitably introduces some overhead. Only use it when you want the same behavior as Vite or the powerful plugins system (for example, testing components with a Vite-specific setup).\n\n## Why?\n\nIt runs Vite's id resolving, module transforming, and most importantly, the powerful plugins system!\n\n## How?\n\nIt fires up a Vite dev server, transforms the requests, and runs them in Node.\n\n## Credits\n\nBased on [@pi0](https://github.com/pi0)'s brilliant idea of having a Vite server as the on-demand transforming service for [Nuxt's Vite SSR](https://github.com/nuxt/vite/pull/201).\n\nThanks [@brillout](https://github.com/brillout) for kindly sharing this package name.\n\n## Sponsors\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg\"\u003e\n    \u003cimg src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## License\n\n[MIT](./LICENSE) License © 2021 [Anthony Fu](https://github.com/antfu)\n  \n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu-collective%2Fvite-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantfu-collective%2Fvite-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantfu-collective%2Fvite-node/lists"}