@glideco/shared
v0.2.0
Published
Shared primitives for Glide agent banking — env validation, formatters, common types, and the AppRouter type export. Used by every Glide workspace package.
Downloads
125
Maintainers
Readme
@glideco/shared
Shared primitives for Glide agent banking — env validation, formatters, common types, and the
AppRoutertype export.
What this is
@glideco/shared is the foundational utility package every Glide workspace package depends on. It ships:
- Env validation (
@glideco/shared/env) — zod-validated environment schema for the Glide platform. - Constants (
@glideco/shared/constants) — protocol IDs, chain IDs, fee defaults shared across packages. - Types (
@glideco/shared/types) — common TypeScript types (currency codes, network identifiers, etc.). - Formatters — money/address/chain display utilities used by both web and mobile.
AppRoutertype — re-export of the tRPC AppRouter type for type-safe client consumption.
What this is not
- Not a runtime — most exports are zero-dep utilities.
- Not the canonical schema — Drizzle table definitions live in their respective engine packages (e.g.
@glideco/swap-fees/schema).
Install
npm install @glideco/sharedQuickstart
import { env } from '@glideco/shared/env';
// Boot-validates process.env; throws on missing/invalid vars.
console.log(env.NEXT_PUBLIC_GAS_SPONSORSHIP_ENABLED);License
MIT. See LICENSE.