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/settings

v0.0.40

Published

Store settings and configuration module for 86d commerce platform

Readme

[!WARNING] This project is under active development and is not ready for production use. Please proceed with caution. Use at your own risk.

Settings Module

📚 Documentation: 86d.app/docs/modules/settings

Global key-value store for store configuration. Settings are organized into groups (general, contact, social, legal, commerce, appearance) and managed through dedicated admin sub-pages.

Installation

npm install @86d-app/settings

Usage

import settings from "@86d-app/settings";

const module = settings({
  defaultStoreName: "My Store",
});

Configuration

| Option | Type | Default | Description | |---|---|---|---| | defaultStoreName | string | — | Fallback store name shown before settings are configured |

Store Endpoints

| Method | Path | Description | |---|---|---| | GET | /settings | Get all public settings as a flat key-value map |

Admin Endpoints

| Method | Path | Description | |---|---|---| | GET | /admin/settings | Get all settings (grouped) | | POST | /admin/settings/update | Update a single setting | | POST | /admin/settings/update-bulk | Update multiple settings at once | | GET | /admin/settings/:key | Get a single setting by key | | DELETE | /admin/settings/:key/delete | Delete a setting |

Setting Keys

The SETTING_KEYS constant is exported for type-safe key references:

| Group | Keys | |---|---| | General | storeName, storeDescription, storeTagline, timezone, locale | | Contact | supportEmail, supportPhone, businessAddress, businessCity, businessState, businessPostalCode, businessCountry | | Social | facebook, instagram, twitter, tiktok, youtube, pinterest | | Legal | returnPolicy, privacyPolicy, termsOfService, shippingPolicy | | Commerce | currency, weightUnit, dimensionUnit, orderPrefix, taxIncluded | | Appearance | logoUrl, faviconUrl, brandColor, announcementBar, announcementBarEnabled |

import { SETTING_KEYS } from "@86d-app/settings";

// SETTING_KEYS.storeName === "general.store_name"
// SETTING_KEYS.currency === "commerce.currency"

Controller API

The SettingsController interface is exported for inter-module use.

interface SettingsController {
  get(key: string): Promise<StoreSetting | null>;
  getValue(key: string): Promise<string | null>;
  set(key: string, value: string, group?: SettingGroup): Promise<StoreSetting>;
  setBulk(settings: Array<{ key: string; value: string; group?: SettingGroup }>): Promise<StoreSetting[]>;
  getByGroup(group: SettingGroup): Promise<StoreSetting[]>;
  getAll(): Promise<StoreSetting[]>;
  getPublic(): Promise<Record<string, string>>;
  delete(key: string): Promise<boolean>;
}

Types

type SettingGroup = "general" | "contact" | "social" | "legal" | "commerce" | "appearance";

interface StoreSetting {
  id: string;
  key: string;
  value: string;
  group: SettingGroup;
  updatedAt: Date;
}

Notes

  • All setting values are stored as strings. Consumers must parse boolean/number values as needed (e.g., taxIncluded is "true" or "false").
  • The store endpoint (GET /settings) returns a flat Record<string, string> of all settings for client-side consumption.
  • setBulk updates multiple settings atomically in a single call.
  • The admin UI has five sub-pages (general, contact, social, legal, commerce) but only the main "Settings" entry appears in the sidebar navigation.