npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vue-godot/cli

v0.0.3

Published

CLI tool for vue-godot projects — generates types, scaffolds projects, and more

Downloads

203

Readme

@vue-godot/cli

CLI tool for vue-godot projects — scaffolds new projects, integrates Vue into existing Godot projects, and generates type declarations.

Installation

npm install -D @vue-godot/cli

Or run directly with npx:

npx @vue-godot/cli <command> [options]

Commands

create

Create a new Godot project with vue-godot set up and ready to go.

vue-godot create [name] [options]

| Argument | Description | | -------- | ----------------------------------------------------- | | name | Project name (used as dir name). Prompted if omitted. |

| Option | Description | | -------- | -------------------------------------------------------------- | | -f | Force overwrite if directory already exists | | --html | Enable @vue-godot/html — HTML-like components on Godot nodes |

When --html is set, the scaffolded project includes:

  • @vue-godot/html as a dependency
  • @vue-godot/browser as a dependency and installBrowserAPIs() in main.ts
  • Vite compiler config with isNativeTag: () => false so lowercase HTML tags like <div>, <img>, and <a> resolve as components
  • htmlPlugin registered in main.ts for global component availability
  • an HTML-like starter App.vue
  • _exit_tree() cleanup that calls app.unmount() for editor reload safety
  • Volar plugin in tsconfig.json (vueCompilerOptions.plugins) so the IDE resolves lowercase tags as @vue-godot/html components with full type-checking and hover info
  • Vite output with stable secondary chunk paths under dist/chunks/ so Godot editor reloads do not chase content-hash filenames

Example:

npx @vue-godot/cli create my-game --html
cd my-game
npm run dev

create runs the initial npm install and npm run gen:types for you. Keep npm run dev running while editing vue/src; Vite rebuilds dist/app.js and stable dist/chunks/*.js files for the Godot editor to reload.

The generated vue/ and gen/ directories include .gdignore files so Godot imports the built dist/app.js output without trying to scan Vite/TypeScript source files or GodotJS-generated TypeScript resource stubs as scripts.

integrate

Scaffold a vue/ folder with Vite + Vue configuration for an existing Godot project.

vue-godot integrate [dir] [options]

| Argument | Description | | -------- | ---------------------------------- | | dir | Target directory (defaults to .) |

| Option | Description | | -------- | -------------------------------------------------------------- | | -f | Force overwrite if vue/ already exists | | --html | Enable @vue-godot/html — HTML-like components on Godot nodes |

This command:

  1. Copies a Vue + Vite template into <dir>/vue/
  2. Creates or updates package.json with the necessary scripts and dependencies
  3. Resolves node_modules paths for the generated tsconfig.json
  4. Adds the same HTML/browser setup as create --html when --html is provided

The copied vue/ template and root gen/ ignore marker keep Godot's asset scan focused on generated dist/ output rather than Vue source/config files or GodotJS-generated TypeScript resource stubs. The Vite config also keeps secondary JavaScript chunk names stable under dist/chunks/, which avoids stale Godot editor resource dependencies during watch rebuilds.

Example:

cd my-existing-godot-project
npx @vue-godot/cli integrate
npm install
npm run gen:types
npm run dev

gen-types

Generate Vue GlobalComponents type augmentation from GodotJS typings. This gives Volar full autocomplete and type checking for Godot node tags (e.g. <Button>, <Label>) in .vue templates.

vue-godot gen-types [options]

| Option | Default | Description | | ------------ | ----------------------------------------- | -------------------------------------------------- | | --typings | ./typings | Directory containing godot*.gen.d.ts files | | --out | <typings>/godot.vue-components.gen.d.ts | Output file path for the generated .d.ts | | --ancestor | Control | Base class — only descendants are included | | --vue-src | ./vue/src | Vue source dir — generates an env.d.ts shim here |

Example:

cd apps/v-model
npx @vue-godot/cli gen-types

Re-run whenever Godot typings are regenerated (e.g. after a Godot version upgrade).

Development (monorepo)

From the repository root:

npm install
npm run build        # builds all packages via Turborepo
npx vue-godot        # runs the locally-built CLI binary

License

MIT