Favicon of napi-interop

napi-interop Skill

AI Agent SkillJavaScriptOpen source

Rust↔JS interop architecture in duroxide-node. Use when modifying the napi bridge, adding ScheduledTask types, fixing cross-thread issues, changing tracing delegation, or debugging blockinplace / ThreadsafeFunction behavior. Published by microsoft in duroxide-node.

What is napi-interop Skill?

Rust↔JS interop architecture in duroxide-node. Use when modifying the napi bridge, adding ScheduledTask types, fixing cross-thread issues, changing tracing delegation, or debugging blockinplace / ThreadsafeFunction behavior. Published by microsoft in duroxide-node. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.

Trust signal
95/100
Maintenance signal
90/100
Adoption signal
38/100

Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.

Key capabilities

  • Includes SKILL.md support
  • Reusable instructions support
  • Developers using duroxide-node

Technical details

Copy skill directory
  • Install or run with Copy skill directory

When to use napi-interop Skill

  • Use it for developers using duroxide-node.

Built with

JavaScriptCopy skill directory

Editorial notes

Source

  • Creator: microsoft
  • Repository: microsoft/duroxide-node
  • Skill file: .agents/skills/napi-interop/SKILL.md

What it does

Rust↔JS interop architecture in duroxide-node. Use when modifying the napi bridge, adding ScheduledTask types, fixing cross-thread issues, changing tracing delegation, or debugging blockinplace / ThreadsafeFunction behavior.

Skill instructions

napi-rs Interop Architecture Overview duroxide-node bridges Rust's duroxide runtime to Node.js via napi-rs. The interop has two distinct paths — orchestrations (generator-based, synchronous blocking) and activities (async Promise-based). Getting this wrong causes silent replay corruption, deadlocks, or dropped futures. File Map | File | Role | |------|------| | src/handlers.rs | Core interop — orchestration handler loop, activity invocation, global context maps, select/race/join, activity cancellation | | src/types.rs | ScheduledTask enum — the protocol between JS and Rust | | src/lib.rs | napi entry point, [napi] trace functions | | src/runtime.rs | JsRuntime — wraps duroxide::Runtime, registers handlers | | src/client.rs | JsClient — wraps duroxide::Client | | src/provider.rs | JsSqliteProvider | | src/pgprovider.rs | JsPostgresProvider | | lib/duroxide.js | JS generator driver, OrchestrationContext, ActivityContext | Orchestration Interop (Blocking Generator Loop) The replay engine

Explore related resources

Frequently asked questions

What is napi-interop?

napi-interop is a open-source AI agent skill with Copy skill directory. Rust↔JS interop architecture in duroxide-node. Use when modifying the napi bridge, adding ScheduledTask types, fixing cross-thread issues, changing tracing delegation, or debugging blockinplace /.

Who is napi-interop best for?

napi-interop is best for reusing agent instructions, scripts, and references.

How do I install napi-interop?

Install or run napi-interop using Copy skill directory. Check napi-interop for the latest setup command.

Is napi-interop actively maintained?

napi-interop may need a closer maintenance check before production use.

Share:

Stars
33
Forks
19
Last commit
1 month ago
Repository age
5 months
License
MIT

Auto-fetched from GitHub.

Ad
Favicon

 

  
 

Similar to napi-interop

napi-interop: Install, Config & GitHub Signals – SkillIndex