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

@86d-app/store-pickup

v0.0.25

Published

Store pickup (BOPIS) — let customers buy online and pick up in store with location management and time windows

Downloads

878

Readme

@86d-app/store-pickup

Buy Online, Pick Up In Store (BOPIS) module for 86d. Lets merchants define physical pickup locations with time windows, and customers schedule order pickups with capacity management.

Installation

import storePickup from "@86d-app/store-pickup";

const module = storePickup({
  defaultPreparationMinutes: 60,
});

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | defaultPreparationMinutes | number | 60 | Default preparation time in minutes for new locations |

Store endpoints

| Method | Path | Description | |--------|------|-------------| | GET | /store-pickup/locations | List active pickup locations | | GET | /store-pickup/locations/:locationId/windows | Available windows for a location on a date | | POST | /store-pickup/schedule | Schedule a pickup for an order | | GET | /store-pickup/order/:orderId | Get active pickup for an order | | POST | /store-pickup/:id/cancel | Cancel a scheduled pickup |

Admin endpoints

Locations

| Method | Path | Description | |--------|------|-------------| | GET | /admin/store-pickup/locations | List locations (filter by active) | | POST | /admin/store-pickup/locations/create | Create a location | | GET | /admin/store-pickup/locations/:id | Get location detail | | POST | /admin/store-pickup/locations/:id/update | Update a location | | POST | /admin/store-pickup/locations/:id/delete | Delete a location |

Windows

| Method | Path | Description | |--------|------|-------------| | GET | /admin/store-pickup/windows | List windows (requires locationId) | | POST | /admin/store-pickup/windows/create | Create a pickup window | | POST | /admin/store-pickup/windows/:id/update | Update a window | | POST | /admin/store-pickup/windows/:id/delete | Delete a window |

Pickups

| Method | Path | Description | |--------|------|-------------| | GET | /admin/store-pickup/pickups | List pickups (filter by status, location, date) | | GET | /admin/store-pickup/pickups/:id | Get pickup detail | | POST | /admin/store-pickup/pickups/:id/status | Update pickup status | | POST | /admin/store-pickup/pickups/:id/cancel | Cancel a pickup |

Blackout dates

| Method | Path | Description | |--------|------|-------------| | GET | /admin/store-pickup/blackouts | List blackouts (requires locationId) | | POST | /admin/store-pickup/blackouts/create | Create a blackout date | | POST | /admin/store-pickup/blackouts/:id/delete | Delete a blackout |

Analytics

| Method | Path | Description | |--------|------|-------------| | GET | /admin/store-pickup/summary | Pickup analytics summary |

Controller API

interface StorePickupController {
  // Locations
  createLocation(params): Promise<PickupLocation>
  updateLocation(id, params): Promise<PickupLocation | null>
  getLocation(id): Promise<PickupLocation | null>
  listLocations(params?): Promise<PickupLocation[]>
  deleteLocation(id): Promise<boolean>

  // Windows
  createWindow(params): Promise<PickupWindow>
  updateWindow(id, params): Promise<PickupWindow | null>
  getWindow(id): Promise<PickupWindow | null>
  listWindows(params): Promise<PickupWindow[]>
  deleteWindow(id): Promise<boolean>

  // Pickups
  schedulePickup(params): Promise<PickupOrder>
  getPickup(id): Promise<PickupOrder | null>
  getOrderPickup(orderId): Promise<PickupOrder | null>
  listPickups(params?): Promise<PickupOrder[]>
  updatePickupStatus(id, status): Promise<PickupOrder | null>
  cancelPickup(id): Promise<PickupOrder | null>

  // Availability
  getAvailableWindows(params): Promise<WindowAvailability[]>
  getWindowBookingCount(windowId, date): Promise<number>

  // Blackouts
  createBlackout(params): Promise<PickupBlackout>
  deleteBlackout(id): Promise<boolean>
  listBlackouts(locationId): Promise<PickupBlackout[]>
  isBlackoutDate(locationId, date): Promise<boolean>

  // Analytics
  getSummary(): Promise<StorePickupSummary>
}

Pickup status lifecycle

scheduled → preparing → ready → picked_up
    ↓           ↓         ↓
 cancelled   cancelled  cancelled
  • scheduled — Customer has reserved a pickup slot
  • preparing — Staff is preparing the order
  • ready — Order is ready for customer collection
  • picked_up — Customer has collected the order (terminal)
  • cancelled — Pickup was cancelled (terminal)

Types

Key types exported from the module:

  • PickupLocation — Physical store location
  • PickupWindow — Time window for a specific day of week at a location
  • PickupOrder — A scheduled pickup reservation
  • PickupBlackout — Date when a location is unavailable
  • PickupOrderStatus"scheduled" | "preparing" | "ready" | "picked_up" | "cancelled"
  • WindowAvailability — Window with booking count and remaining capacity
  • StorePickupSummary — Aggregate analytics across all locations

Admin components

  • LocationList — Table of all pickup locations with summary stats
  • LocationDetail — Single location view with its pickup windows
  • PickupQueue — Filterable list of all pickup orders with status badges

Store components

  • LocationPicker — Customer-facing location selector with date-based window availability

Notes

  • Pickup windows are scoped to locations — you must specify locationId when listing or creating windows
  • Blackout dates are per-location, not global
  • Capacity enforcement counts only non-cancelled pickups
  • Pickup orders denormalize location name/address and window times at creation for historical accuracy
  • The module requires the orders module