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

@kaleabdenbel/llmweb

v1.0.6

Published

A compiler for LLM-readable truth from static and dynamic sources.

Readme

llmweb 🛸

The data compiler that transforms messy application state into LLM-readable truth.

The Mental Model

llmweb is not just a metadata library. it's a compiler for your website's soul.

  • Static Truth: Your contract with the world. Deterministic. Versioned.
  • Dynamic Truth: Live data from APIs, Server Actions, or DB calls.
  • The Engine: Compiles these into a single, structured JSON object for LLMs.
  • Framework Adapters: Utilities for Next.js, React, Express, and Vanilla JS.

Quick Start

The fastest way to get started is using the CLI:

npx llmweb init

For a deep dive into the Bridge Pattern, Server Actions, and Advanced Mapping, check out our Definitive Guide.


Integration (Next.js)

1. Define your Truth

Create an LLM route to expose your site's data.

// app/llm/route.ts
import { createLLMHandler } from "@kaleabdenbel/llmweb/adapters/next";
import { getStaffList } from "@/actions/getStaffList";

const config = {
  static: "./llm.json", // Path to your static contract

  dynamic: {
    announcements: {
      from: { type: "fetch", url: "https://api.site.com/news" },
      map: {
        title: "headline",
        body: "content",
        publishedAt: "date",
      },
    },
    staff: {
      from: { type: "fn", call: getStaffList },
      map: {
        name: "full_name",
        role: "role_title",
      },
    },
  },
};

export const GET = createLLMHandler(config);

2. Use the Component

Render the compiled truth directly in your admin or SEO pages.

import { LLMJson } from "llmweb/adapters/next";

export default function LlmTruthPage() {
  return (
    <div className="p-8">
      <h1>LLM Truth Engine</h1>
      <LLMJson
        config={config}
        className="bg-gray-900 text-green-400 p-4 rounded"
      />
    </div>
  );
}

The Engine Features

  • Brutal Mapping: Rename, pick, omit, and compute fields easily.
  • Parallel Resolution: All dynamic sources are resolved in parallel.
  • Error Boundaries: Configurable failLoudly mode for strict data integrity.
  • Timeouts: Prevent slow APIs from hanging your truth route.
  • Deterministic Merging: Static structure defines the slots; dynamic data fills them.
  • AI-Friendly JSON-LD: Automatically generate Schema.org metadata for LLM context discovery.

Advanced Mapping

map: {
  fullName: (s) => `${s.first} ${s.last}`, // Computed field
  meta: {
     tags: "categories", // Nested renames
  }
}

License

MIT