Skip to content
曾亮懿 ZengLiangYi Blog
Page 2 of 6

Blog

Notes on frontend engineering and AI coding: problems, implementation choices and lessons learned.

MCP Boundaries: Discovery, Identity, and Call Permissions

Examine Model Context Protocol boundaries: tool discovery, server instance tracking, and execution permissions in reviewable developer environments.

曾亮懿 Leon Zeng
3 min read
#ChatCrystal #MCP #Node.js

SourceAdapter Internals: Content Hashing and Idempotent Sync

Build idempotent incremental data importers in Node.js: combine file size/mtime shortcuts, canonical content hashes, and parser-version tracking.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #TypeScript #Node.js

Persisting sql.js SQLite in Node.js: Exports & Savepoints

Persist in-memory sql.js SQLite databases in Node.js and Electron: handle Uint8Array exports, PRAGMA foreign_keys resets, WAL caveats, and savepoints.

曾亮懿 Leon Zeng
5 min read
#ChatCrystal #Node.js #SQLite

Team AI Knowledge Sharing: Access Tokens & Approval Flows

Separate current cloud tokens from proposed member permissions; test read operations and batch approval on fixtures and define recovery responsibilities.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #Knowledge management #Architecture

Vectra Vector Search: Metadata, Updates, and Local Cache

Inspect Vectra 0.15.0 local vector index layout, metadata filtering order, interrupted write cleanup, and in-memory instance cache boundaries in Node.js.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #Node.js #SQLite #Vector search

Building an Embedding Service: Text, Chunks, and Commits

Design a resilient Node.js text embedding pipeline: separate field selection, soft chunking, vector dimension checks, and atomic index commits.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #AI #Node.js

Combining Biome and ESLint: Flat Config & CI Gate Setup

Combine Biome formatting with ESLint Flat Config in TypeScript and React projects: separate syntax linting, hook rules, type checking, and CI gates.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #TypeScript #Node.js

A Minimal MCP Server: Register Tools and Verify Stdio Calls

Build an offline addition tool with TypeScript SDK, verify protocol discovery and calls, and inspect ChatCrystal adapter integration boundaries.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #MCP #Node.js

Parsing AI Chat Logs in Node.js: JSONL & SQLite Snapshots

Parse multi-client AI chat logs in Node.js with offline fixtures: test JSONL line framing and SQLite byte snapshots while isolating normalization rules.

曾亮懿 Leon Zeng
6 min read
#ChatCrystal #Node.js #SQLite

Release Engineering: npm, Electron, and Tag-Driven CI

Automate tag-driven npm and Electron multi-platform releases in GitHub Actions: validate version sync, package file lists, and pre-release gates.

曾亮懿 Leon Zeng
5 min read
#ChatCrystal #Node.js #Automation

Node.js Async Queues with p-queue: Concurrency & 429 Retry

Use p-queue to manage task concurrency, separate starts from model requests, and verify offline that clearing waiting work never interrupts active tasks.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #Node.js #TypeScript

Multi-Source Adapter Pattern: Decoupling Scan from Parsing

Read adapter import contracts, verify selective parsing with fixtures, and check source registration, enablement, identity, and version boundaries.

曾亮懿 Leon Zeng
4 min read
#ChatCrystal #TypeScript #Node.js

From writing to code

Explore ChatCrystal, KeelDesk, n8n workflows and daily learning notes on my GitHub. Questions about the implementation are welcome.