Skip to content
曾亮懿 ZengLiangYi Blog
Tag

#TypeScript

13 posts tagged "TypeScript".

SourceAdapter Internals: Content Hashing and Idempotent Sync

Trace ChatCrystal’s registry, importer, and remote payload to verify identity, canonical hashes, metadata shortcuts, and parser-version boundaries.

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

Biome vs ESLint: Dividing Code Quality and Formatting in Repos

Read ChatCrystal’s scripts and Flat Config, verify ESLint diagnostics offline, and distinguish syntax rules, type checking, formatting, and CI gates.

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

Async Task Queues with p-queue: Concurrency, Limits, and Retries

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

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

Multi-Source Ingestion Architecture: Decouple Scan and Parsing

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

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

TanStack Query Data Flow: Keys, Invalidation, and Queries

Trace ChatCrystal hooks and API, verify parameterized query keys and prefix invalidation, and distinguish accepted requests from background refreshes.

曾亮懿 曾亮懿
4 min read
#ChatCrystal #React #TypeScript

Testing Strategy: Counterexamples for SQL, Functions, and APIs

Check ChatCrystal’s Node test entry points, practice dependency isolation, SQL rollback, and Fastify inject offline, and state what those tests do not cover.

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

TypeScript Monorepo Setup: Project References and Shared Types

Check ChatCrystal’s shared types, server, Vite client, and Electron settings, then reproduce an alias failure that passes compilation but fails at runtime.

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

Choosing a Lightweight Local Vector DB: Vectra, Chroma, hnswlib

Compare Vectra, Chroma, and hnswlib through ChatCrystal’s deployment constraints: integration, retrieval cost, backups, and recovery boundaries.

曾亮懿 曾亮懿
6 min read
#ChatCrystal #TypeScript #Vector search #Architecture

AI Assistant Chat Formats: Parsing JSONL Events and SQLite Stores

Parse Claude Code, Codex, Cursor, Trae, and Copilot chats, comparing how JSONL messages, event streams, SQLite KV stores, and database snapshots differ.

曾亮懿 曾亮懿
7 min read
#ChatCrystal #TypeScript #AI #Data parsing

Streaming A/V Sync: AudioContext Suspend and Resume Gating

Freeze and release the AudioContext timeline as streamed frames arrive, so frame availability drives playback while audio and video remain synchronized.

曾亮懿 曾亮懿
4 min read
#TypeScript #Frontend #Performance

From writing to code

Explore ChatCrystal, developer tools and daily learning notes on my GitHub. Questions about the implementation are welcome.