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 🙏

© 2024 – Pkg Stats / Ryan Hefner

tsc-ui

v0.0.6

Published

Run typescript compiler in watch mode and get project analytics in web dashboard

Downloads

1,924

Readme

TSC-UI

Logo

TSC UI is a tool to monitor in realtime your typescript project quality.

It is based on the original tsc compiler and uses it in the background in watch mode to collect issues and return back to the console.

Currently available features:

  • could show diagnostics messages list
  • calculate the number of affected files
  • calculate the number of unique error codes in the project
  • open the problematic file in the VSCode by clicking on the file path
  • find in Google the error code explanation by clicking on the error code number
  • works in watch mode and updates automatically the dashboard
  • battle-tested on a real project with 350+ diagnostics messages
  • you could have any port for the dashboard using argument
  • you could have any project path to the tsconfig.json using argument
  • has zero dependencies on installation, except Typescript itself as peer dependency and Tailwindcss with Fontawesome loaded as external links
  • allows overriding of used tsconfig options by passing default tsc cli flags default command line TSC options, e.g. run tsc-ui --strict to run compiler in strict mode

Installation

For local install: npm install tsc-ui or yarn add tsc-ui

For global install: npm install -g tsc-ui or yarn global add tsc-ui

Note: you should have typescript as dependency or have it installed globally, as tsc-ui requires it as peer dependency.

Usage

Run tsc-ui in terminal in the typescript project directory.

Diagnostics page

In this page you could find current problems in your codebase.

Bonus features:

  • you could click on the file path and it will open it in VSCode
  • you could click on the error code to find it's explanation in Google

Diagnostics

Project Status page

In this page you could get your overall project analytics

Status

Configuration

By default, ./tsconfig.json is used and port 3000 is taken for tsc-ui-dashboard.

You could override the tsconfig path and port of the dashboard service:

--config=../../tsconfig.dev.json --port=4242

Use cases

You may, e.g. need this tool in case you want to have a dashboard reporting status with different tsconfig options than you have in the project.

Just run with --strict flag tsc-ui --strict to run compiler in strict mode and monitor the errors.