-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathpackage.json
More file actions
125 lines (125 loc) · 4.33 KB
/
package.json
File metadata and controls
125 lines (125 loc) · 4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"name": "solana-chatgpt-kit",
"displayName": "Solana ChatGPT Kit",
"description": "ChatGPT app with Solana features - Swaps, transfers, staking and data query via natural language. Browser wallets + x402 payments or private key mode",
"author": {
"name": "Arpit Singh",
"url": "https://github.com/The-x-35"
},
"usecase": "Starter",
"keywords": [
"solana",
"chatgpt",
"openai",
"mcp",
"jupiter",
"x402",
"payments",
"swap",
"wallet",
"defi",
"staking",
"nextjs",
"typescript",
"spl-token",
"sns"
],
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbopack",
"build": "next build --turbopack",
"start": "next start"
},
"dependencies": {
"@bonfida/spl-name-service": "^3.0.16",
"@modelcontextprotocol/sdk": "^1.26.0",
"@onsol/tldparser": "^1.0.8",
"@radix-ui/react-label": "^2.1.7",
"@radix-ui/react-slot": "^1.2.3",
"@solana/spl-token": "^0.4.14",
"@solana/web3.js": "^1.98.4",
"bs58": "^6.0.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.546.0",
"mcp-handler": "^1.1.0",
"next": "16.1.7",
"react": "19.1.0",
"react-dom": "19.1.0",
"tailwind-merge": "^3.3.1",
"x402-solana": "^0.1.1",
"zod": "3.24.2"
},
"devDependencies": {
"@tailwindcss/postcss": "^4",
"@types/node": "^20",
"@types/react": "^19",
"@types/react-dom": "^19",
"tailwindcss": "^4",
"tw-animate-css": "^1.4.0",
"typescript": "^5"
},
"packageManager": "pnpm@10.14.0+sha512.ad27a79641b49c3e481a16a805baa71817a04bbe06a38d17e60e2eaee83f6a146c6a688125f5792e48dd5ba30e7da52a5cda4c3992b9ccf333f9ce223af84748",
"create-solana-dapp": {
"instructions": [
"Welcome to Solana ChatGPT Kit! 🚀",
"",
"📖 IMPORTANT: Read README.md for complete setup instructions and features!",
"",
"First, install dependencies:",
"+{pm} install",
"",
"Choose your wallet mode:",
"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━",
"Option A: Private Key Mode (Server-Side Signing)",
" • Edit lib/solana-config.ts: Set externalWallet = false",
" • Create .env.local and add:",
" SOLANA_PRIVATE_KEY=your_base58_private_key_here",
" • Transactions signed server-side automatically",
"",
"Option B: External Wallet Mode (Browser Wallet + x402 Payments)",
" • Edit lib/solana-config.ts: Set externalWallet = true",
" • Create .env.local and add:",
" X402_TREASURY_ADDRESS=your_treasury_wallet_here",
" • Users connect Phantom/Solflare and sign transactions",
" • Includes x402 payment protocol ($0.001 USDC API fees)",
" • See README for full x402 configuration details",
"━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━",
"",
"Optional: Add custom RPC endpoint to .env.local:",
"SOLANA_RPC_URL=https://your-rpc-endpoint.com",
"",
"To generate a new wallet (for private key mode):",
"npx ts-node -e \"import { Keypair } from '@solana/web3.js'; import bs58 from 'bs58'; const wallet = Keypair.generate(); console.log('Public Key:', wallet.publicKey.toString()); console.log('Private Key (base58):', bs58.encode(wallet.secretKey));\"",
"",
"Start the development server:",
"+{pm} dev",
"",
"Deploy to production (recommended: Vercel):",
"+{pm} build",
"",
"Connect to ChatGPT:",
"1. Deploy your app or use ngrok for local testing",
"2. In ChatGPT, go to Settings → Connectors → Create",
"3. Add your MCP server URL: https://your-app.vercel.app/mcp",
"4. Start using Solana commands in ChatGPT!",
"",
"⚠️ Security: Never share your private key or commit .env.local to git",
"",
"📖 Read README.md for:",
" • Complete feature documentation",
" • x402 payment protocol details",
" • Usage examples and API reference",
" • Security best practices"
],
"rename": {
"solana-chatgpt-kit": {
"to": "{{name}}",
"paths": [
"package.json"
]
}
}
}
}