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

ai-site

v0.1.0

Published

Zero-config solution for creating AI-powered Next.js websites

Readme

ai-site

npm version License

Zero-config solution for creating AI-powered Next.js websites using ai-functions and ai-props.

Features

  • Zero-config setup requiring only a site.config.{ts|js} file
  • Automatic integration with ai-functions and ai-props
  • Pass-through commands to Next.js (dev/build/start)
  • Default Next.js configuration and app directory templates
  • Support for custom Next.js configuration and app directory

Installation

npm install ai-site
# or
pnpm add ai-site
# or
yarn add ai-site

Quick Start

  1. Install the package:
npm install ai-site
  1. Create a minimal site.config.ts in your project root:
export default {
  name: 'My AI-Powered Site',
  description: 'Generated with ai-site',
  // other configuration options
}
  1. Run Next.js commands:
npx ai-site dev   # Start development server
npx ai-site build # Build for production
npx ai-site start # Start production server

Configuration

The site.config.{ts|js} file supports the following options:

export default {
  // Basic site information
  name: 'My AI-Powered Site',
  description: 'Generated with ai-site',
  
  // Custom Next.js configuration (optional)
  nextConfig: {
    // Your custom Next.js configuration
  },
  
  // Custom app directory path (optional)
  appDir: './custom-app',
  
  // AI functions configuration (optional)
  aiFunctions: {
    // AI functions configuration
  },
  
  // AI props configuration (optional)
  aiProps: {
    // AI props configuration
  }
}

Custom Next.js Configuration

By default, ai-site provides a standard Next.js configuration. If you need to customize it, you can:

  1. Add a nextConfig object in your site.config.{ts|js} file
  2. Create a next.config.js or next.config.mjs file in your project root

Custom App Directory

By default, ai-site uses a template app directory. If you need to customize it, you can:

  1. Specify an appDir path in your site.config.{ts|js} file
  2. Create an app directory in your project root

CLI Commands

The ai-site CLI supports the following commands:

  • npx ai-site dev - Start the development server
  • npx ai-site build - Build for production
  • npx ai-site start - Start the production server

Dependencies