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

@equinor/fusion-framework-cli-plugin-ai-index

v1.0.4

Published

AI indexing plugin for Fusion Framework CLI providing document embedding and chunking utilities

Readme

@equinor/fusion-framework-cli-plugin-ai-index

AI indexing plugin for Fusion Framework CLI providing document embedding and chunking utilities.

Installation

pnpm add -D @equinor/fusion-framework-cli-plugin-ai-index

Configuration

After installing the plugin, create a fusion-cli.config.ts file in your project root:

import { defineFusionCli } from '@equinor/fusion-framework-cli';

export default defineFusionCli(() => ({
  plugins: [
    '@equinor/fusion-framework-cli-plugin-ai-index',
  ],
}));

The CLI will automatically discover and load plugins listed in this configuration file. The config file can be .ts, .js, or .json. The defineFusionCli helper provides type safety and IntelliSense support.

Features

This plugin extends the Fusion Framework CLI with AI indexing capabilities:

  • Document embedding and chunking utilities
  • Markdown/MDX document chunking with frontmatter extraction
  • TypeScript/TSX TSDoc extraction and chunking
  • Glob pattern support for file collection
  • Git diff-based processing for workflow integration
  • Dry-run mode for testing without actual processing

Usage

Once installed, the embeddings command is automatically available:

# Generate embeddings from documents
ffc ai embeddings ./src

Commands

ai embeddings

Document embedding utilities for Large Language Model processing.

Features:

  • Markdown/MDX document chunking with frontmatter extraction
  • TypeScript/TSX TSDoc extraction and chunking
  • Glob pattern support for file collection
  • Git diff-based processing for workflow integration
  • Dry-run mode for testing without actual processing
  • Configurable file patterns via fusion-ai.config.ts

Options:

  • --dry-run - Show what would be processed without actually doing it
  • --config <config> - Path to a config file (default: fusion-ai.config.ts)
  • --diff - Process only changed files (workflow mode)
  • --base-ref <ref> - Git reference to compare against (default: HEAD~1)
  • --clean - Delete all existing documents from the vector store before processing
  • --openai-api-key <key> - API key for Azure OpenAI
  • --openai-api-version <version> - API version (default: 2024-02-15-preview)
  • --openai-instance <name> - Azure OpenAI instance name
  • --openai-embedding-deployment <name> - Azure OpenAI embedding deployment name
  • --azure-search-endpoint <url> - Azure Search endpoint URL
  • --azure-search-api-key <key> - Azure Search API key
  • --azure-search-index-name <name> - Azure Search index name

Examples:

$ ffc ai embeddings --dry-run ./src
$ ffc ai embeddings "*.ts" "*.md" "*.mdx"
$ ffc ai embeddings --diff
$ ffc ai embeddings --diff --base-ref origin/main
$ ffc ai embeddings --clean "*.ts"

Configuration

The plugin requires Azure OpenAI and Azure Cognitive Search configuration. See the main CLI documentation for details on setting up API keys and endpoints.

You can also create a fusion-ai.config.ts file to configure file patterns and metadata processing:

import { configureFusionAI } from '@equinor/fusion-framework-cli-plugin-ai-index';
import type { FusionAIConfigWithIndex } from '@equinor/fusion-framework-cli-plugin-ai-index';

export default configureFusionAI((): FusionAIConfigWithIndex => ({
  index: {
    patterns: ['**/*.ts', '**/*.md', '**/*.mdx'],
    metadata: {
      attributeProcessor: (attributes, document) => {
        // Custom metadata processing
        return attributes;
      },
    },
    embedding: {
      chunkSize: 1000,
      chunkOverlap: 200,
    },
  },
}));

License

ISC