@khanhromvn/elara-server 1.2.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/README.md +51 -0
- package/dist/build/Release/better_sqlite3.node +0 -0
- package/dist/sha3_wasm_bg.7b9ca65ddd.wasm +0 -0
- package/dist/start.js +836 -0
- package/package.json +99 -0
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# @khanhromvn/elara-servercc
|
|
2
|
+
|
|
3
|
+
A powerful and lightweight AI backend server. Elara provides a unified API for multiple AI providers and supports local chat persistence.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Multi-Provider Support**: Claude, DeepSeek, Mistral, Groq, Qwen, and more.
|
|
8
|
+
- **Unified API**: One endpoint for all your AI needs.
|
|
9
|
+
- **Local Database**: Automatic SQLite management in `~/.elara-backend/`.
|
|
10
|
+
- **Minified & Optimized**: Small footprint (~8MB bundle).
|
|
11
|
+
- **Programmatic API**: Exported for use in other Node.js projects.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Install globally via npm:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install -g @khanhromvn/elara-server
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
### Running as a Server
|
|
24
|
+
|
|
25
|
+
Launch the backend api server:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
elara-server
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Command Options
|
|
32
|
+
|
|
33
|
+
`elara-server` supports the following options:
|
|
34
|
+
|
|
35
|
+
- `--port, -p <number>`: Set the server port (default: 8888).
|
|
36
|
+
- `--db-path <path>`: Specify a custom path for the SQLite database.
|
|
37
|
+
|
|
38
|
+
Example:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
elara-server --port 9000
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Data Storage
|
|
45
|
+
|
|
46
|
+
By default, Elara stores its database and configurations in:
|
|
47
|
+
`~/.elara-backend/database.sqlite`
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
ISC
|
|
Binary file
|
|
Binary file
|