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

@sap-ux/fiori-docs-embeddings

v0.4.9

Published

SAP Fiori documentation indexing

Readme

Changelog Github repo

@sap-ux/fiori-docs-embeddings

A Node.js package that indexes SAP Fiori related documentation from multiple sources and generates vector embeddings for semantic search capabilities.

What it does

This module- Crawls documentation from GitHub repositories (see Configuration for a list of default sources) Example sources:

https://github.com/SAP-docs/btp-fiori-tools (Fiori Tools documentation)

https://github.com/SAP-docs/sapui5/tree/main/docs/06_SAP_Fiori_Elements (UI5 Fiori Elements documentation)

https://github.com/SAP-samples/fiori-tools-samples (Sample applications)

https://github.com/SAP-samples/fiori-elements-feature-showcase (Feature examples)

https://ui5.sap.com/test-resources/sap/fe/macros/designtime/apiref/api.json (Design Time API Reference)

https://ui5.sap.com/test-resources/sap/fe/core/fpmExplorer/index.html#/overview/introduction SAP Fiori Development Portal

  • Parses markdown, JSON, TypeScript, and other file types
  • Generates AI-powered vector embeddings using transformers
  • Stores embeddings in a local LanceDB vector database
  • Provides tools for semantic and keyword search across documentation

Installation

npm install @sap-ux/fiori-docs-embeddings

Usage

Basic Usage

import { getDataPath, getEmbeddingsPath } from '@sap-ux/fiori-docs-embeddings';

// Get paths to data directories
const docsPath = getDataPath();
const embeddingsPath = getEmbeddingsPath();

Building Documentation Index

# Set GitHub token to avoid rate limits
export GITHUB_TOKEN=your_github_token

# Build documentation index
npm run update-docs

# Generate embeddings
npm run update-embeddings

# Or do both
npm run update-all

Available Scripts

  • update-docs - Crawl and index documentation from configured sources
  • update-embeddings - Generate vector embeddings from indexed documents
  • update-all - Run both documentation indexing and embedding generation

Configuration

The module indexes documentation from these sources by default:

  • SAP-docs/btp-fiori-tools (Fiori Tools documentation)
  • SAP-docs/sapui5 (UI5 framework documentation)
  • SAP-samples/fiori-tools-samples (Sample applications)
  • SAP-samples/fiori-elements-feature-showcase (Feature examples)

Environment Variables

  • GITHUB_TOKEN - GitHub personal access token (recommended to avoid rate limits)

Data Structure

Generated data is organized as:

data/
├── docs/           # Parsed documentation files
├── embeddings/     # Vector database (LanceDB)
└── search/         # Search indexes

Features

  • Multi-source indexing - Supports GitHub repositories and JSON APIs
  • File type support - Markdown, JSON, TypeScript, JavaScript, XML, YAML, and more
  • Vector embeddings - Uses sentence-transformers/all-MiniLM-L6-v2 model
  • Local storage - All data stored locally with LanceDB
  • Caching - Intelligent caching to avoid unnecessary API calls
  • Chunking - Smart document chunking for optimal embedding generation

Development

# Install dependencies
npm install

# Run tests
npm test

# Check types
npm run build-compiler

# Clean generated files
npm run clean

License

Apache-2.0