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

@luciformresearch/ragforge

v0.3.3

Published

Unified RagForge library - YAML config parsing, Neo4j schema introspection, TypeScript code generation, LLM execution, agents, and RAG runtime.

Readme

@luciformresearch/ragforge

Core library for RagForge - Universal RAG Agent with Persistent Local Brain

License – Luciform Research Source License (LRSL) v1.1

© 2025 Luciform Research. All rights reserved except as granted below.

  • Free to use for: Research, education, personal projects, freelance/small-scale (≤ €100k/month revenue)
  • Commercial use above threshold requires separate agreement
  • Contact: [email protected]
  • Full text: LICENSE

Features

Brain Manager

Persistent knowledge graph with Neo4j:

  • Multi-project support with automatic switching
  • File watching with incremental ingestion
  • Diff-aware updates (only re-parse what changed)
  • Daemon architecture (wakes on demand, shuts down cleanly)
  • Project exclusion from search

Universal Ingestion

Code:

  • TypeScript, JavaScript, TSX, JSX (full AST)
  • Python (AST with scope extraction)
  • Vue, Svelte (SFC parsing)
  • HTML, CSS, SCSS
  • Regex-based fallback for exotic types

Documents:

  • PDF (Tika + Gemini Vision fallback)
  • DOCX, XLSX (native parsing)
  • Markdown (section/heading extraction)
  • JSON, YAML, CSV

Media:

  • Images (OCR + Vision + Embeddings)
  • 3D models (glTF, GLB, OBJ) with multi-view rendering

Web:

  • Recursive crawling with depth control
  • JS rendering via Playwright
  • Grounding for web search
  • LRU cache (last 6 pages)

Search & Understanding

  • Semantic Search - Ultra-fast vector embeddings via Gemini
  • Fuzzy Search - Levenshtein matching without ingestion
  • Smart Grep - Regex search across all files
  • Signature filtering - Filter by function signature, docstring, type
  • Custom Cypher - Direct Neo4j graph queries
  • Consistency locks - Search blocked during ingestion

Agent Tools

| Category | Tools | |----------|-------| | Brain | brain_search, ingest_directory, ingest_web_page, forget_path | | Files | read_file, write_file, edit_file, create_file, delete_path | | Shell | run_command, run_npm_script, git_status, git_diff | | Media | generate_image, edit_image, read_image, describe_image | | 3D | generate_3d_from_text, generate_3d_from_image, render_3d_asset, analyze_3d_model | | Web | fetch_web_page, search_web | | Project | create_project, list_projects, switch_project, exclude_project |

Agentic Capabilities

  • Structured queries with prompts applied to responses
  • Batch processing for efficient bulk operations
  • Recursive sub-agents for complex tasks
  • MCP exposure for advanced model integration
  • Compatible with local and cloud models

Installation

npm install @luciformresearch/ragforge

Usage

BrainManager

import { BrainManager } from '@luciformresearch/ragforge';

// Get singleton instance
const brain = await BrainManager.getInstance();

// Ingest a directory
await brain.quickIngest('/path/to/project', {
  projectName: 'my-project',
  generateEmbeddings: true,
});

// Search across all projects
const results = await brain.search({
  query: 'authentication handler',
  semantic: true,
  limit: 10,
});

// Exclude a project from search
await brain.excludeProject('noisy-project-id');

RagAgent

import { createRagAgent } from '@luciformresearch/ragforge';

const agent = await createRagAgent({
  brain: await BrainManager.getInstance(),
  model: 'gemini-2.0-flash',
});

// Chat with the agent
const response = await agent.chat('What functions handle user login?');

MCP Tools

import { generateBrainTools, generateBrainToolHandlers } from '@luciformresearch/ragforge';

const brain = await BrainManager.getInstance();
const tools = generateBrainTools();
const handlers = generateBrainToolHandlers({ brain });

// Use with MCP server
server.setRequestHandler(CallToolRequestSchema, async (request) => {
  const handler = handlers[request.params.name];
  return handler(request.params.arguments);
});

Project Structure

src/
├── brain/              # BrainManager, project registry
├── runtime/
│   ├── adapters/       # File parsers (code, docs, media, web)
│   ├── agents/         # RagAgent implementation
│   ├── embedding/      # Gemini embedding provider
│   ├── ingestion/      # Incremental ingestion, file watcher
│   └── projects/       # ProjectRegistry, project switching
├── tools/              # All agent tools
│   ├── brain-tools.ts
│   ├── file-tools.ts
│   ├── shell-tools.ts
│   ├── media-tools.ts
│   └── web-tools.ts
└── defaults/           # Default YAML configs

Related Packages


Development

# Build
npm run build

# Watch mode
npm run dev

# Test
npm test

License

LRSL v1.1 - See LICENSE file for details.