napi-rs
typespec | napi-rs | |
---|---|---|
8 | 35 | |
3,064 | 5,513 | |
26.7% | 2.4% | |
9.7 | 9.6 | |
3 days ago | 5 days ago | |
TypeScript | Rust | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
typespec
-
Write OpenAPI with TypeSpec
It does not exist, but it will be worked on fairly soon. You can track progress on GitHub [1]. It will be as you suggest - a one time conversion, after which you can iterate. We have this workflow for inside Azure, but the converter is Azure-specific (e.g. converts to TypeSpec that uses our extensive Azure-specific component library). It will take a bit to generalize.
[1]: https://github.com/microsoft/typespec/issues/3038
- TypeSpec
-
Write SDK βbaseβ in Rust, wrap in other languages?
Afaik there's nothing that's widely used and of which I'd say I prefer it. But I'm having hopes for https://github.com/microsoft/typespec (former cadl). The reason being that yaml/JSON specs get huge very quickly, OpenAPI has to fight with restrictions of yaml/JSON ($refs, splitting up into files, oneOf, etc.) and tooling is ok but not great.
-
Ask HN: Why is there no specification for Command Line Interfaces?
You've touched on some use cases I've thought about and led me to ask the question.
I also recently saw Microsoft take a higher level approach with CADL/Typespec: https://microsoft.github.io/typespec/ which could be cool if it reaches wide adoption.
- Cadl
- Cadl: a language to describe APIs and generate schemas
- Cadl: A language to describe APIs and generate schemas
-
Cadl: a new IDL
This one just crossed my feed today: Cadl, "... a language for describing cloud service APIs and generating other API description languages, client and service code, documentation, and other assets."
napi-rs
- Napi: Build compiled Node.js add-ons in Rust
- Napi.rs, framework for building pre-compiled Node.js addons in Rust
-
Electrons Are Fast, So Can Be Electron β How to Optimize Electron App Performance
Napi-rs
- π GoRules Zen Engine: Rules Engine for Node.js
-
What's the "modern" way of creating a native addon for Node.js?
Thanks! This seems pretty official. I do really like what I saw from https://napi.rs/ where you just throw a "#[napi]" macro on and it works. Do you know if there's a Node API equivalent C/C++ workflow or tool that does something similar? I think the https://github.com/nodejs/webidl-napi is kinda what I'm looking for but it's archived.
- π GoRules Zen Engine: Cross-platform rules engine written in Rust
-
Equivalent to wasm-pack for nodejs C FFI?
Does it need to be Neon? From what I've read, there's something about its design that allows napi-rs to achieve better performance in some situations.
-
Node & Rust: Friendship Forever. The NAPI-rs Way.
NAPI-RS is a framework for building pre-compiled Node.js addons in Rust.
-
Write SDK βbaseβ in Rust, wrap in other languages?
For example, they list PyO3 for Python (see also maturin for packaging), NAPI-RS for Node.js, and Rutie for Ruby.
- NAPI-RS 3.0 RFC is ready; come and join the discussion
What are some alternatives?
guardrail - Principled code generation from OpenAPI specifications
canvas - High performance skia binding to Node.js. Zero system dependencies and pure npm packages without any postinstall scripts nor node-gyp.
libninja - Generate client libraries that are featureful, human, well-documented, and async based on OpenAPI specs
wasmer-go - πΉπΈοΈ WebAssembly runtime for Go
core-crypto - MLS/Proteus multiplexer abstraction with encrypted persistent storage in Rust
node-canvas - Node canvas is a Cairo backed Canvas implementation for NodeJS.
rutie - βThe Tie Between Ruby and Rust.β
benchmark - MikroORM vs TypeORM benchmark of CRUD operations on 10k entities
connexion - Connexion is a modern Python web framework that makes spec-first and api-first development easy.
PyO3 - Rust bindings for the Python interpreter
wasmer - π The leading Wasm Runtime supporting WASIX, WASI and Emscripten
typescript-runtime-type-benchmarks - π Benchmark Comparison of Packages with Runtime Validation and TypeScript Support