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 🙏

© 2025 – Pkg Stats / Ryan Hefner

scda

v0.2.0

Published

SCDA, a simple Static Code Dependency Analyzer (only for CoffeeScript ATM)

Readme

SCDA, a simple Static Code Dependency Analyzer (only for CoffeeScript ATM)

Table of Contents generated with DocToc

What it Does

  • Scans source code for
    • (function and method) definitions, recording their locations
    • (function and method) calls, recording their locations
  • Can display all (potential) definition sites for all calls.
  • Accepts a chain of dependencies (in terms of module file names) in the form of a list (with [ 'Main.js', 'X-mixin.js', ] indicating that Main.js depends on X-mixin.js, thus, X-mixin.js should not call any method defined in Main.js, but Main.js can use any method defined in X-mixin.js).
  • This is useful in building a 'stratified' chain of mixin modules.
  • When given a chain of dependencies, can display all (potential) calls where the dependency chain assumption is violated.
  • A better / more general model would be to group deppendencies and to allow calls within a group; this is left for the future.

Shortcomings

  • In order to keep things simple, pattern matching has been implemented with the CoffeeScript tokenizer (not a parser).
  • Conceivably, we could move to a JavaScript parser (and use source maps for the benefits of all the CoffeeScripters and TypeScripters out there).
  • There should be packages on npm that can tell me the location of a method definition when given the call site, but I'm not aware of any.
  • In its current state, does not allow to do full dependency checking (such as considering code in node_modules).
  • In its current state, does not allow to disentangle ambiguous names.
  • As such, all discovered def/call pairs are only potential, not definitive.

How it is Implemented

  • Works with an in-memory or file based SQLite3 database.
    • This part is a bit of a demo to show that integrating a relational DB into an application can be advantageous
  • Uses ICQL/DBA as DB abstraction.