proomt

Search

Search posts, papers, and topics

All posts

InfoQDaniel Curtis2 min readrelease notesintermediate

TanStack Charts Introduced with a Framework Agnostic Grammar of Graphics for TypeScript

Summary

TanStack Charts α is a framework‑agnostic, TypeScript‑first charting library that implements a grammar‑of‑graphics API (marks, scales, channels, transforms, layers). It ships as a single npm package with adapters for React, Preact, Vue, Solid, Svelte, Angular, Lit, and vanilla DOM, and can run on server or client. The runtime is headless; type inference stays tied to the source row, so each mark…

  • Grammar‑of‑graphics API replaces fixed chart components; you compose marks, scales, channels, transforms, and layers.
  • TypeScript types flow from the original data rows, giving strong compile‑time guarantees for mark definitions.
  • Single‑package install (`pnpm add @tanstack/charts`) with peer dependencies for the chosen framework; adapters exist for all major UI libraries.
  • Bundle size is modest (≈30 KB min+gz for a line chart, 38‑45 KB core) compared with other popular chart libs.

A type‑safe, framework‑agnostic charting layer lets teams share a single visualization definition across React, Vue, Svelte, etc., reducing duplication and improving DX for TypeScript‑heavy codebases. The small bundle size and headless design make it a viable alternative when you need a lightweight…

6/10

Related reading

  1. Migrating the GitHub Copilot runtime to Rust, using Copilot

    The Copilot agent runtime was rewritten from a 130‑k‑line TypeScript/Node.js codebase into a native Rust library (~830 k lines of Rust) to reduce startup latency, memory use, and improve reliability. The migration was done incrementally (in‑place) across 128 PRs, with AI‑generated code handling most of the work. The new runtime exposes a C ABI for in‑process embedding by all six Copilot SDK langu…

    GitHub Oldgithub.blog65 minHN188
  2. Eliminating AI Code Hallucinations with TypeScript Compiler Diagnostics and TDD Loops

    The article shows how to replace raw TypeScript compiler output with a programmatic JSON feedback loop that merges diagnostics and Vitest test failures, feeding the structured data back to an LLM coding agent for self‑correction. It provides concrete code for extracting, enriching, validating, and de‑duplicating errors, and demonstrates token savings and deterministic iteration until compilation…

    SitePointsitepoint.com15 min
  3. Building Composite Model Context Protocol (MCP) Gateways in TypeScript

    Step‑by‑step tutorial showing how to build a stateless composite Model Context Protocol (MCP) gateway in TypeScript using Hono, Zod, and the MCP SDK. It covers config‑driven upstream registration, namespaced tool discovery, JSON‑RPC routing, per‑tool auth middleware, and a token‑bucket rate limiter, with concrete code snippets and design trade‑offs.

    SitePointsitepoint.com16 min