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

apollo-inspector-ui

v0.0.11

Published

Records all operations being executed via Apollo client in a given time and shows info about each operation. This UI is using [apollo-inspector](https://www.npmjs.com/package/apollo-inspector?activeTab=readme) library<br>

Downloads

196

Readme

Operations Tracker

Records all operations being executed via Apollo client in a given time and shows info about each operation. This UI is using apollo-inspector library

plot

What kind of issues can be debugged using the tool

  • Helps figuring out unwanted operations being fired in render phase
  • Help in figuring out the reasons for multiple re-renders of the same watch query​
  • Help figuring out issues with conflicting queries​
  • Shows field name in case missing field error
  • Detailed time info lets you figure out if queries are being fired in Waterfall model or not.
  • Helps figuring out if data is taking too much time to get written to cache.
  • Shows why an operation failed

Built in features

  • Tracks all operations Query, Mutation, subscription, client.readQuery, client.writeQuery, cache.readQuery, cache.writeQuery, client.readFragment, client.writeFragment, cache.readFragment, cache.writeFragment.
  • For each operations, below info is available
    • Operation Name
    • Operation Type
    • Failure or Succeded
    • Fetch policy
    • Total execution time
    • Operation queued at time
    • Size in KB of the result of the Operation
  • There are filters present using which, one can filter operations list
    • Operation type filter (Query/Mutation/Subscription)
    • Results from filter (Cache/Network)
    • Operation Status (Succeeded/Failed)
  • It also shows which all operations are responsible for re-rendering of an query in Affected Queries view
  • It allows you copy operations data in JSON format.

How to use

  1. Select the apollo clients which needs to be tracked plot

  2. Click on Record button

  3. Do some changes in UI.

  4. It'd start showing all the on-going operations.

plot 5. Click on a operation to see detailed view plot

  1. One can select operation to copy by checking the checkboxes for each operation.

Filter options

  • Supports comma separate search text to search multiple operations
  • Filter by Operation type (Query/Mutation/Subscription)
  • Filter by from where the result is being fetched (Cache/Network)
  • Filter by operation status (Succeded/Failed)

Copy options

plot

Copy All Operations

It copies all the operations which have been recorded

Copy Filtered Operations

It copies only the current view of the operations

Copy Checked Operations

It copies only those operations, whose check boxes are checked

Copy currently Opened Operation

It copies the operation, which is currently opened in the detailed view

Affected Queries view

This view shows what operations led to re-render of a given query. On the left side is the list of queries which have been re-rendered and on the right side, it shows what all operation caused it.

plot

Demo

Run yarn parcel:test:start to see the demo the tool working