@singi-labs/sifa-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Singi Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,119 @@
1
+ <div align="center">
2
+
3
+ # Sifa SDK
4
+
5
+ **Public client library for the Sifa AppView on AT Protocol.**
6
+
7
+ [![Status: Alpha](https://img.shields.io/badge/status-alpha-orange)]()
8
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
+ [![CI](https://github.com/singi-labs/sifa-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/singi-labs/sifa-sdk/actions/workflows/ci.yml)
10
+ [![npm](https://img.shields.io/npm/v/@singi-labs/sifa-sdk.svg)](https://www.npmjs.com/package/@singi-labs/sifa-sdk)
11
+ [![Node.js](https://img.shields.io/badge/node-25-brightgreen)](https://nodejs.org/)
12
+ [![TypeScript](https://img.shields.io/badge/typescript-5.x-blue)](https://www.typescriptlang.org/)
13
+
14
+ </div>
15
+
16
+ ---
17
+
18
+ ## Overview
19
+
20
+ Shared TypeScript SDK consumed by [`sifa-web`](https://github.com/singi-labs/sifa-web) (Next.js) and the upcoming `sifa-app` (Expo / React Native). Holds platform-agnostic logic so both clients stay in feature parity without duplicating code.
21
+
22
+ Published publicly so third-party developers can build their own AT Protocol clients against the Sifa AppView. Trust and reputation logic stays server-side in `sifa-api`; the SDK exposes only what is safe to publish.
23
+
24
+ > Pre-1.0 software. The public API is unstable and may change in any minor release.
25
+
26
+ ---
27
+
28
+ ## What this package contains
29
+
30
+ | Area | What it provides |
31
+ | ----------- | ------------------------------------------------------------------------------------- |
32
+ | Types | TypeScript types for Sifa data structures, generated from `sifa-lexicons` |
33
+ | Schemas | Zod schemas mirroring lexicon constraints for runtime validation |
34
+ | Query layer | TanStack Query keys, fetchers, and React hooks for calling `sifa-api` |
35
+ | ATproto | Wrapper around `@atproto/api` that accepts an authenticated agent |
36
+ | Format | Pure formatters for dates, locations, profile completeness |
37
+ | Logic | Business-logic predicates (display-only; server-side trust logic lives in `sifa-api`) |
38
+ | Taxonomy | Constants and enums (continents, industries, skill categories, etc.) |
39
+ | Tokens | Sifa-brand design tokens, exported via `@singi-labs/sifa-sdk/tokens` (optional) |
40
+
41
+ ---
42
+
43
+ ## Quick Start
44
+
45
+ ```bash
46
+ pnpm add @singi-labs/sifa-sdk
47
+ ```
48
+
49
+ ```ts
50
+ import { SIFA_SDK_VERSION } from '@singi-labs/sifa-sdk';
51
+
52
+ console.log(SIFA_SDK_VERSION);
53
+ ```
54
+
55
+ Optional design tokens (skip if you have your own brand):
56
+
57
+ ```ts
58
+ import { colors, spacing } from '@singi-labs/sifa-sdk/tokens';
59
+ ```
60
+
61
+ ---
62
+
63
+ ## For third-party developers
64
+
65
+ This SDK is the recommended way to build clients against the Sifa AppView. It does not depend on `react-dom`, `react-native`, `next`, or any browser/Node-only storage API -- it runs anywhere TypeScript runs.
66
+
67
+ If you have a use case the current public surface does not cover, open a discussion on [`singi-labs/sifa-workspace`](https://github.com/singi-labs/sifa-workspace/discussions).
68
+
69
+ ---
70
+
71
+ ## Development
72
+
73
+ ```bash
74
+ pnpm install
75
+ pnpm build
76
+ pnpm test
77
+ pnpm lint
78
+ pnpm typecheck
79
+ ```
80
+
81
+ Standards:
82
+
83
+ - Strict TypeScript -- `strict: true`, no `any`
84
+ - Pinned exact dependency versions
85
+ - Conventional commits enforced by `commitlint`
86
+ - Every published-API change requires a changeset (`pnpm changeset`)
87
+
88
+ All changes go through Pull Requests. CI must pass before merge.
89
+
90
+ ---
91
+
92
+ ## Related Repositories
93
+
94
+ | Repository | Description | License |
95
+ | ------------------------------------------------------------------------- | -------------------------------------- | ---------------- |
96
+ | [singi-labs/sifa-api](https://github.com/singi-labs/sifa-api) | AppView backend that this SDK consumes | Source-available |
97
+ | [singi-labs/sifa-web](https://github.com/singi-labs/sifa-web) | Next.js web client (consumes this SDK) | Source-available |
98
+ | [singi-labs/sifa-lexicons](https://github.com/singi-labs/sifa-lexicons) | AT Protocol lexicon schemas | MIT |
99
+ | [singi-labs/sifa-workspace](https://github.com/singi-labs/sifa-workspace) | Project coordination, issues, roadmap | Public |
100
+
101
+ ---
102
+
103
+ ## Community
104
+
105
+ - **Website:** [sifa.id](https://sifa.id)
106
+ - **Discussions:** [GitHub Discussions](https://github.com/singi-labs/sifa-workspace/discussions)
107
+ - **Issues:** [Report bugs](https://github.com/singi-labs/sifa-sdk/issues)
108
+
109
+ ---
110
+
111
+ ## License
112
+
113
+ **MIT** -- permissive, so that third-party developers can build their own ATproto-based professional profile clients on top of this SDK.
114
+
115
+ See [LICENSE](LICENSE) for full terms.
116
+
117
+ ---
118
+
119
+ (c) 2026 Sifa