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

@aphexcms/storage-s3

v16.0.1

Published

S3-compatible storage adapter for Aphex CMS (AWS S3, Cloudflare R2, MinIO, etc.)

Readme

@aphexcms/storage-s3

S3-compatible storage adapter for AphexCMS — Cloudflare R2, AWS S3, MinIO, and anything else speaking the S3 API.

Implements the StorageAdapter contract from @aphexcms/cms-core. Without it, Aphex stores uploads on the local filesystem, which is fine in development and wrong on any platform with an ephemeral disk.

📚 Documentation: docs.getaphex.com/storage

Install

pnpm add @aphexcms/storage-s3

Quick start

import { s3Storage } from '@aphexcms/storage-s3';
import { env } from '$env/dynamic/private';

export const storageAdapter = s3Storage({
	bucket: env.S3_BUCKET,
	endpoint: env.S3_ENDPOINT,
	accessKeyId: env.S3_ACCESS_KEY_ID,
	secretAccessKey: env.S3_SECRET_ACCESS_KEY,
	publicUrl: env.S3_PUBLIC_URL
}).adapter;
import { storageAdapter } from './src/lib/server/storage';

export default createCMSConfig({
	schemaTypes,
	database: db,
	storage: storageAdapter
});

What publicUrl is for

Assets are addressed through your app by default, which means every image is proxied through a function invocation. publicUrl (or S3_CDN_URL for a custom domain) points asset URLs straight at the bucket instead, so the bytes never touch your server.

Keep it unset if the bucket is private and you want every read to go through Aphex's access control.

Signed downloads and direct uploads

The adapter implements the optional parts of StorageAdapter that make the two heavier paths work:

  • getSignedUploadUrl — lets large uploads go browser-to-bucket, skipping the request-size ceiling on your platform. Enable it with the upload option in createCMSConfig.
  • getObjectRange — lets Aphex inspect the first bytes of a direct upload to verify its real content type, rather than trusting what the browser claimed.

Note on development

This package is consumed from dist, not from source — a change here needs a rebuild and a dev-server restart before the studio sees it.

License

MIT