Proposal: use the chdb npm package instead of direct libchdb FFI
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- nodejs, typescript
- Lĩnh vực
- backend, infrastructure
Hướng nghiên cứu
Start by tracing Maple's direct FFI integration with libchdb.so and compare it with the official chdb npm package (chdb-node). Check the open pull request #791 before starting, since it may already cover this proposal. Done means the internal access path uses chdb-node while Maple's existing UI/API behavior and local chDB support remain unchanged; durable mode is explicitly out of scope.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Maple currently talks to chDB through direct FFI against libchdb.so. That works, but it means Maple has to maintain its own native loading path, ABI assumptions, and release packaging around chDB.
I would like to propose a small migration step: make Maple use the official chdb npm package as the chDB integration layer, while keeping Maple current user-facing behavior the same.
The first PR would not add durable mode yet. It would only replace the internal chDB access path:
- keep the same Maple UI/API behavior
- keep local chDB working as it does today
- move native addon loading and platform packaging to chdb-node
- add a thin Maple wrapper if needed so the rest of Maple does not change much
Why this helps:
- Maple can follow the maintained chDB Node addon instead of carrying a separate FFI path.
- Durable support can be implemented once in chdb-node, then used by Maple later.
- Future chDB Node improvements, such as async API work, ABI updates, packaging fixes, and platform support, can reach Maple without reimplementing them in Maple.
- The release surface gets smaller because Maple no longer needs to own as much native binding logic.
After that migration is in place, a later PR can add optional Maple durable support on top of the chdb-node durable APIs.
Does this direction make sense for Maple?
- Ngôn ngữ chính
- TypeScript
- Star
- 1.8k
- Fork
- 120
- Merge trung bình
- 8 giờ 15 phút
- Pull request đã merge (30 ngày)
- 659
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MapleTechLabs/maple
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
MapleTechLabs/maple#1889 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
MapleTechLabs/maple#1888 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
@maple-dev/alchemy: AlertRule props type-check combinations the API rejects (group_by with service_names, raw_query with services, …)Có thể đã có người làm @jasonkuhrt đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
MapleTechLabs/maple#1898 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
MapleTechLabs/maple#1896 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
@maple-dev/alchemy: typed dashboard props, a managed refresh interval, and adopting a dashboard built in the UICó thể đã có người làm @jasonkuhrt đã nhận 1 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
MapleTechLabs/maple#1891 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MapleTechLabs/maple
Issue tương tự
-
[Bug]: Pen taps on sidebar rows start a drag and lose their clickCó thể đã có người làm @makhnatkin đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
b310-digital/teammapper#1515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
puckeditor/puck#1884 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
outline/outline#14378 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nicobailon/pi-web-access#642 ·
Maintainer thường phản hồi trong vòng 1 ngày