@naniteninja/profile-comparison-lib 0.0.2 → 1.0.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/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Angular library that renders a side-by-side profile comparison (two profile images, a central draggable shape, and aligned interest lists). It is a **thin client**: you provide a backend URL; the library sends user config to your backend and displays the payload it returns. No API keys or key-entry modals in the library.
|
|
4
4
|
|
|
5
|
-
**You need a backend** that implements the profile comparison API (e.g. the
|
|
5
|
+
**You need a backend** that implements the profile comparison API (e.g. the **profile-comparison-server** repo). Provide its base URL via `PROFILE_COMPARISON_API_BASE_URL`. If not provided, the component shows **"Configure backend"**.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -180,7 +180,7 @@ No key-entry modals or API key inputs appear in the library; all keys and third-
|
|
|
180
180
|
|
|
181
181
|
## Backend API contract
|
|
182
182
|
|
|
183
|
-
The library calls your backend at `POST {baseUrl}/profile/compare-full` with body `{ config: IProfileConfig }`. The backend should return a display payload (face results, aligned lists, center item, matrix data, raw LLM output). See the
|
|
183
|
+
The library calls your backend at `POST {baseUrl}/profile/compare-full` with body `{ config: IProfileConfig }`. The backend should return a display payload (face results, aligned lists, center item, matrix data, raw LLM output). See the **profile-comparison-server** repo and the lib interface `IComparisonPayload` for the response shape.
|
|
184
184
|
|
|
185
185
|
---
|
|
186
186
|
|