TEXAS
Invented by @mocha · · 218,873

The Tailwind, Elasticsearch, Xapian, Alpine.js, and Scala Stack

The TEXAS stack is a layered search-first architecture designed for systems that need both real-time indexing and offline-resilient querying. Scala powers the backend service tier, handling data ingestion pipelines and business logic with strong typing and functional patterns that keep concurrent indexing operations safe and maintainable. Elasticsearch serves as the primary distributed search layer, providing full-text capabilities and faceted queries across large datasets with horizontal scaling built in. Xapian operates as a lightweight secondary index embedded in edge nodes or client environments, enabling degraded-mode search when the central Elasticsearch cluster is unreachable—it's particularly useful for mobile-first applications or field operations where connectivity is intermittent. Alpine.js handles the interactive frontend layer without requiring a heavy framework, binding search state and filter interactions directly to the markup while keeping the JavaScript footprint minimal. Tailwind accelerates UI iteration by providing utility classes that style results, facets, and search controls consistently across the application without writing custom CSS.

This stack excels at building resilient search applications where users need instant results whether they're online or offline, and where your backend can afford the operational complexity of maintaining dual indices in exchange for superior user experience.