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

sam-app-starter

v1.0.3

Published

A starter kit for backend development

Readme


sam-starter

sam-starter is a CLI tool for initializing backend development projects with a structured setup for models, controllers, routes, and more.

Installation

To install sam-starter, use npm (Node.js package manager):

npm install -g sam-starter

This command installs sam-starter globally, allowing you to use it from any directory in your terminal.

Usage

Initializing the Starter Kit

To initialize a new backend project using sam-starter, navigate to your project directory and run:

sam init

This command sets up the basic project structure and installs necessary dependencies defined in the starter template.

Creating Models

To create a new model in your project, use the following command:

sam make:model ModelName

Replace ModelName with the name of your model. This command creates a new model file (ModelNameModel.js) under src/models and sets up basic schema and model definitions using Mongoose.

Creating Controllers

To create a new controller in your project, use the following command:

sam make:controller ControllerName

Replace ControllerName with the name of your controller. This command generates a new controller file (ControllerNameController.js) under src/controllers with a basic controller class template.

Creating Routes

To create a new route in your project, use the following command:

sam make:route RouteName

Replace RouteName with the name of your route. This command creates a new route file (RouteNameRoute.js) under src/routes and sets up route handlers using Express.

Note: If a route file with the specified name already exists, sam-starter will display a message indicating that the route already exists and will not overwrite the existing file.

Project Structure

After initializing your project with sam init, the project structure will look like this:

my-project/
│
├── src/
│   ├── models/
│   │   ├── ModelNameModel.js
│   │   └── ...
│   ├── controllers/
│   │   ├── ControllerNameController.js
│   │   └── ...
│   ├── routes/
│   │   ├── RouteNameRoute.js
│   │   └── route.js
│   │   └── ...
│   └── ...
│
├── package.json
└── README.md

License

This project is licensed under the MIT License - see the LICENSE file for details.