Core SDK Overview
@alviere/core is the headless logic and data layer for the Alviere Web SDK. It gives frontend teams direct access to account management, payment processing, wallets, and supporting services — without the prebuilt UI components in @alviere/ui.
When to use Core
Use @alviere/core when you want to:
- Build your own UI components that call Alviere backend services
- Integrate Alviere functionality into an existing design system or component library
- Use only the data/validation/encryption layer without rendering any Alviere UI
Use @alviere/ui when you want ready-made form and flow components. The UI package is built on top of Core — they share the same underlying service layer.
Architecture
Your frontend app
│
▼
@alviere/core ← this package
AlviereCore
├── Service layer (AccountsApiService, PaymentProcessor, …)
├── Auth (generateScopedToken, AuthGateway)
├── Security (Validator, Cryptor)
└── Logger
│
▼
Alcore middleware ← Alviere backend gateway
│
▼
Alviere Hive APIs ← source-of-truth REST API
All service calls pass through the Alcore middleware, which enforces authentication, request encryption, and routing. @alviere/core handles this transparently — your code calls typed service methods and receives typed responses.
Relationship to @alviere/ui
@alviere/ui is one consumer of @alviere/core. Both packages are versioned together and published from the same monorepo. If you are already using @alviere/ui, @alviere/core is already present in your dependency graph as a peer dependency.
Hive API reference
The underlying REST API is documented at apidocs.alviere.com. Service method descriptions in this SDK reference link out to the relevant API operations rather than duplicating the full request/response schemas.

