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

hakk

v0.0.29-alpha

Published

Interactive programming for Node.js. Speed up your JavaScript development!

Downloads

78

Readme

hakk

Interactive programming for Node.js. Speed up your JavaScript development!

Introduction

hakk is a tool for Node.js that allows you to interactively develop, modify, and test your JavaScript code while it's running.

hakk watches your JavaScript source files, and hot updates any code you modify while your code is running. It also provides an interactive prompt (similar to the Node.js REPL) that lets you test individual parts of your program as you tinker with them.

hakk runs in your terminal and works alongside any code editor.

Getting started

To install hakk, enter the following in your shell:

npm install -g hakk

To run hakk:

cd my-node-js-project
hakk index.js

What you can do with hakk

Edit your program while it's running

If you edit any source file, hakk will hot-swap the modified variable, function or class. Existing code that hasn't been changed doesn't get reloaded: your program will maintain its running state. Things you can change include:

  • Variables: All top-level variables can be modified or redefined on the fly, including variables that were already defined using const or let.
  • Functions: You can define new functions, or change the implementation of an existing function.
  • Classes: You can add new classes, and modify existing classes. If you add a new method or field to a class, existing instances of that class will immediately adopt the new behavior.
  • Imports: You can use require or import to import new library APIs in your running program.

Interact with your program while it's running

hakk is built around the familiar Node.js REPL interface. You can call functions you are working on in your source file to test them as you develop them. You can enter a top-level variable and the REPL will return that variable's value. You can modify variables in the REPL, including those that were declared with const!

Under development

hakk is an experimental tool. Bug reports and other feedback is welcome at https://github.com/arthuredelstein/hakk

(c) 2023 Arthur Edelstein