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

@stack-craft/create-stack-craft

v1.0.0

Published

A CLI tool to create projects with Express, Hono, and Prisma

Downloads

4

Readme

Create Stack Craft

Create Stack Craft is a CLI tool to create projects with Express, Hono, and Prisma. This tool helps you quickly set up a new project with the desired framework, language, and Prisma integration.

Features

  • Create projects with Express or Hono.
  • Choose between TypeScript or JavaScript.
  • Optionally include Prisma for database management.
  • Automatically set up the project structure and dependencies.

Installation

To use Create Stack Craft, you need to have Node.js and npm installed on your machine. You can install Create Stack Craft globally using npm:

npm install -g create-stack-craft

Usage

You can create a new project by running the following command with npm:

npm create stack-craft@latest

Or with pnpm:

pnpm create stack-craft@latest

Interactive Prompts

You will be prompted to enter the following information:

  1. Project Name: Enter the name of your project.
  2. Framework: Choose between Express or Hono.
  3. Language: Choose between TypeScript or JavaScript.
  4. Include Prisma: Optionally include Prisma in your project.
  5. Run npm install: Optionally run npm install after setting up the project.

Example

npm create stack-craft@latest

or

pnpm create stack-craft@latest

Follow the prompts to create your project. Once the setup is complete, navigate to your project directory and start the development server:

cd my-project
npm run dev

Project Structure

The generated project structure will look like this:

my-project/
├── prisma/
│   └── schema.prisma (if Prisma is included)
├── src/
│   ├── app.ts (or app.js)
│   └── routes/
│       └── index.ts (or index.js)
├── .env (if Prisma is included)
├── .env.example (if Prisma is included)
├── package.json
└── tsconfig.json (if TypeScript is selected)

Scripts

The generated package.json will include the following scripts:

  • build: Compile the TypeScript code (if TypeScript is selected).
  • start: Run the compiled code.
  • lint: Run ESLint on the project.
  • db:generate: Generate Prisma client (if Prisma is included).
  • db:migrate: Run Prisma migrations (if Prisma is included).
  • db:push: Push the Prisma schema to the database (if Prisma is included).
  • db:studio: Open Prisma Studio (if Prisma is included).

Links

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any bugs or feature requests.

License

This project is licensed under the MIT License.