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

@epic-effx/create-epic-graphql-server

v1.0.0

Published

a configured graphql server

Downloads

90

Readme

Dynamic JSON Badge Dynamic JSON Badge Static Badge

Create Epic GraphQL Server

This module provides a configured GraphQL server.

Having a preconfigured server will jump-start your project so you never have to begin from scratch.

Use GraphQL to unify your data into a single API. Take advantage of the powerful, intuitive GraphQL query language.

Interact with this project template live here.

NOTE this is a continuation of the project create-epic-graphql-server

installation

first install globally

npm install -g @epic-effx/create-epic-graphql-server

then create your project

npx @epic-effx/create-epic-graphql-server --name={my-project}

usage

spin up the mock database (described below) npm run dev:db

now spin up the development server npm run dev

congrats, your API is now live!

GraphiQL

use the GraphiQL IDE to interact with your development server's API

this project provides the ruru GraphiQL interface on http://localhost:3000 (by default) during development

sample queries are provided later in this document

mock database

in order to get up and running quickly without the need to initially plug into a real database, this project provides a mock database via json-server

the database starts when you run npm run dev:db, which automatically creates and runs of the file db.json5; the db file is seeded upon each startup from db-seed.json

see file /src/config/db.ts to understand how the database works; you will likely, eventually remove this file when you plug into a real database and replace the contents of /src/models with actual database models... that said, the provided pattern gives you scaffolding to build around

⚠️ please note this mock database is not intended or suited for production use ⚠️

schema and types

the schema sits at the heart of the GraphQL service

the types describe what data you can query, and the schema is the collection of what the service provides

a sample schema has been configured in /src/schema/schema with model validation, read all, read on, mutations, etc... again, your use case will necessitate alterations to the schema, but the provided pattern might help you along the way

test suite

the test suite is enabled to run unit and integration tests

to create a test add a file tp specs/ and follow this file naming format: *.spec.ts

tests run automatically during development via npm run dev or the test suite stand alone like so

npm run test
npm run test:watch

linting

linting rules are in .eslintrc.js; install the ESLint plugin if using vscode

npm run lint

custom logger

A customized winston logger instance resides in utilities/logger, with usage found throughout the codebase methods are provide to log a timestamp or the current node environment

pre-commit

scripts in .husky/pre-commit are run on commits for quality control

add or remove scripts you'd like run before code is committed

environmental settings

you can create a .env file at the project root and add the following variables

also add any additional variables your project needs

develop (dev server)

# optional but recommended
NODE_ENV=development
PORT={port number}
SESSION_SECRET=mySecret!
# optional
JSON_SERVER_PORT={dev db port, default 3210}

production (build)

# optional but recommended
NODE_ENV=production
PORT={port number}

query samples

run these queries against the development server to get a feel the GraphQL query language

get all orders

  {
    orders {
      __typename
      id
      name
      notes
      status
      customer {
        __typename
        name
      }
    }
  }

get all customers

  {
    customers {
      id
      name
      email
      phone
    }
  }

get an order by id

  {
    order(id: "2") {
      id
      name
      status
      customer {
        name
      }
    }
  }

get orders by status

  {
    orders(filter: { status: "Not Started" }) {
      id
      name
      status
    }
  }

create a customer

  mutation {
    addCustomer(
      name: "Tom Hill",
      email: "[email protected]",
      phone: "555-5555"
    ) {
      id
      name
      email
      phone
    }
  }

create an order

  • use id from new customer "Tom Hill"
  mutation {
    addOrder(
      name: productOne,
      status: notStarted,
      customerId: "{id}"
    ) {
      id
      name
      status
      customer {
        id
        name
      }
    }
  }

update and order

  • use id from new order created above
  mutation {
    updateOrder(
      id: "{id}",
      status: processing,
    ) {
      id
      name
      status
      customer {
        id
        name
      }
    }
  }

delete a customer by id

  • use id from new customer "Tom Hill"
  • resolver is setup to delete associated orders too
  mutation {
    deleteCustomer(id: "{id}") {
      id
      name
    }
  }

dependency overrides

this version includes minimal npm overrides to patch known transitive vulnerabilities in webpack tooling

they are intentionally limited to patch-level upgrades within the same major

you can remove them in the future by:

  1. running npm update
  2. removing the overrides section
  3. reinstalling dependencies
  4. running npm audit