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

@afterlink/ai-assistant

v1.2.4

Published

Offline AI assistant for AfterLink — 100% local RAG pipeline with FAISS vector search, BM25, cross-encoder reranking, and an interactive terminal UI

Readme

@afterlink/ai-assistant (Proprietary Neural Network Model)

A fully-custom, 100% offline Multi-Layer Perceptron (MLP) Neural Network built entirely from scratch in Node.js.

This package does not rely on Ollama, Llama, Gemini, OpenAI, or any other pre-trained third-party LLMs. It represents your own proprietary neural network trained directly on the AfterLink Communication Protocol source code, examples, and documentation, complete with high-fidelity CLI micro-animations.


Technical Architecture

  • Input Layer: Vector size equal to vocabulary size (default: 800 most frequent tokens across the codebase). Evaluated using normalized bag-of-words.
  • Hidden Layer: 64 neurons utilizing the ReLU (Rectified Linear Unit) activation function.
  • Output Layer: Dynamic dimension matching the total number of knowledge categories and code blocks parsed (344 endpoints/specifications). Uses the Softmax activation function to output clear class probability distributions.
  • Backpropagation Engine: Employs categorical cross-entropy loss with Stochastic Gradient Descent (SGD) weight updates.
  • Inference Pipeline: Converts natural language queries into feature vectors using TF-IDF Inverse Document Frequency (IDF) scaling, runs the forward propagation pass, and retrieves the most statistically relevant codebase solutions.

Premium Console Micro-Animations

To provide a state-of-the-art interactive coding experience, the CLI terminal features custom physics-based TUI animations:

  1. Sweep Text Shimmer: A dynamic, looping bright Cyan light sweep that runs across "🧠 Analyzing query against proprietary neural network..." during active neural reasoning, cleaning up seamlessly upon completion.
  2. Line-by-Line Dot Matrix Scan: Phased console printing. Every output block—including code panels, boxes, headers, and resource lists—is first drawn as a sequence of high-contrast dot matrix loading placeholders (░░░░░░░) before scanning and revealing the actual formatted, colorized text.

Project Structure

packages/ai-assistant/
├── README.md               # User guide & documentation
├── package.json            # Scripts & project manifest
└── src/
    ├── afterlink-knowledge.json  # Ingested codebase database (generated)
    ├── vocabulary.json     # Trained vectorizer terms (generated)
    ├── model-weights.json  # Trained neural network weights (generated)
    ├── neural-net.js       # Forward-pass, Backprop & SGD Neural Network class
    ├── ingest.js           # Extracts text chunks from codebase
    ├── train.js            # Vocabulary compiler and Backprop training loop
    └── chat.js             # Interactive terminal UI executing local inferences and TUI animations

1. Prerequisites & Setup

Ensure you have Node.js 20.0.0 or higher installed. There are no other software dependencies (no Ollama, no API keys, no python binaries).

Install the package developer dependencies:

pnpm install

2. Training Your Custom Model

To index your codebase and train your proprietary neural network, execute the compilation pipeline:

# Step 1: Ingest documentation and source code
node packages/ai-assistant/src/ingest.js

# Step 2: Train the Multi-Layer Perceptron Neural Network
node packages/ai-assistant/src/train.js

During execution of train.js, the script will build the vectorizer vocabulary, calculate Inverse Document Frequencies (IDF), initialize the neural network matrices, perform gradient descent, and save the parameters.


3. Launching the Assistant

To query your trained model and seek assistance on building applications, troubleshooting bugs, or retrieving specifications with animated transitions:

node packages/ai-assistant/src/chat.js

Type a question such as:

  • "How do I set up a secure AfterLink server with TLS?"
  • "What is the structure of the 10-byte binary frame header?"
  • "Explain the Zod schema validation rules."