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

create-vue-turbo

v0.3.5

Published

CLI to scaffold the Vue Turbo starter monorepo

Readme

create-vue-turbo

npm version weekly downloads license

CLI for scaffolding a Turborepo starter with Vue as the default frontend and selectable backend stacks.

Usage

Bun

bun create vue-turbo my-app
bun create vue-turbo my-app --backend laravel

npm

npm create vue-turbo@latest my-app
npm create vue-turbo@latest my-app -- --backend laravel

Alternatively (equivalent, explicit):

npx create-vue-turbo@latest my-app
npx create-vue-turbo@latest my-app --backend laravel

Yarn

yarn create vue-turbo my-app
yarn create vue-turbo my-app --backend laravel

pnpm

pnpm create vue-turbo my-app
pnpm create vue-turbo my-app --backend laravel

If no backend is passed, the CLI prompts you to choose one interactively.

Architecture

  • Frontend is always Vue in apps/vue
  • Backend is optional and added alongside Vue in apps/ only after a backend module is selected
  • Backend dependency checks are backend-specific. Laravel checks run only when laravel is selected.
  • Current backend options:
    • none
    • laravel

The CLI flow is:

parse args
prompt for project name when missing
prompt for backend when --backend is missing
scaffold base workspace + Vue
run selected backend setup module
print next steps

Backends are registered as modules:

export const backends = [noneBackend, laravelBackend];

Each backend owns its own validation, install prompts, and setup command:

export interface BackendDefinition {
  id: string;
  label: string;
  description: string;
  appDirectory?: string;
  setup(context: BackendSetupContext): Promise<BackendSetupResult>;
}

Backend modules can also apply backend-specific package transforms after their project is generated. Laravel uses updatePackageJsonScripts to replace the generated scripts with Turborepo-friendly commands:

await updatePackageJsonScripts(
  path.join(backendPath, "package.json"),
  {
    build: "echo 'Laravel build step'",
    migrate: "php artisan migrate",
    test: "php artisan test",
    dev: "php artisan serve",
  },
  {
    name: "laravel",
    private: true,
    strategy: "replace",
  },
);

Laravel uses this fallback chain:

1. If PHP, Composer, and Laravel CLI exist:
   laravel new laravel

2. Else if PHP and Composer exist:
   composer create-project laravel/laravel laravel

3. Else:
   show missing dependencies
   ask for Quick install, Manual instructions, or Skip backend setup

Quick install mode detects the host OS, shows the exact command before running it, asks for confirmation, streams installer output, then checks Composer again. Composer remains required for Laravel; the CLI does not bypass it.

Shared process helpers live in src/process.ts:

await commandExists("php");
detectOs();
await runCommand(
  "composer",
  ["create-project", "laravel/laravel", "laravel"],
  appsDir,
);
await runShellCommand(installCommand, projectDir);

To add another backend, create a module in src/backends/, export a BackendDefinition, and register it in src/backends/index.ts.

Local development

Run these commands from the repository root:

bun install
bun run dev

Or:

npm install
npm run dev
yarn
yarn dev
pnpm install
pnpm dev

You can also build and run the compiled output:

bun run build
node dist/index.js my-app
node dist/index.js my-app --backend laravel

Template layout

src/
  backends/
    index.ts
    laravel.ts
    none.ts
    types.ts
  process.ts

template/
  base/
  frontend/
    vue/
  backends/
    laravel/

template/base contains the shared workspace root and shared packages. template/frontend/vue is always copied into apps/vue. Backend modules may use commands, templates, or both, but their checks and setup logic stay inside the selected backend module.

Building checklist

bun run check-types
bun run build