@bounded-sh/server 0.0.22 → 0.0.24

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.
Files changed (2) hide show
  1. package/README.md +15 -21
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # @tarobase/server
1
+ # @bounded-sh/server
2
2
 
3
3
  Server SDK for Tarobase API - Node.js/Backend implementation. This package provides functionality for server-side applications to interact with the Tarobase API using Solana keypairs for authentication.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @tarobase/server
8
+ npm install @bounded-sh/server
9
9
  ```
10
10
 
11
11
  Or using yarn:
12
12
 
13
13
  ```bash
14
- yarn add @tarobase/server
14
+ yarn add @bounded-sh/server
15
15
  ```
16
16
 
17
17
  ## Features
@@ -26,15 +26,11 @@ yarn add @tarobase/server
26
26
  ## Basic Usage
27
27
 
28
28
  ```typescript
29
- import { init, createWalletClient } from '@tarobase/server';
29
+ import { init, createWalletClient } from '@bounded-sh/server';
30
30
 
31
31
  async function main() {
32
32
  // Initialize endpoints/app config only. Server signing identity is explicit.
33
- await init({
34
- apiKey: 'your-api-key',
35
- appId: 'your-app-id',
36
- authMethod: 'solana-keypair'
37
- });
33
+ await init({ appId: 'your-app-id' });
38
34
 
39
35
  // Create a wallet-scoped client from an explicit secret key.
40
36
  const wallet = await createWalletClient({ keypair: process.env.SERVER_WALLET_KEYPAIR! });
@@ -60,24 +56,23 @@ main().catch(console.error);
60
56
  ### Loading a Keypair from a Secret Key File
61
57
 
62
58
  ```typescript
63
- import { init, createWalletClient } from '@tarobase/server';
59
+ import { init, createWalletClient } from '@bounded-sh/server';
64
60
  import * as fs from 'fs';
65
61
 
66
62
  // Load keypair from file
67
63
  const secretKeyString = fs.readFileSync('/path/to/keypair.json', 'utf8');
68
64
 
69
65
  // Initialize and create a wallet-scoped client
70
- await init({ apiKey: 'your-api-key', appId: 'your-app-id' });
66
+ await init({ appId: 'your-app-id' });
71
67
  const wallet = await createWalletClient({ keypair: secretKeyString });
72
68
  ```
73
69
 
74
70
  ### Signing And Transactions
75
71
 
76
72
  ```typescript
77
- import { init, createWalletClient } from '@tarobase/server';
73
+ import { init, createWalletClient } from '@bounded-sh/server';
78
74
 
79
75
  await init({
80
- apiKey: 'your-api-key',
81
76
  appId: 'your-app-id',
82
77
  rpcUrl: process.env.SOLANA_MAINNET_RPC_URL
83
78
  });
@@ -94,10 +89,10 @@ const signature = await wallet.signMessage("Hello, world!");
94
89
  ### Subscriptions
95
90
 
96
91
  ```typescript
97
- import { init, createWalletClient } from '@tarobase/server';
92
+ import { init, createWalletClient } from '@bounded-sh/server';
98
93
 
99
94
  // Initialize and create an explicit wallet client
100
- await init({ apiKey: 'your-api-key', appId: 'your-app-id' });
95
+ await init({ appId: 'your-app-id' });
101
96
  const wallet = await createWalletClient({ keypair: process.env.SERVER_WALLET_KEYPAIR! });
102
97
 
103
98
  // Subscribe to changes
@@ -171,8 +166,7 @@ networks fail closed.
171
166
 
172
167
  ```typescript
173
168
  interface ClientConfig {
174
- apiKey: string;
175
- authMethod: 'solana-keypair' | string;
169
+ authMethod?: string;
176
170
  wsApiUrl: string;
177
171
  apiUrl: string;
178
172
  appId: string;
@@ -224,10 +218,10 @@ This server-side SDK differs from the web SDK in several important ways:
224
218
  4. **Session Management**: Does not rely on browser-specific APIs
225
219
  5. **Dependencies**: Excludes browser-specific libraries
226
220
 
227
- ## Part of the Tarobase SDK Family
221
+ ## Part of the Bounded SDK Family
228
222
 
229
223
  This package is part of a family of modular SDKs:
230
224
 
231
- - **@pooflabs/core**: Core functionality shared between all SDKs
232
- - **@pooflabs/web**: Browser-focused SDK (identical to original js-sdk)
233
- - **@pooflabs/server**: Server-side SDK for backend applications
225
+ - **@bounded-sh/core**: Core functionality shared between all SDKs
226
+ - **@bounded-sh/client**: Browser and React Native SDK
227
+ - **@bounded-sh/server**: Server-side SDK for backend applications
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bounded-sh/server",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "Server SDK for Poof API - Node.js/Backend implementation",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -46,7 +46,7 @@
46
46
  "typescript": "5.9.3"
47
47
  },
48
48
  "dependencies": {
49
- "@bounded-sh/core": "0.0.22",
49
+ "@bounded-sh/core": "0.0.24",
50
50
  "@coral-xyz/anchor": "0.31.1",
51
51
  "@solana/spl-token": "0.4.14",
52
52
  "@solana/web3.js": "1.98.4",