@khanhromvn/elara-server 1.2.0 → 1.2.1

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 CHANGED
@@ -1,16 +1,32 @@
1
- # @khanhromvn/elara-servercc
1
+ <p align="center">
2
+ <img src="resources/icon.png" width="128" height="128" alt="Elara Logo">
3
+ </p>
2
4
 
3
- A powerful and lightweight AI backend server. Elara provides a unified API for multiple AI providers and supports local chat persistence.
5
+ <h1 align="center">Elara Server</h1>
4
6
 
5
- ## Features
7
+ <p align="center">
8
+ <strong>A Powerful, Lightweight AI Backend Proxy & Manager</strong>
9
+ </p>
6
10
 
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.
11
+ <p align="center">
12
+ <img src="https://img.shields.io/badge/Node.js-20+-68a063?style=flat-square&logo=node.js" alt="Node.js Version">
13
+ <img src="https://img.shields.io/badge/SQLite-3-003b57?style=flat-square&logo=sqlite" alt="SQLite">
14
+ <img src="https://img.shields.io/badge/License-ISC-blue?style=flat-square" alt="License">
15
+ </p>
12
16
 
13
- ## Installation
17
+ ---
18
+
19
+ Elara Server is a lightweight yet powerful backend server that provides a unified API for multiple AI providers (Claude, DeepSeek, Mistral, Groq, Qwen, etc.) while supporting secure local conversation data storage.
20
+
21
+ ## ✨ Key Features
22
+
23
+ - 🚀 **Multi-Provider**: Pre-integrated with Claude, DeepSeek, Mistral, Groq, Qwen, and more.
24
+ - 🔌 **Unified API**: A single endpoint for all your AI needs.
25
+ - 💾 **Local Storage**: Automatic SQLite management in `~/.elara-backend/`.
26
+ - ⚡ **Optimized**: Super small footprint (~8MB bundle), starts instantly.
27
+ - 🛠️ **Flexible**: Can be run as a CLI or integrated directly into other Node.js projects.
28
+
29
+ ## 🚀 Quick Install
14
30
 
15
31
  Install globally via npm:
16
32
 
@@ -18,34 +34,34 @@ Install globally via npm:
18
34
  npm install -g @khanhromvn/elara-server
19
35
  ```
20
36
 
21
- ## Usage
37
+ ## 📖 Usage Guide
22
38
 
23
- ### Running as a Server
24
-
25
- Launch the backend api server:
39
+ ### Run the Server
40
+ Simply run the following command to start the API server:
26
41
 
27
42
  ```bash
28
43
  elara-server
29
44
  ```
30
45
 
31
46
  ### Command Options
47
+ `elara-server` supports custom parameters:
32
48
 
33
- `elara-server` supports the following options:
34
-
35
- - `--port, -p <number>`: Set the server port (default: 8888).
49
+ - `--port, -p <number>`: Set the server port (default: `8888`).
36
50
  - `--db-path <path>`: Specify a custom path for the SQLite database.
37
51
 
38
- Example:
39
-
52
+ **Example:**
40
53
  ```bash
41
- elara-server --port 9000
54
+ elara-server --port 9000 --db-path ./my-data.sqlite
42
55
  ```
43
56
 
44
- ## Data Storage
57
+ ## 📂 Data Storage
45
58
 
46
59
  By default, Elara stores its database and configurations in:
47
60
  `~/.elara-backend/database.sqlite`
48
61
 
49
- ## License
62
+ ## 📄 License
63
+
64
+ Released under the [ISC](LICENSE) license.
50
65
 
51
- ISC
66
+ ---
67
+ <p align="center">Designed by <strong>@khanhromvn</strong></p>