You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update README.md to enhance project documentation, including an overview of features, technology stack, development setup, deployment instructions, and architecture details for the Pyright WebSocket bridge.
Copy file name to clipboardExpand all lines: README.md
+74-11Lines changed: 74 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,45 @@
1
1
# Pyright LSP WebSocket Bridge
2
2
3
-
WebSocket bridge for Pyright language server with bundled Node.js runtime.
3
+
A WebSocket bridge for the Pyright language server with a bundled Node.js runtime. This service provides Python language server capabilities (autocomplete, type checking, diagnostics, etc.) through a WebSocket interface, primarily used by the Jesse dashboard to provide IntelliSense features for Jesse strategies.
4
+
5
+
## Overview
6
+
7
+
This repository delivers:
8
+
-**WebSocket Bridge** - Translates WebSocket messages to Pyright LSP protocol
9
+
-**Bundled Runtime** - Includes Node.js, eliminating system dependencies
10
+
-**Cross-Platform Support** - Works on Linux, macOS, and Windows
11
+
-**Optimized Builds** - ~70% size reduction with production-only dependencies
12
+
13
+
## Technology Stack
14
+
15
+
-**TypeScript** - Main language for the bridge implementation
16
+
-**Node.js** - Runtime environment
17
+
-**Pyright** - Microsoft's static type checker for Python
18
+
-**WebSocket (ws)** - WebSocket communication
19
+
-**vscode-ws-jsonrpc** - JSON-RPC over WebSocket
20
+
-**esbuild** - Fast JavaScript bundler
21
+
22
+
## Development
23
+
24
+
### Setup
25
+
```bash
26
+
npm install
27
+
```
28
+
29
+
### Running in Development Mode
30
+
```bash
31
+
npm start -- \
32
+
--port 9011 \
33
+
--project-root /path/to/project \
34
+
--jesse-relative-path jesse_folder_name \
35
+
--bot-relative-path jesse-bot_folder_name
36
+
```
37
+
38
+
### Command-Line Arguments
39
+
-`--port` - WebSocket server port (default: 9011)
40
+
-`--project-root` - Root directory of the Python project
41
+
-`--jesse-relative-path` - Relative path to Jesse framework folder
42
+
-`--bot-relative-path` - Relative path to Jesse bot folder
The Pyright language server is configured via `pyrightconfig.json` in the project root. You can customize type checking behavior, Python version, include/exclude patterns, and more.
89
+
45
90
## Features
46
91
47
92
- ✅ Bundled Node.js runtime (no system dependencies)
48
93
- ✅ Optimized build (~70% size reduction)
49
94
- ✅ Cross-platform support (Linux, macOS, Windows)
50
95
- ✅ Production-ready dependencies only
96
+
- ✅ WebSocket-based communication
97
+
- ✅ Full Pyright LSP capabilities
51
98
52
-
## Development
99
+
## Architecture
100
+
101
+
The bridge acts as a middleware between WebSocket clients (like the Jesse dashboard) and the Pyright language server:
0 commit comments