📄️ Introduction to C++ Addons with V8 API
C++ addons allow you to call native C++ code from Node.js JavaScript, enabling performance-critical operations and system-level integration. This guide focuses on using the native V8 API for maximum performance and control.
📄️ V8 Data Types and Conversion
Mastering data type conversion between JavaScript and C++ is essential for building efficient addons. This chapter covers all V8 data types, conversion patterns, and performance optimization.
📄️ Async Operations with libuv
Node.js is single-threaded with an event loop. Long-running C++ operations must run asynchronously to avoid blocking. This chapter covers libuv integration, worker threads, and async patterns.
📄️ Object Wrapping
Object wrapping allows you to expose C++ classes to JavaScript as native objects. This enables object-oriented patterns and maintains state between function calls.
📄️ Scalable Directory Structure for C++ Addons
Organizing C++ addons properly is critical for maintainability, testing, and scaling. This guide presents production-ready directory structures for various project sizes.