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

@afosto/create-shop

v0.0.3

Published

Create a new Afosto shop project

Readme

@afosto/create-shop

The easiest way to scaffold a new Afosto storefront. This CLI sets up a production-ready shop connected to your Afosto backend — with routing, i18n, and a component library already wired up.

Prerequisites

Getting started

Interactive

npm create @afosto/shop@latest
# or
pnpm create @afosto/shop@latest
# or
yarn create @afosto/shop@latest
# or
bunx @afosto/create-shop@latest

You will be asked for the name of your project. The package manager is detected automatically from the command you used to run the CLI — no prompt needed.

Non-interactive

You can also pass arguments to skip the prompts:

npm create @afosto/shop@latest my-shop -- --use-pnpm --yes

See all options with --help:

Usage: @afosto/create-shop [directory] [options]

Options:
  -v, --version        output the version number
  --use-npm            use npm as the package manager
  --use-pnpm           use pnpm as the package manager
  --use-yarn           use yarn as the package manager
  --use-bun            use bun as the package manager
  -y, --yes            accept all defaults and skip prompts
  -e, --example <url>  GitHub URL of a template to bootstrap from
  -h, --help           display help information

After scaffolding

  1. Copy .env.example to .env.local and fill in your credentials:
cp .env.example .env.local
NEXT_PUBLIC_AFOSTO_BACKEND_DOMAIN_NL=https://...
NEXT_PUBLIC_AFOSTO_BACKEND_DOMAIN_EN=https://...
NEXT_PUBLIC_AFOSTO_STOREFRONT_TOKEN_NL=...
NEXT_PUBLIC_AFOSTO_STOREFRONT_TOKEN_EN=...
NEXT_PUBLIC_FRONTEND_DOMAIN_NL=https://...
NEXT_PUBLIC_FRONTEND_DOMAIN_EN=https://...
  1. Review afosto.config.ts — this file wires your env vars into the app. No changes needed if your .env.local is correct.

  2. Start the development server:

npm run dev
# or pnpm dev / yarn dev / bun dev

What's included (default template)

The default template is a full Next.js storefront with:

| What | Details | |---|---| | Framework | Next.js (App Router, TypeScript) | | Styling | Tailwind CSS + tailwind-variants | | i18n | next-intl — Dutch and English out of the box | | Data fetching | TanStack Query | | Afosto SDK | @afosto/shop-react, @afosto/cms-client, @afosto/storefront | | UI primitives | Base UI | | Linting | ESLint |

Using --example with a custom GitHub URL bootstraps from that repo instead — the contents depend on the example you choose.

Roadmap

More official templates are planned and will be selectable during the interactive setup:

| Template | Status | |---|---| | Next.js (current) | Available | | Nuxt | Planned | | TanStack Start | Planned |