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

@flightdev/helpers

v0.1.1

Published

Optional helper utilities for Flight Framework. Suggestions, not impositions.

Readme

@flightdev/helpers

Optional helper utilities for Flight Framework. Suggestions, not impositions.

Philosophy

This package provides utilities that suggest configurations based on your project. It never applies anything automatically. You decide whether to use the suggestions or not.

Installation

npm install @flightdev/helpers

Usage

Detect UI Framework

import { detectFramework } from '@flightdev/helpers/detect';

const result = await detectFramework();

console.log(result);
// {
//   framework: 'react',
//   confidence: 'high',
//   source: 'package.json',
//   reasoning: 'Found react and react-dom in dependencies'
// }

// You decide what to do with this information
if (result.framework) {
  console.log(`Detected: ${result.framework}`);
} else {
  console.log('No framework detected, using vanilla');
}

Detect Deployment Target

import { detectDeploymentTarget } from '@flightdev/helpers/detect';

const result = await detectDeploymentTarget();

console.log(result);
// {
//   adapter: 'vercel',
//   confidence: 'high',
//   source: 'environment',
//   reasoning: 'VERCEL environment variable detected'
// }

// You decide whether to use this
console.log(`Suggested adapter: ${result.adapter}`);
console.log(`To install: npm install @flightdev/adapter-${result.adapter}`);

Suggest Defaults

import { suggestDefaults } from '@flightdev/helpers/suggest';

const suggestions = await suggestDefaults();

console.log(suggestions);
// {
//   framework: 'react',
//   adapter: 'vercel',
//   rendering: 'ssr',
//   bundler: 'vite',
//   confidence: {
//     framework: 'high',
//     adapter: 'high'
//   }
// }

// Use in your config if you want
// flight.config.ts
import { defineConfig } from '@flightdev/core';

export default defineConfig({
  ui: {
    // Use suggestion or override
    framework: suggestions.framework ?? 'react',
  },
});

API Reference

detectFramework(root?: string)

Detects the UI framework used in the project.

Returns:

interface FrameworkDetection {
  framework: 'react' | 'vue' | 'svelte' | 'solid' | 'preact' | 'qwik' | 'lit' | 'htmx' | 'angular' | null;
  confidence: 'high' | 'medium' | 'low';
  source: string;
  reasoning: string;
}

detectDeploymentTarget(root?: string)

Detects the deployment environment.

Returns:

interface DeploymentDetection {
  adapter: 'node' | 'vercel' | 'netlify' | 'cloudflare' | 'aws' | 'docker' | 'fly' | 'deno' | 'bun' | null;
  confidence: 'high' | 'medium' | 'low';
  source: string;
  reasoning: string;
}

suggestDefaults(root?: string)

Returns suggested configuration based on detected context.

Returns:

interface SuggestedDefaults {
  framework: string | null;
  adapter: string | null;
  rendering: 'ssr' | 'csr' | 'ssg';
  bundler: 'vite' | 'esbuild' | 'rolldown';
  confidence: {
    framework: 'high' | 'medium' | 'low';
    adapter: 'high' | 'medium' | 'low';
  };
}

Important

This package:

  • Never applies configuration automatically
  • Never installs packages
  • Never modifies files
  • Only returns information for you to use

You are always in control.

License

MIT