Skip to content

Add a Node.js implementation of the kernel #288

@rekmarks

Description

@rekmarks

We should add a Node.js implementation of the kernel, based on #226. Requirements for the completion of this issue:

  • better-sqlite3 for storage, not the WASM package used in the browser
  • The kernel should run as a daemon process
    • We can use the endo pet daemon as a reference implementation
  • The kernel should have a dedicated CLI, implemented using yargs
    • This is to say, we should not reuse the existing ocap CLI package for this
  • For IPC, we should use the Node streams introduced in feat(streams): Add Node.js worker_thread stream #287
    • During the initial implementation of feat: nodejs support #226, we discussed whether to use worker_threads vs. child_process for the various components of the kernel. Again, the endo pet daemon can serve as a reference implementation, but any uncertainty should be brought to the rest of the team for discussion.

Related: #311

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions