@spikard/node-native
v0.13.0
Published
High-performance HTTP framework for Node.js and Bun. Type-safe routing, validation, and testing powered by Rust core.
Maintainers
Readme
spikard-node
High-performance Node.js bindings for Spikard HTTP framework via napi-rs.
User-facing documentation: See Spikard for Node.js for the full API, examples, and usage guide.
Architecture
This crate provides the Rust-side napi-rs bindings that power the TypeScript/Node.js package. All HTTP handling, middleware, and validation runs in Rust; this crate translates between the TypeScript/Node.js runtime and the Spikard core.
Architecture Highlights
- Zero-copy FFI via napi-rs
- ThreadsafeFunction for async JavaScript callbacks
- Dedicated Tokio runtime (does not block Node event loop)
- Direct type conversion without JSON serialization overhead
Building
cd crates/spikard-node && pnpm buildRequirements: Rust stable toolchain
Documentation
License
MIT - See LICENSE for details
