features
@particular/profiles
Global user profiles with JSONB storage
Installation
bun add @particular/profiles
Subpath Imports
| Import Path | Description |
|---|---|
| @particular/profiles/server | Server profile utilities |
| @particular/profiles/client | Client profile hooks |
Key Exports
| Export | Type | Description |
|---|---|---|
| getProfile | function | Get a user profile |
| updateProfile | function | Update a user profile |
| useProfile | hook | Access profile in client |
Usage Examples
Fetch profile
import { getProfile } from "@particular/profiles/server";
const profile = await getProfile(userId);