node-addon-examples
Nest
node-addon-examples | Nest | |
---|---|---|
3 | 354 | |
2,523 | 69,226 | |
0.4% | 0.9% | |
6.2 | 9.9 | |
4 days ago | 4 days ago | |
C++ | TypeScript | |
GNU General Public License v3.0 or later | MIT License |
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.
node-addon-examples
-
Vulnerabilities in NodeJS C/C++ add-on extensions
Looking at the provided examples, we can see that in some examples , assert is used to check the return value of some functions. However, if an assert is reached by tainted values (from the javascript code) during the program execution, it can lead to a crash (DoS). While reviewing some projects, we found several occurrences of reachable asserts in the code logic, so I thought itās worth mentioning as part of the previous list.
-
Calling C++ from nodejs
Yeah, that's the only place I found a napi.h file, so I think tutorials using that are assuming the node-addon-api? Anyways checking out examples like this, https://github.com/nodejs/node-addon-examples/blob/7ca7b6d03c1acb72fe292b4be468009534a20ff3/2_function_arguments/node-addon-api/addon.cc, it actually looks pretty easy to use to call C++ functions in node
-
What should be the correct way to send to the front-end the napi_values I receive from the native-addon?
I am trying to communicate this native addon with the front-end. It consists of a prime number generator, when it is executed it writes to the console, I want it to send them via Sockets to the browser console.
Nest
-
The death of mocks by Testcontainers
Writing tests can often feel like a daunting task, especially when you find yourself juggling mocks for internal and external services. Flaky tests, unrealistic mocks, and the constant fear of āwhat if this breaks in production?ā can make the process incredibly stressful. I recently had to write integration tests for a service built with NestJs and having to mock the database layer (repository) didn't sit right with me as it felt like I was testing a facade rather than the real thing. Now, donāt get me wrongāmocks are great and have their place in testing. But in this scenario, I wanted to ensure my code worked seamlessly in a production-like environment. So, I did what any developer would do: I reached out to my manager for advice. His suggestion? Testcontainers. It was a game-changer. With Testcontainers, I was able to spin up lightweight, disposable containers for services like PostgreSQL, Redis, and moreāgiving me a reliable, production-like testing environment right from my local machine. No more āliving a lieā with overly simplistic mocks.
-
NestJS Fundamentals Part 1: Modularity in NestJS
When building scalable applications with NestJS, understanding its modular architecture is the first and most critical step. Modules are at the heart of every NestJS application, organizing your code into manageable, reusable, and maintainable components.
-
Custom builder for Angular: My way
In my project I also use TypeORM with plugin for NestJS. To do this I needed to add custom options for esbuild. I implemented a feature similar to custom-esbuild to allow users to add their own plugins to the build.
-
How to Create a quick Authentication library for NestJS/MongoDB application
If you are not familiar with NestJS, think it as the JavaScript framework that similar to what Spring for Java or what .NET for C#. (Pros, don't throw rocks at me š„ø). If you are a NodeJS developer that never excavated NestJS, give it a try. They have one of the best documentations (https://nestjs.com/) I have ever seen in my tiny developing life š¶.
-
Running PostgreSQL, MongoDB, and NestJS concurrently with Docker Compose
In this tutorial, we will look at how to use Docker-compose to run PostgreSQL and MongoDB services. Find out what PostgreSQL means. Visit their website to learn more about MongoDB. A NestJs server application will also be created, along with a server image and instructions on ways to add it as a service to our container. Visit NestJs here to learn more. We will also use API calls to communicate with the database containers.
-
Building a Production Stack: Docker, Meilisearch, NGINX & NestJS
Start by preparing your NestJS application.
-
The Ultimate Tech Stack for Startups in 2025
NestJS For larger, more complex projects, NestJS is our go-to framework. Itās the epitome of organization and scalability, built to support enterprise-grade applications with TypeScript. If you want a backend that scales with your app, NestJS is the perfect choice.
- Kysely + Kanel: a dupla perfeita
-
How to level up your backend skills
Framework updates from NestJS, Deno, and Laravel.
-
Integrating an external file server https://min.io into a full-stack application on NestJS and Angular
https://nestjs.com - the official website of the framework
What are some alternatives?
Node-Torrent - This repository contains the torrent node source code written in C++.
Moleculer - :rocket: Progressive microservices framework for Node.js
node-addon-api - Module for using Node-API from C++
Koa - Expressive middleware for node.js using ES2017 async functions
Node-Core - This repository contains Node-Core's source code written in C++.
feathers - The API and real-time application framework
pnpm - Fast, disk space efficient package manager
Ts.ED - :triangular_ruler: Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone. āļø Star to support our work!
crystal - š® Graphile's Crystal Monorepo; home to Grafast, PostGraphile, pg-introspection, pg-sql2 and much more!
tsoa - Build OpenAPI-compliant REST APIs using TypeScript and Node
obs-studio-node - libOBS (OBS Studio) for Node.Js, Electron and similar tools
Meteor JS - Meteor, the JavaScript App Platform