npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

fieldtheoryx-cli-windowsport

v0.5.1

Published

FieldTheoryX for Windows. A local-first CLI for X/Twitter bookmark sync, search, and experimental classification.

Readme

FieldTheoryX v0.5.1 for Windows

FieldTheoryX for Windows

It syncs your X/Twitter bookmarks into a local cache, builds a local SQLite FTS index, and exposes a CLI that works well with shell-driven agents such as Codex ; and even better with agent harnesses such as Hermes. Bonus idea: don't even interact with FieldTheoryX manually; simply feed the repo to your agent of choice and have it sync your bookmarks into its Memory System (my own two cents: works very well with Obsidian as Memory Vault).

Release Status

v0.5.1 is the first public release of FieldTheoryX CLI Windows Port.

Core bookmark sync, search, and indexing are stable and release-ready. LLM-powered classification (ftx classify, ftx classify-domains) is available as an experimental feature in this release. Classification is structurally hardened and covered by unit tests — payload is never passed in argv, output is schema-validated, and batch failures are isolated per-item. Final live upstream verification with Codex and Claude is still pending due to provider rate limits; classification output may evolve and temporary availability changes are possible until that validation is complete. See the [Experimental] markers in the Commands table below.

This release also includes substantial security hardening across LLM transport, SQL safety, media handling, DevTools loopback enforcement, Windows secret storage, and filesystem protections. See SECURITY-HARDENING.md for details. Still, be careful using this; in this day and age, never trust -- always verify.

What's New in v0.5.1

  • Full sync by default: ftx sync now fetches all bookmarks from the beginning (use --incremental for incremental mode)
  • Chrome & Brave support: Auto-detects Chrome or Brave browser
  • DevTools Protocol fallback: For newer browsers with v20 encryption, uses Chrome DevTools Protocol to extract cookies directly
  • Security hardening: See SECURITY-HARDENING.md for v0.5.1 hardening details and residual risks ; take this seriously
  • LLM classification (experimental in v0.5.1): ftx classify and ftx classify-domains use Codex or Claude to categorize bookmarks by topic. Classification is an advanced feature currently undergoing final validation — output categories may evolve and the feature may be temporarily unavailable while that validation completes. Core sync, search, and indexing are stable and fully released.

Inspiration

This project is completely inspired by FieldTheory by Andrew Farah, for mac OS. The original project established the local-first bookmark workflow and the overall CLI shape that this fork builds on.

What Changed

  • Windows Chrome & Brave cookie extraction for sync
  • DevTools Protocol fallback for v20 encryption
  • Full sync by default (fetches all bookmarks)
  • No dependency on an external sqlite3 binary
  • ftx doctor for machine checks
  • ftx command name and a separate default data directory
  • Codex-first LLM engine preference, with Claude fallback if Codex CLI is not installed (classification is experimental — see note in "What's New")

Install

Install from npm:

npm install -g fieldtheoryx-cli-windowsport
ftx --help

Install directly from GitHub:

npm install -g github:shangobashi/fieldtheoryx-cli-windowsport
ftx --help

Install from a local checkout:

npm install
npm run build
npm install -g .
ftx --help

On Windows PowerShell, if script execution blocks npm, use npm.cmd instead. Requires Node.js 20+ and Google Chrome or Brave Browser.

Optional environment variables

  • X_PUBLIC_BEARER: override the default public X web bearer token used for GraphQL bookmark sync.
  • FTX_DATA_DIR: override the local data directory.

Quick Start

ftx doctor # Check environment
ftx sync # Sync all bookmarks (default: full sync)
ftx sync --incremental # Or sync incrementally (only new bookmarks)
ftx search "machine learning" # Search bookmarks
ftx stats # View stats

Browser Support

FieldTheoryX supports both Google Chrome and Brave Browser:

  1. Standard extraction: Reads cookies directly from the browser's SQLite database
  2. DevTools Protocol fallback: For newer browsers with v20 encryption, extracts cookies from the running browser via DevTools Protocol

To use DevTools Protocol:

  1. Start your browser with: brave.exe --remote-debugging-address=127.0.0.1 --remote-debugging-port=9222 or chrome.exe --remote-debugging-address=127.0.0.1 --remote-debugging-port=9222
  2. Keep DevTools bound to loopback only (127.0.0.1 / localhost) and do not expose the debugging port on LAN interfaces.
  3. Run ftx sync — it will automatically use DevTools Protocol if standard extraction fails

Commands

| Command | Description | |---|---| | ftx sync | Sync bookmarks from X (full sync by default) | | ftx sync --incremental | Sync only new bookmarks since last sync | | ftx search <query> | Full-text search across bookmarks | | ftx list | List bookmarks with filters | | ftx show <id> | Show one bookmark in detail | | ftx stats | Aggregate statistics | | ftx classify [Experimental] | Classify bookmarks by category using Codex or Claude | | ftx classify-domains [Experimental] | Classify by subject domain using Codex or Claude | | ftx doctor | Check local prerequisites | | ftx viz | Visual dashboard |

Credits

  • Andrew Farah's Field Theory — the original local-first bookmark archive CLI
  • Shango Bashi — Windows port, Brave support, DevTools Protocol fallback, performance optimizations

MIT License.