OFL: a deterministic, low-latency search standard for databases.
Open Fast Lookup (OFL) is a deterministic, low-latency search standard and reference implementation, built by XPDevs.
OFL provides an open standard for deterministic, low-latency search over local files and structured records without relying on AI or remote services. Results are explainable, indexes are committed crash-safely with SHA-256 checksums, and hot queries are designed to answer in under 2 ms.
Search output is structured and repeatable: the same query over the same index always produces the same ranked results, with no opaque model in the loop.
Built for sub-2ms hot queries by keeping index segments hot and answering from prebuilt structures rather than scanning data at query time.
No remote dependencies. Your data, your index and your queries stay on your machine, so OFL works fully offline.
Ranking is arithmetic, not inference. Every score can be traced back to the terms and index structures that produced it.
A single SearchOutput contract is shared by the library, the CLI and the daemon, so results are portable between all three modes.
Use OFL as an ES module, drive it from the ofl command line tool, or keep indexes hot in memory behind a local Unix socket daemon.
Index files by their metadata (names, paths, sizes, types and timestamps), with configurable symlink, hidden-file and depth limits.
Index JSON and NDJSON records directly, so databases, exports and log-style data can be searched without a custom loader.
Index writes are committed with SHA-256 checksums and verified with ofl verify, so a partially written index is detected rather than silently queried.
Exact, prefix, range, bitmap and trigram index types are all supported, and the query planner combines them for each request.
git clone https://github.com/XPDevs/OFL.git
cd OFL
npm install
OFL is an ES module with zero runtime dependencies and requires Node >= 18. The package exposes ofl as a bin entry point and exports the core at src/core/index.js, plus ./cli and ./daemon.
# Create a config file (ofl.json)
# Then build an index
ofl build --config ./ofl.json
# Search
ofl search --text "report" --json
# Run as daemon
ofl daemon start
Create an ofl.json in your project root:
{
"index_dir": ".ofl/index",
"sources": [
{
"id": "my-files",
"name": "My Files",
"type": "filesystem-metadata",
"root": "/path/to/search"
}
],
"security": {
"follow_symlinks": false,
"include_hidden": false,
"max_depth": 50,
"default_limit": 50
}
}
| Command | Description |
|---|---|
ofl search | Search indexed data |
ofl build | Build or rebuild indexes |
ofl verify | Verify index integrity |
ofl info | Show source and index information |
ofl daemon | Manage the local daemon |
ofl bench | Run benchmarks |
ofl conformance | Run conformance tests |
import { createSearchOutput, normalizeQueryText, tokenizeText } from 'ofl';
The daemon keeps indexes hot in memory and answers queries over a local Unix socket:
ofl daemon start
ofl daemon query --text "search term"
ofl daemon status
ofl daemon stop
| Document | Description |
|---|---|
| Specification | The OFL standard itself |
| Architecture | How the components fit together |
| Query Model | Query grammar, terms and planning |
| Output Model | The SearchOutput contract |
| Benchmarks | Latency and throughput results |
| Security | Path handling and query guard rules |
| Design Decisions | Why the standard works the way it does |
| Contributing | How to get involved |
npm test
npm run conformance
npm run bench
The test suite is split into unit, integration and conformance suites, covering the CLI, the daemon, every index type, connectors, checksum verification and the security guard.
| Repository | github.com/XPDevs/OFL |
|---|---|
| Description | A new fast search standard for databases |
| Full name | Open Fast Lookup (OFL) |
| Version | 0.1.0, initial release |
| Language | JavaScript (ESM), Node >= 18, zero runtime dependencies |
| License | Apache-2.0 |
| Related project | Gateway, our end-user search engine, built alongside this standard |
OFL is developed by XPDevs. It provides an open standard for deterministic, low-latency search over local files and structured records without relying on AI or remote services.
For more information about OFL, or to discuss how our technology can support your needs, please contact us at xpdevs.github.io.com@gmail.com.