Engineering Guides

Practical LLM Data, Parquet & Schema Guides

Step-by-step engineering guides covering TOON token benchmarks, browser Parquet SQL queries, JSONL fine-tuning prep, Zod vs. Pydantic schemas, LLM JSON repair, MCP generation, and zero-upload PII redaction.

Built for zero-upload production data workflows

Every guide pairs concrete schemas, SQL examples, and token benchmarks with 100% browser-local DataTo Web Workers.

5 min read2026-11-24

JSON vs. TOON vs. YAML: LLM BPE Token Benchmarks in 2026

Compare GPT-4o o200k_base BPE token counts across formatted JSON, minified JSON, YAML, CSV, and TOON—plus how TOON cuts prompt array tokens 40%–60%.

Read guide →
5 min read2026-11-24

How to Inspect & Query Apache Parquet with SQL in Your Browser

Inspect Apache Parquet schemas and run full SELECT, JOIN, and GROUP BY SQL queries locally in browser RAM using hyparquet and self-hosted sql.js WASM.

Read guide →
6 min read2026-11-24

OpenAI & Anthropic Fine-Tuning JSONL Dataset Preparation Guide

Format, convert, validate, deduplicate, and shard ChatML JSONL fine-tuning datasets from CSV, Alpaca, ShareGPT, or Parquet locally in browser RAM.

Read guide →
6 min read2026-11-24

JSON Schema vs. Zod v4 vs. Pydantic v2 for LLM Structured Outputs

How OpenAI Strict Mode, Anthropic Tool Use, Zod v4, and Pydantic v2 map through a Unified Type IR—and how to generate all three locally.

Read guide →
4 min read2026-11-24

How to Repair Malformed & Truncated LLM JSON Outputs Locally

Automatically strip markdown code fences, fix single quotes, trailing commas, Python True/False literals, and truncated brackets from LLM JSON responses.

Read guide →
5 min read2026-11-24

OpenAPI to MCP: Exposing REST APIs as Model Context Protocol Tools

Turn internal OpenAPI 3.x YAML/JSON specs into Model Context Protocol (MCP) TypeScript tools and Zod v4 input schemas locally without uploading internal APIs.

Read guide →
5 min read2026-11-24

Zero-Upload PII Redaction & Reversible Restore Before Sending Data to AI

Redact emails, phone numbers, API keys, DB URIs, and salaries locally in browser RAM using [[TYPE-NN]] placeholders—then restore AI replies cleanly.

Read guide →
5 min read2026-11-24

Parquet vs. CSV vs. SQLite: Choosing the Right Format for Browser Analytics

Compare Apache Parquet, CSV, and SQLite 3 by file size, compression, column pruning, SQL querying, and WASM browser memory behavior.

Read guide →
4 min read2026-11-24

Excel XLSX & CSV Encoding Guide: Fixing Garbled Characters with UTF-8 BOM

Stop Microsoft Excel from garbling Chinese, Japanese, Korean, and European accented CSVs—learn how UTF-8 BOM works and convert XLSX/CSV safely locally.

Read guide →
4 min read2026-11-24

TOML vs. YAML vs. JSON: Picking the Best Configuration Format

Compare TOML 1.0, YAML 1.2, and JSON for Kubernetes, CI pipelines, Rust Cargo.toml, Python pyproject.toml, and API configs—and convert locally.

Read guide →
4 min read2026-11-24

Structural JSON Diff & Primary-Key CSV Diff for Data Validation

Compare API payloads and database table exports cleanly using key-order-normalized structural JSON diff and primary-key-aligned CSV diff locally.

Read guide →
5 min read2026-11-24

Browser WASM & SQLite Architecture: Zero-Upload Privacy & Memory Limits

Inside DataTo's Dedicated Web Worker architecture: self-hosted 688 KB sql.js WASM, Parquet range reads, Worker recycling, and how to stay safe on huge datasets.

Read guide →
5 min read2026-11-24

Convert HuggingFace Parquet Files to JSONL & CSV Without Python

Convert HuggingFace Parquet shards to JSONL, JSON, or UTF-8 BOM CSV locally in browser RAM using hyparquet and sql.js WASM—zero Python or uploads required.

Read guide →
5 min read2026-11-24

OpenAI Batch API JSONL: Unwrapping, Sharding & Validation Guide

Prepare OpenAI Batch API JSONL files locally: unwrap nested JSON arrays, deduplicate lines, split shards into ZIP archives, and flatten results to CSV.

Read guide →
6 min read2026-11-24

JSON Schema Draft 2020-12 to Zod v4, Pydantic v2 & TypeScript

Compile Draft 2020-12 and Draft-07 JSON Schemas with $defs, $ref, enums, and bounds into Zod v4, Pydantic v2, and TypeScript interfaces locally via AJV & IR.

Read guide →
6 min read2026-11-24

Sanitize Server Logs, Webhook JSON & Payroll CSV Before AI Prompts

Scrub DB URIs, Bearer JWTs, AWS keys, and IPs from logs, mask JSON keys validly, scale CSV salaries by ×k, and lock sessions in AES-256-GCM .redactkey.

Read guide →
5 min read2026-11-24

XML Attributes to JSON: Lossless @_ Prefix & Round-Trip Guide

Convert XML, SVG, RSS, SOAP, and Maven pom.xml to typed JSON with @_ attribute preservation, XXE-safe pure-JS Web Worker parsing, and clean JSON to XML.

Read guide →
5 min read2026-11-24

Offline LLM BPE Token Counting & Prompt Cost Optimization Guide

Count exact o200k_base and cl100k_base BPE tokens offline, visualize token boundary segments, prune null JSON fields, and cut prompt API costs locally.

Read guide →