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

@foxlight/analyzer

v0.2.0

Published

Static analysis engine for Foxlight — AST scanning, component detection, import resolution.

Readme

@foxlight/analyzer

Static analysis engine for Foxlight — the open-source front-end intelligence platform.

What's Inside

  • AST Scanner — TypeScript compiler API-based extraction of imports, exports, JSX usage, and function declarations
  • Component Detector — heuristic detection of React/Vue/Svelte/Angular components with cross-referencing
  • Prop Extractor — TypeScript type-checker based prop extraction with defaults and JSDoc descriptions
  • Vue SFC Parser — parses .vue Single File Components (<script setup>, defineProps, template scanning)
  • Svelte Parser — parses .svelte files (export let props, module scripts, template child detection)
  • Project Analyzer — orchestrates full-project analysis with glob matching, multi-framework support, and dependency graph construction

Installation

npm install @foxlight/analyzer

Note: typescript is a peer dependency. Make sure it's installed in your project.

Usage

import { analyzeProject, analyzeFile, detectComponents } from '@foxlight/analyzer';

// Analyze an entire project
const result = await analyzeProject('/path/to/project');
console.log(result.stats.componentsFound);
console.log(result.registry.getAllComponents());

// Analyze a single file
const fileAnalysis = await analyzeFile('/path/to/Button.tsx');
const components = detectComponents(fileAnalysis, 'react');

// Parse Vue SFCs
import { parseVueSFC } from '@foxlight/analyzer';
const vue = parseVueSFC(sourceCode, 'MyComponent.vue');

// Parse Svelte files
import { parseSvelteFile } from '@foxlight/analyzer';
const svelte = parseSvelteFile(sourceCode, 'Counter.svelte');

License

MIT