171.33K
total weekly downloads
174 packages
@arraypress/admin-auth
Layered Hono middleware for admin auth — session cookie + API token + CF Access + hardened dev bypass.
@arraypress/admin-kit
Reusable React components for shadcn-style admin dashboards. PageHeader, UserCell, Pagination, SortableHeader, TableCard, EmptyState, MaskedInput, and more.
@arraypress/analytics-astro
Multi-provider analytics for Astro — Plausible, Cloudflare, Umami, Fathom, Simple, GoatCounter, GA4, custom. DNT/GPC short-circuit + consent gating, one component.
@arraypress/api-client
Lightweight API client with query building, JSON body serialisation, file uploads, and error handling.
@arraypress/api-tokens
Prefixed API token generation, SHA-256 hashing, and scope validation. Zero dependencies, Web Crypto API.
@arraypress/astro-behaviors
Client-side behaviour modules for Astro storefronts — wishlist, header nav, modals, product gallery, count-up and drag-scroll. View-transition safe, zero dependencies, no styling opinions.
@arraypress/audit-log
Generic audit trail logging. Log actions, query by actor/resource, retention cleanup. Storage-agnostic with a built-in Kysely store.
@arraypress/before-after-astro
Astro image-comparison slider — draggable handle, keyboard accessible, theme-token CSS.
@arraypress/behaviors-astro
Client-side behaviour modules for Astro storefronts — wishlist, header nav, modals, product gallery, count-up and drag-scroll. View-transition safe, zero dependencies, no styling opinions.
@arraypress/blocklist
Email, IP, and word blocklist matching. Supports domains, wildcards, and CIDR ranges.
@arraypress/bookmark-file
Read and write the Netscape bookmark file (NETSCAPE-Bookmark-file-1), the format every browser exports and imports. No DOM: the same reader in a page, a service worker and Node.
@arraypress/captcha
Unified CAPTCHA verification — Turnstile, reCAPTCHA, and hCaptcha. Provider selection via settings, optional decryption hook for secrets at rest, fail-open when 'none' is configured, fail-closed on misconfiguration. Zero dependencies.
@arraypress/cart
A headless cart for digital stores — one of each item, no quantities, saved in the browser and synced across tabs, with a checkout hand-off that posts price IDs to your endpoint (Stripe, Paddle, your own server).
@arraypress/cartesian-product
Generate all combinations from arrays of options. Perfect for e-commerce variant generation, configuration matrices, and test case generation.
@arraypress/chart-theme
Resolve CSS custom properties from <html> into a JS object — feed your theme tokens into ApexCharts, Chart.js, or any library that can't read CSS vars natively.
@arraypress/clean-link
Take the tracking out of a link, offline: tracking parameters, redirect wrappers, Amazon and eBay slugs, share fragments. A port of swift-url-kit's URLStripper, held to its output.
@arraypress/collection-utils
Aggregate + group collections by scalar or list taxonomy fields — primitives for taxonomy archive pages (tags, genres, artists, authors) — plus the report arithmetic: sumBy, countBy, rankBy, ratio, percentChange — and chunk.
@arraypress/color-utils
Color utility functions: every CSS colour read and written, WCAG 2 and APCA contrast, what a page's text really shows in, an image's dominant colours, OKLCH and OKLab conversion and mixing, 50-950 tonal scales, and colour names.
@arraypress/commission-calculator
Pure commission math for vendor marketplaces and affiliate programs. Supports percent and flat-rate commissions with discount and affiliate proration.
@arraypress/condition-evaluator
Evaluate rule conditions against data objects. Supports nested field access, 12+ operators, AND/OR logic.
@arraypress/countries
Country data utilities — names, flags, continents, EU membership, calling codes, currencies, and search. ISO 3166-1 alpha-2.
@arraypress/count-up
React hook for animating numbers from 0 to target with easing. Handles suffixes, decimal places, and comma formatting.
@arraypress/covers
Covers, flyers, posters, release art, social formats and print stationery from one seed and a stack of layers: mesh gradients, grain, riso inks and halftones, knockout and justified type, torn paper, barcodes, safe zones and bleed, as SVG or WebP/PNG/AVIF
@arraypress/cron
Database-backed cron scheduling. Atomic task claiming, recurring and one-shot jobs, stale lock recovery.
@arraypress/crypto
AES-256-GCM encrypt/decrypt with PBKDF2 key derivation. Zero dependencies, Web Crypto API.