piccassol commited on
Commit
6ad462a
·
verified ·
1 Parent(s): 94bec95

Update README.md

Browse files

Updated readme for shipping ready production.

Files changed (1) hide show
  1. README.md +195 -3
README.md CHANGED
@@ -1,3 +1,195 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NolandAI 🐙🚢
2
+
3
+ [![npm version](https://img.shields.io/npm/v/nolandai?label=npm)](https://www.npmjs.com/package/nolandai)
4
+ [![Hugging Face](https://img.shields.io/badge/🤗-HuggingFace-yellow)](https://huggingface.co/your-username/NolandAI)
5
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/your-username/NolandAI/ci.yml?branch=main)](https://github.com/your-username/NolandAI/actions)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
7
+
8
+ **NolandAI** is an enterprise-ready, AI-powered Solana trading agent that combines on-chain analytics, social sentiment scraping, and a fine-tuned LLM to generate actionable trading calls. It ships as an npm SDK plus a FastAPI backend and a React/Next.js UI.
9
+
10
+ ---
11
+
12
+ ## 🔦 Highlights
13
+ - **Real-time market feeds** via Dexscreener.
14
+ - **Social scraping** (AssetDash, X/Twitter monitoring such as `@mobyagent`, `@whalewatch`).
15
+ - **LLM forecasting** using a LoRA-fine-tuned model (`fingpt-forecaster_dow30_llama2-7b_lora` on Hugging Face).
16
+ - **Automated trading calls** (hourly), plus optional auto-posting to X/Twitter.
17
+ - **Modular SDK** (`nolandai` npm package) for JS/TS integration.
18
+ - **Production CI** with release workflow and npm publish.
19
+
20
+ ---
21
+
22
+ ## 📦 Installation
23
+
24
+ ### From npm (recommended)
25
+ ```bash
26
+ npm install nolandai
27
+ ts
28
+ Copy code
29
+ import { NolandAI } from "nolandai";
30
+
31
+ const bot = new NolandAI({ apiKey: process.env.NOLAND_KEY });
32
+ const call = await bot.getTradingCall();
33
+ console.log(call);
34
+ From source (dev)
35
+ bash
36
+ Copy code
37
+ git clone https://github.com/your-username/NolandAI.git
38
+ cd NolandAI
39
+ npm install # frontend/sdk
40
+ pip install -r requirements.txt # if running python FastAPI backend
41
+ 🧩 Repository layout (recommended)
42
+ pgsql
43
+ Copy code
44
+ NolandAI/
45
+ ├─ package.json
46
+ ├─ index.js
47
+ ├─ index.d.ts
48
+ ├─ README.md
49
+ ├─ LICENSE
50
+ ├─ CHANGELOG.md
51
+ ├─ CONTRIBUTING.md
52
+ ├─ .github/
53
+ │ └─ workflows/ci.yml
54
+ ├─ backend/
55
+ │ ├─ requirements.txt
56
+ │ └─ main.py # FastAPI app (endpoints: /trading-call, /market-data/:token)
57
+ ├─ frontend/
58
+ │ └─ (Next.js app)
59
+ └─ examples/
60
+ └─ demo.js
61
+ ⚙️ Quickstart — Local dev (SDK + demo backend)
62
+ Start FastAPI backend (example):
63
+
64
+ bash
65
+ Copy code
66
+ # in backend/
67
+ uvicorn main:app --reload --port 8000
68
+ Test SDK locally:
69
+
70
+ bash
71
+ Copy code
72
+ # from repo root or examples/
73
+ node examples/demo.js
74
+ 📚 API (SDK)
75
+ new NolandAI(config?: { apiKey?: string; baseUrl?: string })
76
+
77
+ getTradingCall() → { token, action, confidence, reason }
78
+
79
+ getMarketData(tokenAddress: string) → market JSON from backend
80
+
81
+ 🧪 Example examples/demo.js
82
+ (see examples/demo.js file in repo — quick show of getTradingCall + getMarketData)
83
+
84
+ 📦 Publish & Releases
85
+ We publish releases using semantic version tags (vMAJOR.MINOR.PATCH) and CI that validates tests and publishes to npm on tag push. See .github/workflows/ci.yml.
86
+
87
+ Official release example:
88
+
89
+ v1.0.0 — Captain’s Log (2025-09-20)
90
+
91
+ Initial public release.
92
+
93
+ npm package nolandai published.
94
+
95
+ FastAPI endpoints /trading-call, /market-data/:token live.
96
+
97
+ Hugging Face model integration.
98
+
99
+ 🏛️ Contributing
100
+ See CONTRIBUTING.md. Pull requests welcome — use branches, add tests, sign commits.
101
+
102
+ ⚖️ License
103
+ MIT © 2025 AuroraRift
104
+
105
+ Maintainers
106
+ AuroraRift Team — team@aurorarift.io
107
+
108
+ Changelog
109
+ See CHANGELOG.md for full release history.
110
+
111
+ pgsql
112
+ Copy code
113
+
114
+ ---
115
+
116
+ # 2) Files to create (copy these into repo root exactly)
117
+
118
+ Below are the key files. Put them where indicated.
119
+
120
+ ## `package.json` (repo root)
121
+ ```json
122
+ {
123
+ "name": "nolandai",
124
+ "version": "1.0.0",
125
+ "description": "NolandAI - An AI-powered Solana trading agent for market intelligence, social scraping, and automated trading calls.",
126
+ "main": "index.js",
127
+ "types": "index.d.ts",
128
+ "type": "module",
129
+ "scripts": {
130
+ "build": "tsc",
131
+ "test": "node test.js || echo \"no tests\"",
132
+ "lint": "eslint ."
133
+ },
134
+ "repository": {
135
+ "type": "git",
136
+ "url": "https://github.com/your-username/NolandAI.git"
137
+ },
138
+ "keywords": [
139
+ "AI",
140
+ "trading",
141
+ "Solana",
142
+ "crypto",
143
+ "blockchain",
144
+ "LLM",
145
+ "bot",
146
+ "Dexscreener",
147
+ "NolandAI",
148
+ "AuroraRift"
149
+ ],
150
+ "author": "AuroraRift Team <team@aurorarift.io>",
151
+ "license": "MIT",
152
+ "bugs": {
153
+ "url": "https://github.com/your-username/NolandAI/issues"
154
+ },
155
+ "homepage": "https://huggingface.co/your-username/NolandAI",
156
+ "engines": {
157
+ "node": ">=18"
158
+ },
159
+ "dependencies": {
160
+ "axios": "^1.7.0",
161
+ "dotenv": "^16.3.1"
162
+ },
163
+ "devDependencies": {
164
+ "eslint": "^8.56.0",
165
+ "typescript": "^5.4.0"
166
+ }
167
+ }
168
+ index.js (repo root)
169
+ js
170
+ Copy code
171
+ import axios from "axios";
172
+ import dotenv from "dotenv";
173
+
174
+ dotenv.config();
175
+
176
+ export class NolandAI {
177
+ constructor(config = {}) {
178
+ this.apiKey = config.apiKey || process.env.NOLAND_KEY || "";
179
+ this.baseUrl = config.baseUrl || "http://localhost:8000"; // FastAPI default
180
+ }
181
+
182
+ async getTradingCall() {
183
+ const res = await axios.get(`${this.baseUrl}/trading-call`, {
184
+ headers: this.apiKey ? { Authorization: `Bearer ${this.apiKey}` } : {}
185
+ });
186
+ return res.data;
187
+ }
188
+
189
+ async getMarketData(tokenAddress) {
190
+ const res = await axios.get(`${this.baseUrl}/market-data/${tokenAddress}`);
191
+ return res.data;
192
+ }
193
+ }
194
+
195
+ export default NolandAI;