I use the research repository index to track findings from my LLM-led projects. These additions cover browser data transfer, JavaScript isolation, SQLite tag storage, PDF conversion, REXC testing, SQL tooling in WebAssembly, CSRF defenses, and an incomplete v86 exploration.
A modern browser can transfer 200+ MB in 5 minutes, mostly due to video, ad refresh, and ongoing tracker activity.
My JavaScript sandboxing research concludes that vm2 is not recommended due to a persistent stream of security escapes.
The research compares Node.js worker threads, node:vm, the Permission Model, isolated-vm, vm2, and quickjs-emscripten. Built-in vm and resource limits are insufficient against determined attackers; the Permission Model is a useful but bypassable seatbelt, and isolated-vm offers V8 isolate separation and memory and CPU restrictions while in maintenance mode. QuickJS offers WASM-level in-process isolation at a significant performance cost. For highly adversarial code, the research calls for process isolation and OS/container sandboxing, with a hardened engine inside a restricted worker as defense in depth.
The SQLite tag benchmark used 100,000 rows, 100 tags, average 6.5 tags/row; under 1.5 milliseconds for single-tag queries with indexed JSON lookup tables and classic many-to-many tables.
FTS5 delivered 2–3ms queries, lowest storage, but demands careful tag design to avoid tokenization issues.
My recommended storage choices are M2M tables for most production apps; FTS5 for search-oriented interfaces; lookup tables alongside JSON columns for API-centric designs.
Raw JSON with json_each and LIKE-based approaches were much slower in the benchmark and suit small or occasional queries. The benchmark code is benchmark.py.
All strategies handled correctness, but speed and scalability varied dramatically.
My PDF converter uses Rust’s pdfium-render crate with Python PyO3 bindings and bundles the necessary PDFium binary in a self-contained Python wheel.
The converter separates a Rust CLI from a Python API, supports page counts, rendering individual pages to byte streams, and batch conversion at configurable DPI, and handles RGBA-to-RGB image processing. It uses prebuilt pdfium-binaries.
A demonstration converted a 14-page PDF at 150 DPI on SimpleQA.
The REXC JSON test suite contains 206 tests; both the TypeScript and Python implementations pass all test cases.
This language-agnostic suite covers base64 encoding, zigzag integer transformations, value conversions, roundtrip integrity, schemas, pointers, and special numeric values. A TypeScript runner uses Vitest, while a faithful standalone Python port is tested with pytest.
The syntaqlite Python extension exposes four functions—parse, format_sql, validate, and tokenize; native wheels and Pyodide-compatible WASM wheels are provided.
The extension wraps syntaqlite’s native FFI for desktop and web, linking Rust-produced static libraries and using Emscripten for WASM builds. It provides error-tolerant parsing, customizable formatting, schema-aware validation with suggestions, and tokenization that includes whitespace and comments; it uses SQLite grammar and tokenizer for high compatibility.
The CSRF demo uses browser-sent headers like Sec-Fetch-Site and Origin with SameSite cookies and server middleware checks to reject cross-origin POST requests.
The demo contrasts vulnerable and protected FastAPI bank apps and follows Filippo Valsorda’s linked approach. Its captured research says tokens are obsolete for browsers supporting Sec-Fetch-Site, citing Go 1.25 http.CrossOriginProtection; it describes SameSite cookies and middleware as defense in depth. The text says legitimate API requests, including curl, remain functional and browser scripts cannot manipulate these headers.
My v86 exploration entry is truncated after the tool link; no further findings are available.
I’ve also used the research repository for focused investigations into regex safety, Claude prompt history, Servo, QuickJS sandboxing, SQLite WAL across Docker containers, iframe CSP, Starlette, and web-page performance. These projects combine implementation experiments with explicit limitations and scope.
My TRE Python binding is designed to resist ReDoS: its runtime grows linearly with input length, not exponentially.
The TRE test suite has 22 tests, and all pass quickly.
I exclude back-references from the TRE binding deliberately to preserve linear-time guarantees.
My Claude prompt-history dataset contains 29 prompt revisions across 17 models and four model families.
I investigated Servo v0.1.0 as an embeddable Rust browser engine; its servo-shot CLI renders web content to PNG using software rendering.
For untrusted JavaScript, I recommend the process-based QuickJS sandbox for true termination safety; the thread-based sandbox is about 10× faster but may leak threads.
In my same-host Docker volume experiment, SQLite WAL reading and concurrent-writing tests both returned zero errors, with expected data visible in real time.
My Chromium and Firefox tests found that JavaScript in a sandbox="allow-scripts" iframe cannot remove or bypass an enforced CSP meta policy.
The CSP meta tag must be the first element in srcdoc for guaranteed enforcement.
My PCGamer audit recorded over 431 network requests and 5.5 MB transferred (18.8 MB decoded) within 60 seconds.
In that PCGamer audit, 82.6% of transferred data was non-content, and the overhead-to-content ratio was at least 37:1.
The PCGamer article’s HTML included 673 KB of inline CSS and 439 KB of inline JavaScript.
I use this page to track the index and findings from my LLM-led projects in the research repository. These projects span SQLite history storage and provenance, prompt evaluation, Pyodide, and safely running untrusted SQL.
My SQLite text-history prototypes compare WholeBlobHistoryStore, which rewrites one compressed historical blob per edit, with ChunkedHistoryStore, which seals compressed chunks to improve scaling for long histories.
Both history stores preserve prior text and timestamps, skip unchanged replacements by default, and serialize writers with BEGIN IMMEDIATE for atomic updates.
Benchmarks found Zstandard generally smaller and faster than zlib, while chunking avoids the increasingly expensive rewrites of the monolithic strategy; detailed results are in REPORT.md.
The SQLite history project includes tests, benchmarks, entropy experiments, and Datasette-ready demo databases, with Zstandard support via Python, the zstandard package, or libzstd.
On 2026-07-02 18:25, I documented a DSPy project evaluating and refining the production system prompts for Datasette Agent’s read-only SQL question answerer.
My DSPy evaluation harness uses Datasette Agent’s actual tools and prompts against a live in-process Datasette, with an auto-generated gold-standard dataset and custom metrics.
GEPA fixed a documented training shortfall but overfit the small dataset, causing a regression involving Datasette’s display-mode semantics.
Most apparent baseline failures in the prompt-optimization project were due to metric bugs, making metric quality a primary constraint on optimization.
My concrete prompt-improvement candidates are to clarify display-mode usage, prefer human-readable identifiers, and enhance schema listings to reduce agent error loops.
The DSPy harness and evaluation dataset are reusable; the project points to DSPy and Datasette Agent for tooling.
On 2026-06-13 23:05, I documented how SQLite can expose source table.column metadata through its column-metadata API when compiled with SQLITE_ENABLE_COLUMN_METADATA.
Python’s standard sqlite3 module does not directly expose SQLite column metadata; APSW provides it through cursor.description_full, while a pure-stdlib ctypes bridge in column_provenance.py can call the system SQLite library.
The APSW and ctypes metadata methods accurately map provenance for expressions, joins, subqueries, and CTEs; the ctypes approach can also handle in-memory databases.
For SQLite column provenance, EXPLAIN bytecode provides best-effort partial information and may falter on compound queries such as UNION; authorizer methods over-report output mappings but remain useful for access control.
For static query analysis, sqlglot can resolve column lineage when supplied with a schema, including lineage through expressions.
On 2026-06-13 22:01, my repository scan identified four projects that genuinely compiled and packaged Python wheels for Pyodide/WebAssembly.
- The four projects were
cmarkgfm-in-pyodide,cysqlite-wasm-wheel,monty-wasm-pyodide, andsyntaqlite-python-extension; their confirmed wheel artifacts werecmarkgfm,cysqlite,pydantic_monty, andsyntaqlite.
The Pyodide wheel sizes ranged from about 91 KB to 4.2 MB. Three projects target Emscripten 3.1.46 with Python 3.11/3.12; monty-wasm-pyodide targets Emscripten 4.0.9 and Python 3.13.
I made the Pyodide wheel scan reproducible with scan_pyodide_wheels.py; it excludes projects that only vendored or downloaded wheels, built standalone WASM binaries, or produced native wheels. Compatibility should be retested, especially for the older cmarkgfm artifact and its mixed Pyodide version documentation.
On 2026-06-11 04:17, I compared protections for untrusted SQL in Datasette/SQLite and psycopg/PostgreSQL: Datasette uses hard read-only file modes and a VM progress handler, while PostgreSQL uses SELECT-only privileges and statement_timeout.
PostgreSQL’s read-only flag can be bypassed without proper GRANT restrictions, so hard read-only enforcement must rely on privileges rather than transaction flags alone.
The PostgreSQL and psycopg proof of concept, pg_datasette_poc.py, confirms that Datasette’s core safety contract can be reproduced with PostgreSQL.
PostgreSQL’s statement_timeout is stricter than SQLite’s progress handler because it aborts sleeping queries as well as resource-intensive queries; server-side cursors, temp_file_limit, and work_mem can further mitigate risk.
PostgreSQL offers configurable limits on memory, disk usage, and idle connections.
On 2026-06-10 23:41, I found that DuckDB can match or sometimes exceed SQLite’s safety for untrusted SQL, but read_only=True alone is insufficient.
My hardened DuckDB configuration disables external access with enable_external_access=false and locks configuration with lock_configuration=true; a watchdog thread calling connection.interrupt() worked reliably as a query timeout.
DuckDB offers a hard memory limit and more configurable resource caps than SQLite. My safe_duckdb.py helper encapsulates the safeguards, and datasette_duckdb.py demonstrates serving a DuckDB file through Datasette.
Datasette’s SQLite configuration uses engine-level read-only connections and opcode-based time limits, which prevent unauthorized file or network access.
The safe_duckdb.py helper encapsulates DuckDB safeguards, and datasette_duckdb.py demonstrates serving a DuckDB file securely through Datasette’s web interface.
On 2026-05-30 15:34, I documented running Python ASGI apps in the browser with Pyodide and a dedicated service worker, which intercepts same-origin requests under /app/ and runs them against the Python app without a backend except for static files.
The browser ASGI design uses a shell page to manage a persistent Pyodide Web Worker, with the service worker brokering requests to Python; demonstrations cover both FastAPI and Datasette.
The browser ASGI project has 27 passing unit and browser tests, vendors Pyodide and wheels locally for offline operation, and supports navigations, forms, fetches, redirects, JSON APIs, SQL interaction, authenticated root sessions, and bookmarkable URLs.
The browser ASGI project supports authenticated root sessions, mitigates frame-busting headers, and handles app-specific URL quirks.
The Pyodide ASGI bridge handles intercepted navigations, forms, and fetches in-browser, including redirects, JSON APIs, and full SQL interaction.
On 2026-05-22 22:41, I investigated pydantic-monty, a fast, minimal Python interpreter for controlled sandboxed execution such as data transformation, branching, looping, and selected trusted host tools or a virtual filesystem.
Monty intentionally omits much of CPython; unsupported features and missing resources generally produce structured errors. Its security depends on isolation: host access is only through explicit trusted callbacks, which should be tightly scoped.
Monty reliably enforced duration, memory, allocation, and recursion limits, and its virtual filesystem mounts, including overlay and sandbox modes, behaved as expected.
Monty supports arithmetic, control flow, builtins, sys, math, and re, while classes, context managers, real imports, and dynamic introspection are among the missing features.
Monty virtual filesystems allow controlled reads and writes; host access is possible only through explicitly exported callbacks.
Monty’s unsupported features and missing resources generally fail cleanly as structured errors rather than escaping into the host runtime.
In Monty package version 0.0.17, f-string formatting flags showed silent omissions inconsistent with stricter source-level parsing; type checking and snapshot pause/resume support async external calls and stateful agent workflows.
For execution of untrusted code, I treat isolation and resource controls as central: Monty requires tightly scoped trusted callbacks, DuckDB needs external access disabled and configuration locked, and PostgreSQL read-only access needs privileges rather than a transaction flag alone. These are distinct implementations of the same safety concern.
I use the research repository index to present dated project entries with titles, optional GitHub links, and cached or generated summaries. The entries are sorted newest first, and the script’s summary-generation behavior distinguishes cached summaries from summaries generated from a project README.
I sort research project entries most recent first using subdirs_with_dates.sort(key=lambda x: x[1], reverse=True).
I display dates in the format %Y-%m-%d %H:%M in UTC, after converting each commit date to UTC.
I choose a project title from the first H1 heading in README, falling back to directory name.
When a Git origin is available, I build the project link from the normalized origin plus /tree/main/{dirname}#readme. SSH-style git@github.com: origins become HTTPS URLs, and a trailing .git is removed.
I give the Git-origin lookup a timeout of 2 seconds; lookup exceptions are ignored, so the entry can be printed without a GitHub link.
My summary cache policy is to use existing _summary.md before generation; empty cache prints No description available.
I allow summary generation to run for 60 seconds.
My summary prompt requests 1 paragraph of 3–5 sentences, optional short bullet list, and 1–2 links to key tools/projects; it also asks for a varied opening, specificity without excess length, and no emoji.
Summary generation raises RuntimeError on command failure or empty output; caches successful stripped output with a trailing newline. A nonzero llm return code raises an error, and successful nonempty output is printed and saved to _summary.md.
The README-note update implementation is not shown; the snippet ends with a comment proposing an AI-generated note update.
The research repository is described as a collection of projects carried out by AI tools, and its project unit is captured in the README line: “Each directory in this repo is a separate research project carried out by an LLM tool”.
The repository README says: “Every single line of text and code was written by an LLM.”
The README says the research projects are usually carried out using Claude Code.
The repository specifies that times shown are in UTC.
The supplied repository metadata is Rust, 805 stars, 55 forks.
The supplied repository dates are Started 2025-10, last updated 2026-11.
I use project directories as the index’s units. The Cog script discovers non-hidden subdirectories, dates each one from its README history when possible, and has a filesystem-time fallback. This is the indexing method described for the repository, rather than a reported result of running the script.
The script asks Git for README history with `git log --follow --format=%aI --reverse -- <README path>` and selects the oldest commit touching that README.
I replace existing marked AI notes using a non-greedy regular expression with re.DOTALL, and write a README only when its contents change.
I insert a new AI note after the first # heading, only when a first-level heading is found.
My optimized C implementation runs at 16–19 ns per row; 8 million fuzz checks matched across the implementations.
The C shared library is C about 14 KB; Rust 284–306 KB in size.
For untrusted JavaScript, my tested defense uses network isolation via unshare -rn, ephemeral profiles, bubblewrap, process timeouts, fresh processes, and nonce-tagged results.
My webframe patch is 97 lines; roughly 450 ms per call is the startup time for a sandboxed call.
sparqlite passed 636 of 639 applicable W3C tests; millions of differential-fuzz comparisons; 3.5× count-mode and 2.8× full-results speedups over SQL translation.
In my web-edit profiling experiment, preserve_endings in 64.8% of 15,296 stacks; 95.1% from AnyIO worker thread.
In the paired Qwen comparison, accuracy 26.63% to 98.82%; canonical wording 25.44% to 98.22%; median latency 1.50 to 27.62 seconds with medium reasoning.
DCB2 reduced storage from 130.1 MB to 41.2 MB; cold seven-interaction session to 230 KB.
For smolvm 1.8.3, cold starts around 0.6–1.5 seconds; warm executions around 50 ms; --cpus 1 --mem 512 --storage 3 --timeout 30s --unprivileged are the recommended limits.
The Bun.WebView service used 56 MB JavaScript-only and 104 MB with headless_shell; 64 ms JavaScript requests and 308 ms heavy screenshots were measured.
The Git command has a five-second timeout: timeout=5.
When Git history cannot provide a date, the fallback uses the README modification time if available, otherwise the directory’s modification time, and assigns the timestamp UTC.
The script prints a heading containing the dynamically calculated number of discovered subdirectories: ## {len(subdirs_with_dates)} research projects. The captured content does not include the script’s output, so it does not establish a project count.
The README points to “Code research projects with async coding agents like Claude Code and Codex” for more details on how the research works.
I try to include prompts and links to transcripts in the pull requests that added each report, or in the commits on main.
I track how AI tools are changing research, from search-based research that now works in practice to read-only deep-research agents that gather information through a wider range of tools. I also explore particular products and use cases, including OpenAI’s o4-mini-deep-research model and the challenge of finding US census data.
On 2025-04-21, after a couple of years since GPT-4 powered Bing and with the arrival of various Deep Research products and o3/o4-mini, I was ready to say that AI assisted search-based research actually works now.
On 2025-06-18, I said the two big changes since January were that the recent round of models (o4-mini, o3, Claude 4, Gemini 2.5) have got REALLY good at tool calling, and MCP has taken off which means there are a whole lot more tools out there.
I expect more variants on the deep-research pattern as a result, and expect them to be primarily still read-only, not taking actions on people's behalf. I also expect information gathering beyond just running search queries to take off a whole lot. The broader availability of tools connects to mcp adoption and design.
I've tried to find US census data in the past and found it very difficult to navigate; in the thread I said that was a big time saver as well.
On 2025-10-18, I wrote notes about what I learned exploring OpenAI's o4-mini-deep-research model through their Responses API, including vibe-coding a few tools to help me evaluate the results. This exploration connects to my notes on the openai responses api.
I’ve hardly used Deep Research since GPT-5 Thinking came out.
GPT-5 Thinking gives me a similar level of results but much faster than Deep Research.
I can interact with GPT-5 Thinking to point it in new directions.
This comparison reflects my own experience using GPT-5 Thinking as an interactive alternative for research, rather than broader usage data about Deep Research. It connects to ai search quality and use.
I’ve been getting a lot of value using coding agents for code research tasks recently.
I have a dedicated simonw/research GitHub repo for code research.
I frequently have coding agents run detailed experiments and write up the results.
My research repository has 13 folders, each representing a different research project.
An LLM automatically updates the repository README with summaries describing each project.
I organize agent-assisted research as separate projects in a dedicated repository, with the agents conducting detailed experiments and writing up results, while an LLM maintains project summaries in the README. This workflow connects to agents debugging and navigating code and coding agent use cases.
Related: turning sources into useful content, learning prompting techniques, prompt output formatting