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

@untools/ts-graphql-api

v0.1.8

Published

CLI to create TypeScript Express MongoDB GraphQL API projects

Readme

@untools/ts-graphql-api

A CLI tool to scaffold a TypeScript Express MongoDB GraphQL API project quickly and efficiently.

npm version License: MIT

Overview

This CLI tool uses degit to quickly scaffold a new TypeScript GraphQL API project with Express and MongoDB. It's a zero-configuration way to get started with a full-featured backend API.

Features

The generated project includes:

  • TypeScript: Strongly typed language for writing scalable and maintainable code
  • Express: Fast, unopinionated web framework for Node.js
  • Apollo Server: Spec-compliant GraphQL server
  • MongoDB: Database integration using Mongoose
  • Authentication: JWT-based authentication and Google OAuth
  • Role Management: Role-based access control for users
  • Email Services: Nodemailer integration for sending emails (with optional Resend.com support)
  • API Key Management: Secure API key generation and validation
  • Password Reset: Secure password reset functionality
  • Environment Configuration: .env file support with auto-generated secrets
  • Smart Port Assignment: Automatically generates a consistent, project-name-based port number using @untools/port-gen
  • Web Push Notifications: Optional VAPID key generation for web push support
  • Payment Integration: Optional support for payment gateway integration
  • AI Integration: Optional Google Gemini AI API integration

Installation

# Install globally
npm install -g @untools/ts-graphql-api

# Or use with npx
npx @untools/ts-graphql-api my-api

Usage

Interactive mode (default)

@untools/ts-graphql-api my-api

This will prompt you for configuration options and create a new project in the my-api directory.

Non-interactive mode

@untools/ts-graphql-api my-api --yes

This will create a new project with default settings.

Options

  • --yes or -y: Skip all prompts and use default options

Configuration

During the interactive setup, you can configure:

Basic Configuration

  • Project name
  • Application port
  • Whether to include Docker configuration

Feature Selection

  • MongoDB integration
  • Email service integration
  • Google OAuth integration
  • Payment gateway integration
  • Google Gemini AI integration
  • Web Push notifications support

Auto-generated Security

The CLI automatically generates:

  • Secure random tokens for JWT authentication (ACCESS_TOKEN_SECRET, REFRESH_TOKEN_SECRET)
  • Webhook secret key (WEBHOOK_SECRET)
  • VAPID keys for Web Push notifications (if selected)
  • Default MongoDB URI based on project name

Project Structure

The generated project follows this structure:

my-api/
├── src/
│   ├── config/                # Configuration files
│   ├── graphql/               # GraphQL type definitions and resolvers
│   │   ├── typeDefs/          # GraphQL schema definitions
│   │   ├── resolvers/         # GraphQL resolvers
│   ├── middlewares/           # Express middlewares
│   ├── models/                # Mongoose models
│   ├── services/              # Business logic and service layer
│   ├── utils/                 # Utility functions
│   ├── index.ts               # Entry point
├── .env                       # Environment variables (pre-configured based on selections)
├── tsconfig.json              # TypeScript configuration
├── package.json               # Project metadata and dependencies
├── README.md                  # Custom project documentation
└── [Docker files]             # Optional Docker configuration

Development

To contribute to this project:

# Clone the repository
git clone https://github.com/yourusername/ts-graphql-api.git

# Install dependencies
cd ts-graphql-api
npm install

# Run in development mode
npm run dev

License

MIT © Miracle Onyenma

Acknowledgements

This project uses miracleonyenma/express-ts-graphql-starter as the template source.