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

@edgefront/api

v0.0.11

Published

tykoa-backend-demo

Downloads

44

Readme

TyKoa

A quickstart template for TypeScript + Koa 2

中文README

Feature

  1. TypeScript + Koa 2
  2. Auto scan routes, configure routes using @Controller('/path') above class, and @Post('/subPath') above each function ( other HTTP methods are also supported )

System Requirements

  1. Node.js latest v10.x or newer
  2. PostgreSQL ( if you use MySQL, need to configure right driver for knex, and disable PostGraphile manually )

Usage

  1. first things first, input postgres configurations in conf/local
  2. then:
npm install  
npm run n (dev mode)  
open http://localhost:3000/test/2  

( or, open http://localhost:3000/test/1 , you should ensure you have a table named `user_tb` first )  
  
-----------------------------------------------------------

npm run build ( use tsc to build codes for production )
npm start (run compiled codes for production)

TODO

  1. ~~Better routes, like scanning directories then require, using globby~~
  2. ~~duplicated route path warning.~~
  3. IoC container, using injection or tsyringe or Inversify
  4. ~~add service directory~~
  5. ~~jsonwebtoken~~
  6. Better README
  7. Better logger
  8. Plugins support (like eggjs?..)
  9. CLI support to quickly generate structure
  10. RPC

main third party dependencies:

  1. TypeScript + its decorators + reflect-metadata
  2. Koa 2
  3. Knex.js , a SQL query builder
  4. pg , Postgresql Nodejs driver
  5. PostGraphile , make GraphQL and Postgres things easy
  6. dotenv , configurations in .env files

dev dependencies:

  1. nodemon , auto restart node when code changes
  2. ts-node , execute .ts files without building to .js
  3. eslint , typescript-eslint ( TSLint is deprecated )
  4. concurrently , run multiple commands at one time
  5. open-cli , open URL in browser, through terminal.

Other

inspired by:
https://github.com/midwayjs/midway/

Other similar projects:
https://github.com/thinkkoa/koatty