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

@dxworks/insider

v2.12.0

Published

Insider is a belt of tools built on the idea of searching regular expressions in code

Downloads

7

Readme

Insider

Insider is a belt of tools built on the idea of searching regular expressions in code. Insider is able to detect code smells, the usage of external libraries and the topics that a software project approaches by only using Regex. This means that Insider does not use any type of parsing and is therefore language independent.

Installation

From Github

To install Insider from Github, please download from the latest release from Github, the insider.zip archive and unzip it to a specific location. The contents of this archive are:

  • insider-*.jar - the executable jar file
  • insider.bat - a batch script for executing Insider on Windows
  • insider.sh - a shell script for executing insider on Windows
  • config - a folder for configuration files, described more in the Configuration Section
  • results - a folder where Insider will output the results.

From Docker

...

From Code

Clone the repository from here.

Run gradle clean build to obtain an executable jar.

Configuration

Edit the configuration file (config/insider-conf.properties), to specify the root folder of the project's sources.

Commands

Find Command

  • In order to find the occurrences of the libraries in the analyzed project. Use the following command (run Insider using the insider.bat or insider.sh script):
insider.sh find config/libraries.json
  • Detect Simple Code Smells. Use the following command (run Insider using the insider.bat or insider.sh script):
insider.sh find config/code_smells.json
  • You can also run the find command with both files at once:
insider.sh find config/libraries.json config/code_smells.json

The commands will generate two .json files (PROJECT_ID-libraries.json and PROJECT_ID-code_smells.json) in the results folder.

Voyager Integration

Insider is also a Voyager Instrument. To configure Insider from Voyager you can add the following fields in the mission.yml file:

# A map of instrument names to commands and parameters.
# When 'runsAll' is false the mission will run only the instruments
# with the commands declared here, in this order.
instruments:
  insider:
    # A map of parameter name to value
    # Only add the parameters you want to override (the default values are written here)
    parameters:
      max-heap: 4g # will configure the maximum heap space the jvm process will get. For large process may be needed to be set to 16g or higher
      findConfig: 'config/fingerprints/code_smells.json config/fingerprints/libraries.json' # a space separated list of insider fingerprints
      inspectConfig: 'config/rules' # a space separated list of folders or Application Inspector specific rules, like the ones here: https://github.com/microsoft/ApplicationInspector/tree/main/AppInspector/rules/default

# A map of environment variables, name to value, for voyager missions
# overwrites the variables from global config, instrument and command
# Only set the environment variables you need.
environment:
  INSIDER_LANGUAGES: 'java,c++,c#' # a comma separated list of the languages to analyse (just a sample example)
  INSIDER_LINGUIST_FILE: "${instrument}/languages.yml" # a file containing languages to extension mappings according to [GitHub Linguist](https://github.com/github/linguist/blob/master/lib/linguist/languages.yml)
  INSIDER_DEPEXT_MAX_NAMESPACE_LENGTH: 200 # the maximum length of a namespace for DepExt analysis

Acknowledgements

The inspect command is inspired by the Application Inspector project created by Microsoft. Insider even uses the same input files as Application Inspector.