import-cost.nvim: import costs finally to neovim!

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • import-cost.nvim

    Display javascript import costs inside of neovim

    If you search a package on bundlephobia you get the size of the entire package (see here). However, the entire react module doesn't get bundled and shipped to the client - only what you use does. That's why the npm module, using webpack, can get you more accurate sizes. If you look at import-cost.nvim, the front preview displays this fact: different import statements yield different code bundle sizes (although the npm module doesn't subtract duplicate bundled code). In the screenshot different react imports are different sizes. Not the most perfect analysis tool, but it just gives you insight about what you're using (for example, I didn't expect useFormik to be 9x bigger than useRef).

  • import-cost

    displays the import size of the package you are importing inside the code editor

    I actually tried using treesitter and bundlephobia in my first approach before defaulting to the npm module.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • gruvbox-material

    Gruvbox with Material Palette

    My own version of gruvbox-material. Highlights are done here in my dotfiles and the colorscheme itself is here

  • dots

    My personal dotfiles, scripts, and general program settings. (by barrett-ruth)

    My own version of gruvbox-material. Highlights are done here in my dotfiles and the colorscheme itself is here

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts