@under-io/shared-models
v0.1.1-beta.15
Published
Under Shared Identity Models
Downloads
83
Readme
Under Shared Identity Models
# 🧠 @under-io/shared-models
> **Shared TypeScript models for the Under SDK ecosystem**
This package provides reusable, strongly typed data models used across the Under platform's backend services, SDKs, and frontend systems. It promotes consistency, type safety, and portability.
---
## 📦 Installation
```bash
npm install @under-io/shared-models
```🗂️ Package Structure
The project is organized by functional domain:
/db → Raw database schema models
/sdk → SDK-facing types and client contracts
/request → Input/request payload types
/response → Output/response payload typesEach folder is cleanly typed and bundled with vite-plugin-dts for full TypeScript support.
🛠 Development
To build the package locally:
npm run buildTo create a local tarball (.tgz) for testing in other projects:
npm run prep-localTo run unit tests:
npm run test✅ Goals
- 📐 Enforce consistent types across services
- 🔒 Improve type safety with shared interfaces
- 🧰 Power a unified SDK developer experience
🪪 License
UNLICENSED — For internal use by Under, Inc. only.
---