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 🙏

© 2024 – Pkg Stats / Ryan Hefner

create-captain-app

v0.24.0

Published

CLI tool to create Captain apps

Downloads

804

Readme

Create Captain App

create-captain-app is a command-line utility designed to streamline the process of creating applications using Captain, an Electron app framework. It enables users to generate projects from a variety of customizable templates that can be exported as static websites, supporting a wide range of web technologies.

Discord

Features

  • Versatility: Supports multiple front-end frameworks, including Next.js, Svelte, Vue.js, and basic HTML + CSS.
  • Simplicity: Allows easy project generation with a single command, akin to create-react-app or create-next-app.
  • Template-based: Offers a selection of templates to kick-start your project, each customizable to meet specific needs.

Prerequisites

  • Node.js: Version 20 or later must be installed on your system.
  • Git: Required for version control.

Installation

Install create-captain-app using the following command:

npx create-captain-app [app-name] [--template <template-url> | -t <template-url>]

Usage

To create a new Captain application, specify the name of your app and optionally, a template URL:

npx create-captain-app my-captain-app
npx create-captain-app my-next-app --template https://github.com/blib-la/captain-next-app-example

Default Settings

  • App Name: If not specified, create-captain-app defaults to using "my-captain-app" as the project name.
  • Template: If no template URL is provided, the default Next.js template for Captain will be used.

Template Selection

Specify any GitHub repository URL hosting a Captain-compatible template to use:

npx create-captain-app my-vue-app --template https://github.com/some-user/some-captain-vue-template

Creating Custom Templates

To develop a custom template, ensure your project aligns with Captain requirements and can be exported as a static site. Consult the default starter app for setup guidance.

Configuring Your Project

After project setup, adjust the metadata in the captain.md file to match your project specifics. This file uses YAML frontmatter for configuration:

  • Preserve the Default ID: The initial id matches the packageJson.name and is uniquely set by our CLI. We recommend keeping the default settings to avoid conflicts.

Building Your App

Depending on your chosen template, begin by modifying the source files. For example, our Next.js starter app features a simple random cat generator powered by Stable Diffusion XL (SDXL).