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

@nuxfly/core

v1.0.9

Published

Nuxt module for Fly.io integration with storage and database support

Readme

@nuxfly/core

A Nuxt module that provides seamless integration with Fly.io infrastructure, including SQLite databases and S3 storage.

[!WARNING] This project is in early development and may not be fully functional yet.

Features

  • 🗄️ SQLite Database - libSQL integration with automatic connection management
  • 📦 S3 Storage - Public and private file storage with Minio client for elegant API - pre-signed URLs support
  • 🔧 Fly.io Integration - Access to Fly.io proxy headers through useFlyProxy() composable
  • 🎯 TypeScript Support - Full type safety
  • Server-side Ready - Optimized for Nuxt server-side rendering
  • 🔄 Easy Configuration - Automatic setup based on environment variables

Installation

npm install @nuxfly/core

Setup

Update your nuxt.config.ts file:

  1. Add the module to your modules array.
  2. Set which services to enable in the nuxfly top-level configuration.
  3. Set your default values for the runtimeConfig. Since the runtime config can be overridden by environment variables, you can set them in your deployment environment (e.g., Fly.io secrets) but use testing/local values hard-coded in the nuxt.config.ts for local development.
export default defineNuxtConfig({
  modules: ['@nuxfly/core'],
  nuxfly: {
    litestream: true,      // Enable SQLite with Litestream backup
    publicStorage: true,   // Enable public S3 storage
    privateStorage: true,  // Enable private S3 storage
  },
  runtimeConfig: {
    nuxfly: {
      publicBucket: {
        s3AccessKeyId: 'AAAAAAAAAAAAAAAAAAAA',
        s3SecretAccessKey: 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB',
        s3Endpoint: 'http://localhost:8200',
        s3Bucket: 'nuxfly-public',
        s3Region: 'auto',
      },
      privateBucket: {
        s3AccessKeyId: 'AAAAAAAAAAAAAAAAAAAA',
        s3SecretAccessKey: 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB',
        s3Endpoint: 'http://localhost:8200',
        s3Bucket: 'nuxfly-private',
        s3Region: 'auto',
      },
    },
    public: {
      s3PublicUrl: 'http://localhost:8200/nuxfly-public',
    },
  }
})

Environment Variables

The module uses Nuxt runtime configuration, so the environment variables supported are just mapped from the runtimeConfig:

  • NUXT_NUXFLY_PUBLIC_BUCKET_S3_ACCESS_KEY_ID
  • NUXT_NUXFLY_PUBLIC_BUCKET_S3_SECRET_ACCESS_KEY
  • NUXT_NUXFLY_PUBLIC_BUCKET_S3_ENDPOINT
  • NUXT_NUXFLY_PUBLIC_BUCKET_S3_BUCKET
  • NUXT_NUXFLY_PUBLIC_BUCKET_S3_REGION
  • NUXT_NUXFLY_PRIVATE_BUCKET_S3_ACCESS_KEY_ID
  • NUXT_NUXFLY_PRIVATE_BUCKET_S3_SECRET_ACCESS_KEY
  • NUXT_NUXFLY_PRIVATE_BUCKET_S3_ENDPOINT
  • NUXT_NUXFLY_PRIVATE_BUCKET_S3_BUCKET
  • NUXT_NUXFLY_PRIVATE_BUCKET_S3_REGION
  • NUXT_PUBLIC_S3_PUBLIC_URL

TypeScript Support

The module provides full TypeScript support with auto-completion:

// Auto-completion for all composables
const { db } = useSqliteDatabase()
const { minioClient, bucket, getUrl } = usePublicStorage()
const { minioClient, bucket } = usePrivateStorage()

Documentation

For detailed documentation and examples, visit: nuxfly documentation

License

MIT