npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

mesh-neo

v1.0.0

Published

基于 jsql-neo 的网格化数据框架:嵌入引擎 + 插件体系,内置数据同步(CDC 表镜像 / 全量快照+增量 / 多节点副本 / WAL 刷盘)

Readme

mesh-neo

mesh-neo 是一个基于 jsql-neo 的网格化数据框架:以 jsql-neo 为底层嵌入式数据库引擎,通过统一插件体系扩展数据同步、复制、服务化等能力。

  • 引擎jsql-neo(Native / WASM / Pure JS,SQL 风格 API,B-Tree 索引、WAL、事务隔离)
  • 插件:沿用 jsql-neo 插件/模块 API —— 见 PLUGINS.md
  • 示例mod/ 目录存放 mesh-neo 的例示插件,第一个是数据同步插件(CDC 表镜像 + 全量快照/增量 + 多节点副本 + WAL 刷盘)

目录结构

mesh-neo/
├── README.md        # 本文件
├── PLUGINS.md       # 插件契约 / 模块系统文档
└── mod/             # mesh-neo 例示插件
    ├── sync.js      # 数据同步插件(jsql-neo 同步逻辑)
    └── sync.demo.js # 可运行演示

快速上手

1. 安装依赖

npm install jsql-neo

2. 运行同步例示插件

node mod/sync.demo.js

预期输出覆盖四个同步阶段:全量快照 → 增量 CDC → 冲突处理 → 多节点副本 + WAL/检查点,全部断言通过。

3. 在代码里挂载插件

const jsql = require('jsql-neo');
const sync = require('./mod/sync');

const src = new jsql.Database(':memory:');
const replicaA = new jsql.Database(':memory:');
await src.createTable('users', {
  name: { type: 'string', primaryKey: true },
  age: { type: 'integer' },
});

sync.opts = {
  srcTable: 'users',
  targets: [{ db: replicaA, table: 'users', name: 'replica-a' }],
  flushMode: 'event',
  wal: true,
};

src.use(sync);   // 或经 ModuleManager.applyTo(src) 应用
src.start();     // onStart 触发全量快照
await src.sync.syncNow();

详细回调、hooks、事件与模块系统说明见 PLUGINS.md

许可证

Apache License 2.0 —— 与 jsql-neo 一致。