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

@simpleapps-com/augur-core

v2.3.1

Published

Universal foundation for Augur packages — proxy infrastructure, cache keys, method classification, shared types

Readme

@simpleapps-com/augur-core

Universal foundation for Augur packages — proxy infrastructure, cache keys, method classification, shared types

Auto-generated. Do not edit manually. Regenerate with: pnpm run generate-exports

Part of the @simpleapps-com/augur-* platform. All packages use fixed versioning (same version number).

Install

pnpm add @simpleapps-com/augur-core

Peer Dependencies

@simpleapps-com/augur-api

Entry Points

| Import | Description | |--------|-------------| | @simpleapps-com/augur-core | 20 exports, 26 types | | @simpleapps-com/augur-core/testing | 4 exports, 0 types |

Exports

Auth & Context

| Export | Kind | Description | |--------|------|-------------| | createOptionsProxy | function | Creates a proxy that returns TanStack Query options for every SDK method. | | defineSite | function | Identity helper that provides type-checking and IDE autocomplete |

Configuration

| Export | Kind | Description | |--------|------|-------------| | DEFAULT_CACHE_TIERS | const | Default cache tier values. | | getCacheTier | function | Resolves the cache tier for a given SDK method path. |

Items & Categories

| Export | Kind | Description | |--------|------|-------------| | isWriteMethod | function | Returns true if the leaf method name represents a write (POST/PUT/DELETE) operation. |

Other

| Export | Kind | Description | |--------|------|-------------| | NO_CACHE_PATHS | const | Paths that should not be cached at any layer. | | buildCacheKey | function | Builds a deterministic cache key for Redis/CDN caching. | | buildQueryKey | function | Builds a deterministic query key from a method path and arguments. | | createActionsProxy | function | Creates a proxy that wraps every SDK method as a direct async action. | | createDeepProxy | function | Creates a deep proxy that intercepts property access to build a method | | createFetchQueryAction | function | Creates a QueryActionFn backed by fetch() to an API endpoint. | | createKeysOnlyProxy | function | Creates a keys-only proxy for sites without a client-side SDK instance. | | createQueryActionProxy | function | Creates a proxy backed by a query action function instead of a direct SDK instance. | | fnv1a | function | FNV-1a 32-bit hash. Fast non-cryptographic hash for cache keys. | | isNoCachePath | function | Returns true if the given SDK method path matches a no-cache namespace. | | isReadMethod | function | Returns true if the leaf method name represents a read (GET) operation. | | resolveMethod | function | Walk an object by path array to find the leaf function. | | stableArgs | function | Normalize arguments for deterministic cache/query keys. | | stableStringify | function | JSON.stringify with sorted object keys for deterministic cache keys. | | stripEdgeCacheForNoCachePaths | function | Strips the edgeCache property from every object arg when the method path | | DeepMockClient | value | | | MockClientResult | value | | | MockFn | value | | | createMockClient | value | |

Examples

buildCacheKey

buildCacheKey("ampro:", "pricing.priceEngine.get", [{ itemId: "X" }]) → "ampro:sdk:pricing.priceEngine.get:a1b2c3d4"

buildQueryKey

buildQueryKey(["items", "invMast", "get"], [42]) → ["items", "invMast", "get", 42]

buildQueryKey(["pricing", "priceEngine", "get"], [{ itemId: "X", customerId: 1 }]) → ["pricing", "priceEngine", "get", { itemId: "X", customerId: 1 }]

createActionsProxy

const actions = createActionsProxy(api, { cachePrefix: "ampro:" }); const stock = await actions.items.invMast.stock.get(42);

createFetchQueryAction

import { createFetchQueryAction } from "@simpleapps-com/augur-core";
import { registerQueryAction } from "@simpleapps-com/augur-hooks";

registerQueryAction(createFetchQueryAction("/api/augur"));

createOptionsProxy

const q = createOptionsProxy(api); const opts = q.items.invMast.stock.get(42); // opts.queryKey → ["items", "invMast", "stock", "get", 42] // opts.queryFn → () => api.items.invMast.stock.get(42) // opts.staleTime → 60000 (semiStatic default)

createQueryActionProxy

const q = createQueryActionProxy(myServerAction); const opts = q.pricing.priceEngine.get({ itemId: "X", customerId: 1 }); // opts.queryKey → ["pricing", "priceEngine", "get", { customerId: 1, itemId: "X" }] // opts.queryFn → () => myServerAction("pricing.priceEngine.get", { ... })

getCacheTier

getCacheTier("items.categories.list") → static (60 min stale) getCacheTier("pricing.priceEngine.get") → semiStatic (1 min stale) getCacheTier("commerce.cartLine.add.create") → none (0 stale)

resolveMethod

resolveMethod(api, ["items", "invMast", "stock", "get"]) → api.items.invMast.stock.get

Types

ActionResult, ActionsProxyConfig, ApiResult, AugurAnalyticsConfig, AugurAuthContext, AugurSiteConfig, AugurSiteDefaults, AugurSiteFormatting, AugurSiteItemsConfig, AugurSiteSearchConfig, CacheConfig, CacheProvider, CacheTierConfig, CacheTierDefaults, DeepActions, DeepQueryOptions, EdgeCacheValue, InfiniteScrollPage, IsReadMethod, ListResult, OptionsProxyConfig, ProxyMutationOptions, ProxyQueryOptions, QueryActionFn, ResolvedCacheTier, WrapCallContext

Related Packages

All packages use fixed versioning -- same version number across the platform.

| Package | Description | |---------|-------------| | @simpleapps-com/augur-config | Shared tooling configuration presets for Augur ecommerce sites | | @simpleapps-com/augur-hooks | Cross-platform React Query hooks and Zustand stores for Augur ecommerce sites | | @simpleapps-com/augur-mobile | React Native/Expo adapters for Augur ecommerce apps (offline sync, biometrics, push) | | @simpleapps-com/augur-server | Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth) | | @simpleapps-com/augur-tailwind | Shared Tailwind CSS v4 theme with HSL variables for Augur ecommerce sites | | @simpleapps-com/augur-utils | Shared types, cache configuration, and utility functions for Augur ecommerce sites | | @simpleapps-com/augur-web | Shared React UI components for Augur ecommerce sites (Radix + Tailwind) |