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-teavm-app

v0.1.9

Published

CLI tool to scaffold TeaVM + Cloud Run + Firebase applications

Readme

create-teavm-app

CLI tool that scaffolds a full-stack TeaVM + Cloud Run + Firebase application in a single command.

Quick Start

npx create-teavm-app \
  --name my-cool-app \
  --package ca.weblite.mycoolapp \
  --description "My cool application" \
  --database \
  --auth

Installation

Via npm/npx (recommended — jdeploy handles JRE download automatically):

npx create-teavm-app --name my-app --package com.example.myapp

Or build from source:

mvn clean package
java -jar target/create-teavm-app-0.1.0.jar --name my-app --package com.example.myapp

CLI Parameters

Required

| Parameter | Short | Description | |-----------|-------|-------------| | --name | -n | App name in kebab-case (e.g. my-cool-app) | | --package | -p | Java package (e.g. ca.weblite.mycoolapp) |

Optional

| Parameter | Short | Default | Description | |-----------|-------|---------|-------------| | --description | -d | "A TeaVM application" | One-line description for POM and CLAUDE.md | | --group-id | -g | Derived from package | Maven group ID | | --output-dir | -o | . | Where to create the project directory | | --database / --no-database | | true | Include PostgreSQL database support (Cloud SQL) | | --auth / --no-auth | | true | Include Firebase Auth / JWT validation | | --object-store | | false | Include R2/S3 object storage | | --messaging | | false | Include Pub/Sub messaging | | --processor | | (none) | Repeatable. Processor service name (implies --messaging) | | --teavm-lambda-version | | 0.1.5 | teavm-lambda version | | --teavm-react-version | | 0.1.2 | teavm-react version | | --teavm-version | | 0.13.1 | TeaVM compiler version | | --skip-frontend | | false | Skip generating the frontend module | | --skip-workflows | | false | Skip generating GitHub Actions workflows |

Generated Project Structure

For --name my-app --package ca.weblite.myapp:

my-app/
├── pom.xml                          # Parent POM with dependencyManagement
├── mvnw / mvnw.cmd                  # Maven wrapper
├── .mvn/settings.xml                # GitHub Packages auth
├── .tool-versions                   # asdf: java, maven, nodejs
├── .gitignore
├── CLAUDE.md                        # Project docs for Claude Code
├── dev.sh                           # Local dev script
├── setup-local.sh                   # First-time setup
├── docker-compose.yml               # PostgreSQL, MinIO, Pub/Sub as needed
│
├── my-app-common/                   # Shared models and interfaces
│   ├── pom.xml
│   └── src/.../common/package-info.java
│
├── my-app-api/                      # Backend API service
│   ├── pom.xml                      # teavm & jvm profiles
│   ├── run-tests.sh
│   ├── docker/                      # Dockerfile, server.js, init.sql
│   └── src/.../api/
│       ├── Main.java                # GeneratedContainer, GeneratedRouter, Platform.start()
│       └── HealthResource.java      # @Path("/health") @Component @Singleton @PermitAll
│
├── my-app-frontend/                 # Frontend SPA (unless --skip-frontend)
│   ├── pom.xml                      # teavm.version=0.13.1, teavm-react-core
│   ├── firebase.json
│   ├── docker/                      # Dockerfile, nginx.conf
│   ├── src/main/webapp/index.html
│   └── src/.../frontend/App.java    # ReactDOM.createRoot, React.wrapComponent
│
├── my-app-{processor}/              # For each --processor
│   ├── pom.xml
│   ├── docker/
│   └── src/.../{processor}/
│       ├── Main.java
│       ├── ProcessResource.java     # @Path("/process") @POST
│       └── HealthResource.java
│
├── docker/pubsub-bridge/            # If --messaging
│
└── .github/workflows/               # Unless --skip-workflows
    ├── ci.yml
    ├── deploy-staging.yml
    └── deploy-prod.yml

Examples

Full-featured app with all defaults:

npx create-teavm-app -n my-app -p ca.weblite.myapp

Minimal API-only app:

npx create-teavm-app \
  --name my-api \
  --package ca.weblite.myapi \
  --no-database --no-auth \
  --skip-frontend --skip-workflows

App with object storage and a processor:

npx create-teavm-app \
  --name media-app \
  --package ca.weblite.mediaapp \
  --object-store \
  --processor image-processor

Development

Prerequisites

  • Java 21
  • Maven 3.9+

Build

mvn clean package

Test

mvn test

The test suite includes 24 integration tests covering all flag combinations, generated file content verification, and template engine unit tests.

Tech Stack

  • Java 21 with Picocli for CLI argument parsing
  • maven-shade-plugin for uber JAR packaging
  • jdeploy for npm distribution (npx support)
  • Template-based generation with {{PLACEHOLDER}} substitution and {{#CONDITION}}/{{^CONDITION}} conditional blocks