socialfi-thesis 0.0.0-stage → 0.5.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 CabalSpy
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 CHANGED
@@ -1,3 +1,53 @@
1
- # Temporary Holding Version
1
+ # socialfi-thesis — token theses for any crypto app
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![npm](https://img.shields.io/npm/v/socialfi-thesis.svg)](https://www.npmjs.com/package/socialfi-thesis) [![ci](https://github.com/CabalSpy/socialfi-thesis/actions/workflows/ci.yml/badge.svg)](https://github.com/CabalSpy/socialfi-thesis/actions/workflows/ci.yml) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
4
+
5
+ **socialfi-thesis** brings SocialFi token theses to your app: holders-only opinions on a token, each with the author's real position and live PnL, replies, reactions, moderation — shared across every platform that uses CabalSpy ID. Use the drop-in SocialFi widget, or build your own UI on the thesis API.
6
+
7
+ Part of **[CabalSpy ID](https://id.cabalspy.xyz)** — the SocialFi layer for crypto apps. [Website](https://www.cabalspy.xyz/cabalspy-id/) · [Docs](https://docs.cabalspy.xyz/cabalspy-id) · [API dashboard](https://apidashboard.cabalspy.xyz) · [Full SDK: cabalspy-id](https://github.com/CabalSpy/cabalspy-id-js)
8
+
9
+ ```bash
10
+ npm install socialfi-thesis
11
+ ```
12
+
13
+ **React widget**
14
+
15
+ ```tsx
16
+ import { CabalSpyTheses } from 'socialfi-thesis/react';
17
+
18
+ <CabalSpyTheses chain="solana" mint={mint} clientId="csid_..." theme="dark" accessToken={accessToken} />
19
+ ```
20
+
21
+ **Your own UI** (public thesis API with the user's access token, no API key)
22
+
23
+ ```ts
24
+ import { ThesisClient } from 'socialfi-thesis';
25
+
26
+ const theses = new ThesisClient({ accessToken, clientId: 'csid_...' });
27
+ const { items, summary } = await theses.list('solana', mint, { sort: 'top' });
28
+ if ((await theses.me('solana', mint)).can_post) await theses.post('solana', mint, { body: 'Strong community.', stance: 'bull' });
29
+ const live = theses.live('solana', mint);
30
+ live.on('thesis', (t) => render(t));
31
+ await live.connect();
32
+ ```
33
+
34
+ **Server** (Data API key: read everything, write in your users' names, live theses for up to 200 tokens)
35
+
36
+ ```ts
37
+ import { CabalSpyID } from 'socialfi-thesis';
38
+
39
+ const csid = new CabalSpyID({ apiKey: process.env.CABALSPY_API_KEY });
40
+ await csid.postThesis({ blockchain: 'solana', mint, body: 'Accumulating here.', stance: 'bull', csid_id: userSub });
41
+ const ts = csid.thesesStream();
42
+ ts.on('thesis', (t) => addMarker(t));
43
+ await ts.connect();
44
+ ts.subscribe([{ blockchain: 'solana', mint }]);
45
+ ```
46
+
47
+ Contents: the `cabalspy-id/thesis` entry point (`CabalSpyID` thesis methods, `ThesisClient`, `ThesisLive`, `ThesesStream`, thesis types) and `socialfi-thesis/react` (`<CabalSpyTheses />`, `useCabalSpyID()`). Full reference: [cabalspy-id README — Token theses](https://github.com/CabalSpy/cabalspy-id-js#token-theses).
48
+
49
+ Versions follow `cabalspy-id`: 0.5.0 depends on `cabalspy-id` 0.5.0. This package contains no code of its own — it re-exports part of `cabalspy-id`, so behaviour, fixes and types are always the same.
50
+
51
+ ## License
52
+
53
+ MIT
package/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ // socialfi-thesis — token theses by CabalSpy ID (cabalspy-id/thesis).
2
+ module.exports = require('cabalspy-id/thesis');
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from 'cabalspy-id/thesis';
package/index.js ADDED
@@ -0,0 +1,2 @@
1
+ // socialfi-thesis — token theses by CabalSpy ID (cabalspy-id/thesis).
2
+ export * from 'cabalspy-id/thesis';
package/package.json CHANGED
@@ -1,6 +1,95 @@
1
1
  {
2
2
  "name": "socialfi-thesis",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.5.0",
4
+ "description": "SocialFi token theses — holders-only opinions on a token with the author's real position and live PnL, replies, reactions and a drop-in thesis widget for any crypto app. By CabalSpy ID.",
5
+ "keywords": [
6
+ "socialfi-thesis",
7
+ "token-thesis",
8
+ "token-theses",
9
+ "socialfi-widget",
10
+ "socialfi",
11
+ "social-trading",
12
+ "copy-trading",
13
+ "crypto-social",
14
+ "web3-social",
15
+ "kol",
16
+ "kol-tracker",
17
+ "wallet-tracker",
18
+ "trading-leaderboard",
19
+ "pnl",
20
+ "crypto-login",
21
+ "solana",
22
+ "bnb",
23
+ "base",
24
+ "ethereum",
25
+ "cabalspy",
26
+ "cabalspy-id",
27
+ "sdk",
28
+ "react"
29
+ ],
30
+ "license": "MIT",
31
+ "homepage": "https://www.cabalspy.xyz/cabalspy-id/",
32
+ "repository": {
33
+ "type": "git",
34
+ "url": "git+https://github.com/CabalSpy/socialfi-thesis.git",
35
+ "directory": "js"
36
+ },
37
+ "bugs": {
38
+ "url": "https://github.com/CabalSpy/socialfi-thesis/issues"
39
+ },
40
+ "type": "module",
41
+ "main": "./index.cjs",
42
+ "module": "./index.js",
43
+ "types": "./index.d.ts",
44
+ "exports": {
45
+ ".": {
46
+ "types": "./index.d.ts",
47
+ "import": "./index.js",
48
+ "require": "./index.cjs"
49
+ },
50
+ "./react": {
51
+ "types": "./react.d.ts",
52
+ "import": "./react.js",
53
+ "require": "./react.cjs"
54
+ },
55
+ "./package.json": "./package.json"
56
+ },
57
+ "typesVersions": {
58
+ "*": {
59
+ "react": [
60
+ "./react.d.ts"
61
+ ]
62
+ }
63
+ },
64
+ "files": [
65
+ "LICENSE",
66
+ "README.md",
67
+ "index.cjs",
68
+ "index.d.ts",
69
+ "index.js",
70
+ "react.cjs",
71
+ "react.d.ts",
72
+ "react.js"
73
+ ],
74
+ "sideEffects": false,
75
+ "engines": {
76
+ "node": ">=18"
77
+ },
78
+ "scripts": {
79
+ "test": "node --test test/exports.test.mjs"
80
+ },
81
+ "dependencies": {
82
+ "cabalspy-id": "^0.5.0"
83
+ },
84
+ "peerDependencies": {
85
+ "react": ">=18"
86
+ },
87
+ "peerDependenciesMeta": {
88
+ "react": {
89
+ "optional": true
90
+ }
91
+ },
92
+ "publishConfig": {
93
+ "access": "public"
94
+ }
95
+ }
package/react.cjs ADDED
@@ -0,0 +1,7 @@
1
+ 'use client';
2
+ // socialfi-thesis/react — the token theses widget for React.
3
+ const r = require('cabalspy-id/react');
4
+ exports.CabalSpyTheses = r.CabalSpyTheses;
5
+ exports.useCabalSpyID = r.useCabalSpyID;
6
+ exports.loadCabalSpyIDWidget = r.loadCabalSpyIDWidget;
7
+ exports.WIDGET_SRC = r.WIDGET_SRC;
package/react.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { CabalSpyTheses, useCabalSpyID, loadCabalSpyIDWidget, WIDGET_SRC, type CabalSpyThesesProps, type ThesisWidgetOptions, type UseCabalSpyIDOptions, type UseCabalSpyIDResult, type CSIDGlobal } from 'cabalspy-id/react';
package/react.js ADDED
@@ -0,0 +1,3 @@
1
+ 'use client';
2
+ // socialfi-thesis/react — the token theses widget for React.
3
+ export { CabalSpyTheses, useCabalSpyID, loadCabalSpyIDWidget, WIDGET_SRC } from 'cabalspy-id/react';