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

tedi

v1.1.4

Published

Express wrappper written in typescript with dependency injection capabilities

Readme

Overview

Check the wiki

Typescript

tedi tries to give a new approach about how we write web applications in node. It favors the typescript language to leverage the power of javascript into new heights. Typescript is a superset of javascript that allows us to use the ES6 (and some of the ES7) spec, today. It also gives us types - we can work in a strongly typed environment. (tedi will only work with a typescript version >= 2.0.0)
Typescript

Express

express is a great web framework that is already well established in the community and has great support. tedi is not trying to reinvent the wheel here, instead it tries to wrap express's power defining a new approach in terms of architecture using classes, types, and dependency injection as core principles.
Express

Dependency injection

[wikipedia] dependency injection is a software pattern that implements inversion of control for resolving dependencies.

This is a great way to increase modularity and testability right from the start, as tedi forces this pattern to be used. tedi uses inversify.io as the DI engine. It is a great framework that is actively maintained and I'll be glad to incorporate new functionalities that may arise with new releases.
Inversify.io

Installation

Create a project folder.

$ mkdir tedi-project
$ cd tedi-project

Initialize npm.

$ npm init

Install tedi and other dependencies.

$ npm i --save tedi
$ npm i --save-dev typescript@">=2.0.0"

typescript version must be greater or equal to 2.0.


tsconfig.json (put it in the project root folder)

{
    "compilerOptions": {
        "module": "commonjs",
        "target": "es5",
        "moduleResolution": "node",
        "noImplicitAny": false,
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true
    },
    "exclude": [
        "node_modules"
    ]
}

Compile

You can now compile your .ts files.

$ node_modules/.bin/tsc

Or you can define a npm script.

package.json

"scripts": {
  "compile": "node_modules/.bin/tsc"
},

Use the command to compile.

$ npm run compile

Next step: Tutorial