Skip to content

API reference

Generated from the source by TypeDoc, so it always matches the published types. Each entry point is a separate import; its optional peer dependencies are listed in its description and on Entry points.

Import Exports Description
@xtandard/lib 60 Isomorphic core utilities with zero dependencies: error handling, async primitives, iterables, type guards, disposables, strings.
@xtandard/lib/arktype 5 Branded TimeZone schema for ArkType (peer arktype).
@xtandard/lib/big 4 Exact-decimal intervals backed by big.js (peer big.js).
@xtandard/lib/bignumber 3 Exact-decimal intervals backed by bignumber.js (peer bignumber.js).
@xtandard/lib/dataloader 2 createLoader factory for DataLoader (peer dataloader).
@xtandard/lib/decimal 3 Arbitrary-precision decimal intervals: the generic Interval engine bound to decimal.js Decimal values (peer dependency decimal.js).
@xtandard/lib/dinero 3 Money intervals: the generic Interval engine bound to dinero.js v2 values (peer dependency dinero.js, which also re-exports the currency definitions).
@xtandard/lib/effect 2 Branded TimeZone schema for Effect (peer effect).
@xtandard/lib/effect/v4 2 Branded TimeZone schema for Effect 4 (peer effect ^4).
@xtandard/lib/filters 75 Filter model (types), portable compileFilters → CompiledWhere AST, sorting, URL codec and human-readable descriptions.
@xtandard/lib/filters/arktype 13 Ready-made ArkType schemas for the filter model (peers arktype, @js-temporal/polyfill).
@xtandard/lib/filters/drizzle 16 Renders the compiled filter AST to a Drizzle WHERE expression, plus keyset helpers (peer drizzle-orm).
@xtandard/lib/filters/drizzle-rqb 19 Renders the compiled filter AST to a Drizzle relational-query where object for db.query (no runtime dependency).
@xtandard/lib/filters/effect 13 Ready-made Effect schemas for the filter model (peers effect, @js-temporal/polyfill).
@xtandard/lib/filters/effect/v4 13 Ready-made Effect 4 schemas for the filter model (peers effect ^4, @js-temporal/polyfill).
@xtandard/lib/filters/elasticsearch 16 Renders the compiled filter AST to an Elasticsearch / OpenSearch Query DSL clause (no client dependency; plain objects for @elastic/elasticsearch, @opensearch-project/opensearch or a raw _search body).
@xtandard/lib/filters/knex 14 Renders the compiled filter AST to raw parameterized SQL for Knex (no driver dependency).
@xtandard/lib/filters/kysely 13 Renders the compiled filter AST to a Kysely boolean expression (peer kysely).
@xtandard/lib/filters/memory 21 Evaluates the compiled filter AST in memory: a plain (row) => boolean predicate with the same semantics as the SQL adapters, a sort comparator, and synchronous offset/cursor pagination over arrays.
@xtandard/lib/filters/mongo 12 Renders the compiled filter AST to a Mongo filter object (no driver dependency).
@xtandard/lib/filters/postgrest 20 Renders the compiled filter AST to PostgREST / Supabase query parameters (no driver dependency): col=op.value pairs for a plain fetch (new URLSearchParams(params)), or applied to a postgrest-js / supabase-js builder with applyParamsToPostgrest.
@xtandard/lib/filters/prisma 12 Renders the compiled filter AST to a Prisma where object (no driver dependency).
@xtandard/lib/filters/sql-tag 15 Renders the compiled filter AST to fragments of a tagged-template SQL client: postgres.js (postgres(…), its transactions and reserved connections) and Bun.sql (sql / new SQL(…), on Postgres, MySQL/MariaDB or SQLite).
@xtandard/lib/filters/tanstack-table 46 TanStack Table bridge: convert a table’s columnFilters, globalFilter, sorting and pagination state to and from the filter model (ColumnFilter[] / FilterNode), Sort, page/offset pagination and cursors, through a per-column mapping spec.
@xtandard/lib/filters/valibot 13 Ready-made valibot schemas for the filter model (peers valibot, @js-temporal/polyfill).
@xtandard/lib/filters/zod 13 Ready-made Zod schemas for the filter model (peers zod, @js-temporal/polyfill).
@xtandard/lib/fraction 4 Exact-RATIONAL intervals backed by fraction.js (peer fraction.js).
@xtandard/lib/interval 28 A generic, immutable Interval over any ordered type (Guava Range + DiscreteDomain model), plus built-in domains for the JS primitives (number, integer, bigint, Date), and IntervalSet / IntervalMap (Guava RangeSet / RangeMap) over any domain.
@xtandard/lib/ip 6 IPv4/IPv6 address intervals: the Interval engine over IP addresses (peer ipaddr.js).
@xtandard/lib/pagination 59 Cursor/offset pagination and keyset helpers (createPaginator, cursor codecs).
@xtandard/lib/pagination/drizzle 4 Drizzle adapter for pagination keysets (peer drizzle-orm).
@xtandard/lib/pagination/drizzle-rqb 8 Drizzle relational-query (RQB) keyset: v2 where/orderBy objects and the v1 callback form.
@xtandard/lib/pagination/knex 3 Knex adapter for pagination keysets (raw parameterized SQL, no driver dependency).
@xtandard/lib/pagination/kysely 4 Kysely adapter for pagination keysets (peer kysely).
@xtandard/lib/pagination/mongo 7 Mongo/Mongoose adapter for pagination keysets (no driver dependency).
@xtandard/lib/pagination/prisma 8 Prisma adapter for pagination keysets (no driver dependency).
@xtandard/lib/pagination/sql-tag 3 Keyset adapter for tagged-template SQL clients (postgres.js, Bun.sql): portable keyset predicates and ordering as fragments of your sql, with no driver dependency.
@xtandard/lib/react 42 React hooks and components: useStream/StreamRenderer, Providers, useDynamicRefs, usePreventAutoFocus (peers react, @tanstack/react-query).
@xtandard/lib/semver 3 Semantic-version intervals: the Interval engine bound to semver version strings (peer semver).
@xtandard/lib/sonner 18 Toast helpers that stream iterables/generators through Sonner (peers sonner, react).
@xtandard/lib/tanstack 17 nuqs-style typed URL query state for TanStack Router (peers react, @tanstack/react-router).
@xtandard/lib/tanstack/rison 1 Rison value codec for parseAsCodec (peers @effective/rison, valibot).
@xtandard/lib/tanstack/server 61 Framework-free query-state parsers, serializer, loader and Standard Schema bridge.
@xtandard/lib/tanstack/temporal 7 URL query-state parsers for the six Temporal kinds (peers @js-temporal/polyfill, valibot).
@xtandard/lib/tanstack/testing 3 Headless QueryStateTestingAdapter for testing query-state hooks without a router (peer react).
@xtandard/lib/temporal 24 Date/time and duration conversions plus Temporal intervals (peer @js-temporal/polyfill).
@xtandard/lib/ulid 5 Prefixed ULID generation and helpers (peer ulid).
@xtandard/lib/unstorage 6 withCache / createCache helpers on top of unstorage (peers unstorage, ohash).
@xtandard/lib/valibot 8 Branded TimeZone, duration and Temporal schemas for valibot (peers valibot, @js-temporal/polyfill).
@xtandard/lib/web 11 Browser utilities: FormData → object, fetchWithProgress, an HTTP interceptor, keepSubDelims (peer up-fetch).
@xtandard/lib/zod 2 Branded TimeZone schema for Zod (peer zod).