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

typed-config-plugins

v0.5.2

Published

adds types to expo config plugins, like @types but for expo config plugins

Downloads

293

Readme

typed-config-plugins npm npm

Type Safety for Your Expo Config Plugins.

Expo config plugins are incredibly powerful, but their configuration lacks the safety net of type checking. typed-config-plugins bridges this gap, bringing the full power of TypeScript to your Expo project's configuration.

✨ Features

  • Enhanced Developer Experience: Get autocomplete and type validation directly in your app.config.ts files, making plugin configuration less error-prone and more efficient.
  • Pre-built Types: Includes ready-to-use TypeScript definitions for many popular Expo config plugins, generated by analyzing their source code.
  • Extensible: Easily add custom types for your own or third-party plugins using TypeScript module augmentation.
  • Seamless Integration: Designed to work smoothly with your existing app.config.ts setup. Note: JSON config files are not supported.

📦 Installation

npm i typed-config-plugins

🚀 Usage

Update your app.config.ts file to use the plugin helper from typed-config-plugins.

import { type ConfigContext, type ExpoConfig } from "expo/config";
import { plugin } from "typed-config-plugins";

export default ({ config }: ConfigContext): ExpoConfig => ({
    ...config,
    // ... other config
    plugins: [
        // typed syntax by this package (with type checking/autocompletion):
        plugin("expo-build-properties", { android: { minSdkVersion: 26 } }),
        
        // normal syntax (no type checking/autocompletion):
        ["expo-build-properties", { android: { minSdkVersion: 26 } }],
    ],
});

🤝 Adding Custom Plugin Types

To extend typed-config-plugins with types for your own plugins or plugins not yet covered, you can use TypeScript's module augmentation feature.

Create a new declaration file (e.g., config-plugins.d.ts) in your project's root or src directory with the following content:

// config-plugins.d.ts
import "typed-config-plugins"; // Import the original type declarations

declare module "typed-config-plugins" {
    // Extend the `ThirdPartyPlugins` interface with your custom plugin types
    interface ThirdPartyPlugins {
        // Define options for "demo-package" (as used in the example)
        "demo-package": { bar: string, baz?: number };
        // more packages here...
    }
}

Now, when you use plugin("my-custom-plugin", { /* ... */ }) in your app.config.ts, TypeScript will provide autocompletion and validate the options against the types you've defined.

Releases

This repo uses Changesets.

  1. For any user-facing package change, run bun run changeset and commit the generated file in .changeset/.
  2. When changesets reach main, GitHub Actions opens or updates a release PR with the version bump and generated changelog.
  3. Merge that release PR to publish to npm.