Skip to main content
Josty Logo

Keyless search and bounded text extraction for agents and scripts.

CI Python 3.10+ License: MIT Code Style: Ruff


What It Is

Josty queries public search backends in parallel through ddgs, fuses rankings with Cormack-Clarke Reciprocal Rank Fusion (RRF), canonicalizes URLs, and optionally extracts bounded page text.

It is designed for AI agents and developer scripts that need a self-contained search step without API keys, background daemons, or browser engines.

┌──────────────────────────────┐
│  Local Agent / Script Step   │
└──────────────┬───────────────┘
               │ single search execution
               ▼
┌──────────────────────────────┐
│            Josty             │
│  - Bounded parallel fanout   │
│  - Domain-weighted RRF (k=60)│
│  - In-process breaker & cache│
│  - Trafilatura text extract  │
└──────────────┬───────────────┘
               │
               ▼
┌──────────────────────────────┐
│   Public Backends via ddgs   │
│  (Brave, DuckDuckGo, Yahoo,  │
│   Mojeek, Startpage, Google) │
└──────────────────────────────┘

Installation

# Run instantly with uvx (no install step needed):
uvx josty "Python 3.13 features" --limit 5

# Or install globally:
uv tool install josty
# or: pipx install josty

Quickstart

# 1. Basic search (returns top 5 results):
josty "Python 3.13 release highlights" --limit 5

# 2. Boost technical documentation domains (dev profile):
josty "FastAPI dependency injection" --profile dev --limit 5

# 3. Restrict search to specific domains (up to 5):
josty "httpx connection pool timeout" --site github.com --site python-httpx.org

# 4. Extract bounded Markdown page text from top results:
josty "RRF rank fusion algorithm" --limit 3 --fetch

# 5. Unix pipeline (stream search results straight into fetch):
josty search "FastAPI dependency injection" --limit 3 | josty fetch --stdin

Output & Status Contract

Normal searches emit one JSON document on stdout. Diagnostics and warnings route strictly to stderr.

{
  "schema_version": "1.0",
  "query": "FastAPI dependency injection",
  "status": "complete",
  "count": 3,
  "partial": false,
  "cached": false,
  "provider_count": 6,
  "nonempty_provider_count": 2,
  "coverage": 0.333,
  "providers": [...],
  "results": [
    {
      "title": "Dependencies - FastAPI",
      "url": "https://fastapi.tiangolo.com/tutorial/dependencies/",
      "snippet": "FastAPI has a very powerful but intuitive Dependency Injection system...",
      "sources": ["duckduckgo", "brave"],
      "score": 0.039024,
      "content": null
    }
  ]
}

Status Values & Exit Codes

Status Meaning Exit Code
complete Results found; no backend failed. 0
empty No results found; no backend failed (count=0). 0
degraded Results found, but at least one backend failed; or page extraction failed. 0
failed Every attempted backend failed; zero results returned. 1
Validation Error Invalid CLI options or empty query. 2

Limitations & Non-Goals

  • No Privacy or Anonymity Guarantees: Josty does not proxy or anonymize traffic. Queries are sent directly to upstream search engines.
  • Best-Effort Availability: Upstream public engines may throttle (HTTP 429), present anti-bot challenges, or change response formats. Josty isolates failures via circuit breakers and surfaces errors honestly rather than hiding them behind infinite retries.
  • Not a Search Engine: Josty does not maintain an index or crawl the web. It is a lightweight client adapter over ddgs.
  • No Hidden Query Rewriting: If a search returns empty, Josty reports status: "empty". The caller decides whether to broaden terms or adjust site filters.

Documentation

  • Agent Tool Specification: .agents/skills/josty/SKILL.md (full flag specifications, schemas, provider telemetry, and agent research rules).
  • Coding Agent Guide: AGENTS.md (invariants, test commands, and module layout for agents working on this codebase).
  • Security Policy: SECURITY.md.

Release files for josty 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for josty 0.7.1
File Size Uploaded
josty-0.7.1.tar.gz 112.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for josty 0.7.1
File Interpreter ABI Platform
josty-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 155.3 kB

Release files / josty-0.7.1.tar.gz

Download URL josty-0.7.1.tar.gz
Size 112.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ee27504565c5631963456c9dbba27a691f2f87f2d97ea989251e50f9c417e050
BLAKE2b-256 checksum
How to use checksums
41f1d33299797f35d3e3af81cba2cb72a5015e0ce4abf3f0a618a9af22674dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / josty-0.7.1-py3-none-any.whl

Download URL josty-0.7.1-py3-none-any.whl
Size 43.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60a058560e4c408d630c4965c718710005be9b6c22b09cb923b691763efd2639
BLAKE2b-256 checksum
How to use checksums
0a57fd27b4d722494e4597cec3e395a860036b95c378f5219c16cc775a76184a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page