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

ng-bubble

v0.1.4

Published

[![npm version](https://badge.fury.io/js/ng-bubble.svg)](https://badge.fury.io/js/ng-bubble)

Downloads

40

Readme

npm version

ng-bubble

ng-bubble is a WebComponent that lives in your angular project (via index.html) and help you with debugging.

npm version

Motivation (Medium link)

Motivations behind ng-bubble are two-fold:

  • "Automating" trivial tasks : When my junior joined our frontend team, he struggled to find right component code in IDE (among 1000+ files) for a section of website. I realized that there should be a better way to navigate from website to component code in IDE.
  • Making ng-bubble single point of reference for debugging: We love debugging with console.log, debugger and network tab as well. But these tools are slow and have very strict behaviour. What if you need to replay same ajax request with different params? How do you hook into change Angular change detection? How do you see state of a component?

Install

  1. Install with npm: npm install -g ng-bubble
  2. Open your angular project in VScode or Webstorm or any other IDE
  3. Run this command at the root of your project: ng-bubble
  4. Above command will give you a script, copy and paste that right after <body> your index.html
    <body>
        <js-bubble></js-bubble>
        <script src="http://localhost:11637/assets/js/js-bubble.js"></script>
    ...
    </body>
  5. Run your angular project in another terminal (ex: ng serve)
  6. After ng-bubble is started, you can use following hot keys:
    1. To get menu: shift + hover on a component

    2. To open component in IDE: Double click

Usage

  • To get menu: shift + hover on a component
  • To open component in IDE: Double click
  • To reset configurations: ng-bubble --ask

Prerequisites

  1. Please make sure you have respective cli tools install for your IDEs. For example:

    If you are using VS CODE: code <file path> should open that file path in VS CODE.

    If you are using Webstorm: webstorm <file path> should open that file path in Webstorm.

    If you are using any other IDE, enter your IDE's CLI/exe name when prompted.

  2. Works on Angular cli project. Angular 1 is not supported.

Video introduction

Youtube link

Features (Current and Upcoming):

1. Navigating from component view (in website) to component code (in IDE) (Done in v0.1): [Hotkeys: double click on component] 
2. Display component files (for code review etc.) (Done in v0.1): [Hotkeys: shift + mousehover on component]
3. Display component state (Done in v0.1): [Hotkeys: shift + mousehover on component] 
4. Search project file (Done in v0.1)

Upcoming features:
5. console layer (Planned for v0.2)
6. Network layer (Planned for v0.2)
7. Saving edits in component files (Planned for v0.3)
8. Display component state (realtime) (Planned for v0.3)
9. Component method hooks (Planned for v0.3)