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

lve-temp-jpz

v1.0.3

Published

Scaffold one Laravel-style template with Laravel, Vue, and Express.

Downloads

368

Readme

Laravel Vue Express Template CLI

lve-temp-jpz is a CLI that scaffolds one Laravel-style project with Vue and Express already wired in.

It helps you skip repetitive setup and start with a ready project shape, including health-check routes and a shared local dev flow.

What You Get

  • Laravel 12 app structure
  • Vue 3 frontend inside resources/js
  • Express API server inside server
  • Vite integration for the frontend
  • Health-check endpoints for Laravel and Express
  • Local scripts to run Laravel, Vite, and Express together

Requirements

  • Node.js 18+
  • PHP 8.2+
  • Composer

Quick Start

Create a new folder and scaffold into it:

npx lve-temp-jpz my-app
cd my-app

Install dependencies:

composer install
npm install

Create your environment file:

cp .env.example .env

Windows CMD:

copy .env.example .env

Generate app key and start development:

php artisan key:generate
npm run dev

Default URLs:

  • Laravel + Vue: http://localhost:8000
  • Express API: http://localhost:5000

Health Checks

  • Laravel: http://localhost:8000/api/health
  • Express: http://localhost:5000/api/health

CLI Usage

Run with npx:

npx lve-temp-jpz [project-name] [options]

Or install globally:

npm install -g lve-temp-jpz

Then use any of the provided commands:

lve my-app
laravue my-app

Options

  • -h, --help Show help
  • -f, --force Allow scaffolding into a non-empty directory

Examples:

npx lve-temp-jpz
npx lve-temp-jpz my-app
npx lve-temp-jpz . --force

Notes:

  • If no project name is provided, files are generated in the current directory.
  • The CLI refuses to scaffold into this CLI package root to prevent accidental overwrite.

Generated Project Structure

app/
bootstrap/
config/
public/
resources/
  css/
  js/
  views/
routes/
scripts/
server/
storage/
artisan
composer.json
package.json
vite.config.js

Scripts Inside Generated App

  • npm run dev Start Laravel, Vite, and Express together
  • npm run dev:laravel Start Laravel only
  • npm run dev:vite Start Vite only
  • npm run dev:express Start Express only
  • npm run build Build frontend assets

Troubleshooting

Windows spawn EINVAL When Running Dev Services

Older generated projects could fail during npm run dev with:

Error: spawn EINVAL
syscall: spawn
code: EINVAL
errno: -4071

The failure came from scripts/dev.js spawning the local dev services in a way that Windows could reject. It could also show ENOENT when trying to spawn npm directly, or a DEP0190 warning when testing shell: true with args.

Current generated projects avoid that crash by:

  • Windows: running npm commands through cmd.exe /d /s /c and running PHP as php.exe
  • macOS/Linux: running npm and php directly

After updating to the fixed template, npm run dev should start Laravel, Vite, and Express together without diagnostics errors in scripts/dev.js.

CI/CD: Publish to npm on Tags

This repository includes GitHub Actions automation in .github/workflows/publish-npm.yml.

Workflow behavior:

  • Triggers on tag pushes (v* or *.*.*)
  • Runs install and tests
  • Verifies tag version matches package.json version
  • Publishes to npm with provenance

Required GitHub secret:

  • NPM_TOKEN (npm automation token)

Release flow:

# 1) bump package version
npm version patch

# 2) push commit and tag
git push origin main --follow-tags

You can also create tags manually, for example v1.0.2, as long as the tag version matches package.json.

Development (This CLI Repo)

Install dependencies and run the built-in test command:

npm install
npm test

License

MIT