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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ntasp

v1.1.0

Published

Personal Dev Memory - Lightweight alternative to git stash with global snippet vault

Downloads

104

Readme

ntasp

Personal Dev Memory - Lightweight alternative to git stash with global snippet vault

What is ntasp?

ntasp is a CLI tool for developers who want to:

  • Save code snippets without git
  • Compare saved versions with current files
  • Work across multiple projects
  • Keep a personal code vault

Think of it as "git stash" but global and project-independent.

Features

  • Save any file to a global vault
  • List all saved snippets with timestamps
  • Show full content of saved snippets
  • Restore snippets to working directory
  • Apply snippets to existing files (overwrite)
  • Delete unwanted snippets
  • Diff saved version vs current file (opens in IDE like Git changes)

Installation

npm install
npm link

Or run directly:

npx . <command>

Usage

Save a file

ntasp save app.js

List all snippets

ntasp list

Show snippet content

ntasp show 1

Restore snippet

ntasp restore 1
ntasp restore 1 app-backup.js

Apply snippet to existing file

ntasp apply 1
ntasp apply 1 app.js

Note: apply overwrites existing files, while restore creates new files.

Compare with current file

Opens diff view directly in IDE (like Git changes):

ntasp diff 1
ntasp diff 1 app.js

Supported IDEs (auto-detected):

  • VS Code
  • IntelliJ IDEA
  • WebStorm
  • Sublime Text

Force console output:

ntasp diff 1 --console

Note: By default, diff will try to open your IDE. If no IDE is detected, it will fallback to console output.

Delete snippet

ntasp delete 1

How it works

All snippets are stored in:

~/.ntasp-vault/
  index.json
  1.json
  2.json
  ...

Data Structure

index.json

{
  "lastId": 3,
  "items": [
    {
      "id": 1,
      "name": "app.js",
      "createdAt": "2024-01-01T00:00:00.000Z"
    }
  ]
}

Snippet file (e.g., 1.json)

{
  "id": 1,
  "name": "app.js",
  "createdAt": "2024-01-01T00:00:00.000Z",
  "content": "console.log('hello');"
}

Why ntasp?

  • No git required - Works anywhere
  • Global - Access from any project
  • IDE Integration - Diff view opens directly in your editor
  • Simple - File-based, no database
  • Fast - Instant save and restore
  • Cross-platform - Mac, Linux, Windows

Roadmap

Current (v1.0)

  • [x] save
  • [x] list
  • [x] show
  • [x] restore
  • [x] apply
  • [x] delete
  • [x] diff
  • [x] IDE integration (VS Code, IntelliJ, WebStorm, Sublime)

Future (v1.1+)

  • [ ] Full-text search
  • [ ] Tag system
  • [ ] Edit snippet
  • [ ] Rename snippet
  • [ ] Notes/descriptions
  • [ ] Encryption mode
  • [ ] Cloud sync
  • [ ] Export/import
  • [ ] Random string IDs
  • [ ] Git branch awareness
  • [ ] History/versions

Technical Stack

  • Node.js
  • chalk (colors)
  • diff (comparison)

Requirements

  • Node.js >= 14.0.0

License

MIT