jsvelox 1.9.1 → 1.9.3

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 +21 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,28 +1,41 @@
1
- # Velox
1
+ # jsvelox ðŸĶĪ
2
+ **Codename: Dodo** — v1.9.3
2
3
 
3
- Lightweight JavaScript library for AI integration.
4
+ Lightweight JavaScript library for AI integration. Connect Claude, OpenAI and Gemini with just a few lines of code.
4
5
 
5
6
  ## Install
6
7
  ```bash
7
- npm install velox
8
+ npm install jsvelox
8
9
  ```
9
10
 
10
11
  ## Usage
11
12
  ```js
12
- import { VeloxAI } from 'velox'
13
+ import { VeloxAI } from 'jsvelox'
13
14
 
14
15
  const ai = new VeloxAI({
15
- provider: 'claude', // or 'openai'
16
- apiKey: 'your-api-key'
16
+ provider: 'gemini', // 'claude', 'openai' or 'gemini'
17
+ apiKey: 'your-api-key',
18
+ memoryLimit: 10, // optional
19
+ timeout: 15000 // optional, ms
17
20
  })
18
21
 
19
22
  const reply = await ai.send('Hello!')
20
23
  console.log(reply)
24
+
25
+ // Get memory
26
+ console.log(ai.getMemory())
27
+
28
+ // Clear memory
29
+ ai.clearMemory()
21
30
  ```
22
31
 
23
32
  ## Providers
24
33
  - `claude` — Anthropic Claude
25
34
  - `openai` — OpenAI GPT
35
+ - `gemini` — Google Gemini
26
36
 
27
- ## Note
28
- Use in Node.js backend only. Not for browser use.
37
+ ## Methods
38
+ - `send(message)` — Send a message
39
+ - `sendWithRetry(message, retries)` — Send with auto retry
40
+ - `getMemory()` — Get conversation history
41
+ - `clearMemory()` — Clear conversation history
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jsvelox",
3
3
  "codename": "Dodo",
4
- "version": "1.9.1",
4
+ "version": "1.9.3",
5
5
  "description": "Lightweight JS library for AI integration and developer utilities",
6
6
  "main": "src/index.js",
7
7
  "type": "module",