patent

From public sources

A prior-art search for your code ideas — has this dev tool already been shipped?

AI toolCategory: AI ToolsOpen sourcedata checked Oct 16, 2026

Overview

  • ai
  • cli
  • command-line-tool
  • developer-tools
  • embeddings
  • llm
  • npm
  • ollama
  • package-search
  • prior-art
  • pypi
  • ratatui

Installation

Commands are shown, never run by the marketplace. Check them against the official documentation.

Compatibility

Unknown means no evidence was found — not that the product is incompatible.
PlatformStatusArchitectureEvidenceConfidence
WindowsCompatiblex86_64official build in release v0.14.1: patent-x86_64-pc-windows-msvc.zip0.70
macOSCompatiblearm64official build in release v0.14.1: patent-aarch64-apple-darwin.tar.xz0.70
LinuxCompatiblearm64official build in release v0.14.1: patent-aarch64-unknown-linux-gnu.tar.xz0.70
Compatiblex86_64official build in release v0.14.1: patent-x86_64-unknown-linux-gnu.tar.xz0.70
Web browserUnknown———
Server / self-hostedUnknown———
Container (OCI)Unknown———

Releases

checked Oct 30, 2026
v0.14.1LatestOct 10, 2026Official source ↗

Files in 0.14.1

The marketplace does not host these files: downloads go to the official source. Files have not been scanned by us.
FilePlatformSizeSHA-256Download from the official source
patent-aarch64-apple-darwin.tar.xzmacos · arm64 · tarball8.5 MB6703fc8a0830…Official source ↗
patent-aarch64-unknown-linux-gnu.tar.xzlinux · arm64 · tarball10.5 MB0901410df7d4…Official source ↗
patent-x86_64-pc-windows-msvc.zipwindows · x86_64 · zip12.7 MB0093c71ed9b9…Official source ↗
patent-x86_64-unknown-linux-gnu.tar.xzlinux · x86_64 · tarball10.3 MB8157a81f8390…Official source ↗
patent-aarch64-apple-darwin.tar.xz.sha256checksums102 B423c04a64ae8…Official source ↗
patent-aarch64-unknown-linux-gnu.tar.xz.sha256checksums107 B49cc567be88f…Official source ↗
patent-x86_64-pc-windows-msvc.zip.sha256checksums101 B06efd685be54…Official source ↗
patent-x86_64-unknown-linux-gnu.tar.xz.sha256checksums106 Beee7a129221d…Official source ↗
source.tar.gz.sha256checksums81 B2695baf5b370…Official source ↗
dist-manifest.jsonother24.2 KB6090224f99bc…Official source ↗
patent-installer.shother51.6 KB8735d52f38c8…Official source ↗
patent.rbother2 KB8f7d0de7aaed…Official source ↗
sha256.sumother493 B11b5d91a4704…Official source ↗
source.tar.gzsource code1.7 MB17ea404111ff…Official source ↗

Release history

Quality profile

algorithm quality-v1.0 · assessed Oct 16, 2026
Quality Score93
Risk Score0
Confidence 1.00
Quality Score and Risk Score are different measures. A high score does not guarantee safety.

Score components

Maintenance · 2020
last activity 0 days ago
Documentation · 1515
README 8557 chars, description present
Ready to use · 1515
install instructions: yes; releases: yes
Metadata · 1010
4/4 of description, homepage, license, topics
Releases · 1010
10 release(s), latest 5 days ago
Category confidence · 107
classifier confidence 0.65
Adoption · 107
539 stars (log-dampened, 10k = max)
License clarity · 55
SPDX Apache-2.0
Community · 55
issues enabled, 22 forks

License

Apache-2.0
Known licensefrom the repository host

This is the catalog policy status, not legal advice.

Sources

github.com/r14dd/patentPrimary★ 539 starslast activity Oct 15, 2026Primary repository · Confidence 1.00

Reviews

Sign in to write a review

No reviews yet.

Alternatives

README

From r14dd/patent · license Apache-2.0 · fetched Oct 30, 2026

patent

patent takes a plain-English dev-tool idea and searches 19 sources — package registries (crates.io, npm, PyPI, Homebrew, Packagist, Hex, and more) plus GitHub and Hacker News. Results are ranked by semantic similarity and summarised as Open, Crowded, or Saturated.

Like a patent search, but for code. It finds prior art, yet, never certifies absence.

Why patent?

Before you build a dev tool, patent checks whether it already exists. One query fans out across 19 sources at once — package registries plus GitHub and Hacker News — instead of you searching each by hand. Matches are ranked locally by semantic similarity (not keyword match), so close-but-differently-worded prior art still surfaces, and the verdict is scoped to what was actually found — an honest "keep looking" rather than a hallucinated "this is novel."

How it works

  1. Source selection — patent picks the registries relevant to your idea; GitHub and Hacker News are always searched.
  2. Semantic ranking — every match is embedded locally with fastembed and ranked by cosine similarity to your idea.
  3. Maintenance signal — where a source publishes one, a match shows when it was last updated, and anything untouched for 2+ years is flagged ⚑. Stale matches are flagged, never demoted: an abandoned tool is still proof the idea has been built. A match with no date is one no source published a date for — not a stale one. (If two sources return the same URL, the surviving row borrows whichever date was found.)
  4. Verdict — an LLM summarises the landscape into one of three levels, floored against the similarity data so it can never under-rate a populated space:
    • 🟢 Open — nothing close found in the sources checked.
    • 🟡 Crowded — a few adjacent tools exist.
    • 🔴 Saturated — the space is densely populated.

What a clean result means

patent can prove something exists; it can never prove something doesn't — it only searched some sources. Every verdict is scoped to "found in the sources checked," the list of sources checked is always shown, and any selected source that failed is surfaced as "not reached." A clean Open result means keep looking before you commit, not a green light.

Install

macOS / Linux — one command, no Rust needed:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/r14dd/patent/releases/latest/download/patent-installer.sh | sh

Homebrew:

brew install r14dd/patent/patent

Windows — grab patent-x86_64-pc-windows-msvc.zip from the releases page and unzip it.

From source (requires Rust):

cargo install patent

Linux build deps — needed before cargo install:

  • Fedora / RHEL: sudo dnf install openssl-devel gcc-c++
  • Ubuntu / Debian: sudo apt install libssl-dev g++

glibc 2.38+ — both the prebuilt binaries and a from-source cargo install require glibc 2.38 or newer (Ubuntu 22.10+, Debian 13+, Fedora 38+). The bundled ONNX Runtime that powers local semantic search depends on it. On older distributions such as Ubuntu 22.04 (glibc 2.35), build inside a newer toolchain — e.g. a debian:13 / ubuntu:24.04 container — rather than on the host (#37).

Ollama (optional) powers the LLM verdict — install from ollama.com, then ollama pull qwen3.5. Use --fast to skip it entirely.

GitHub token (optional) — set GITHUB_TOKEN to raise the search rate limit from 10 to 30 requests/minute.

Usage

patent "interactive cli to kill whatever's on a port"
# interactive mode — launches a search prompt inside the TUI
patent

# no model warmup, no wait
patent "kubernetes log viewer" --fast

# pipe to jq
patent "react component for infinite scroll" --json | jq .

# use a cloud LLM instead of local Ollama
patent "kubernetes log viewer" --api-base https://api.openai.com/v1 --model gpt-4o-mini

Options

FlagDescriptionDefault
--fastno LLM, no wait — verdict derived from similarity scores—
--jsonstdout JSON instead of the TUI—
--model <MODEL>model name for the verdict; or PATENT_MODELqwen3.5
--api-base <URL>OpenAI-compatible base URL (must end in /v1); or PATENT_API_BASE—
--api-key <KEY>API key for --api-base; or PATENT_API_KEY / OPENAI_API_KEY—
--limit <N>max matches to keep after ranking50
--completions <SHELL>print shell completions and exit—

Settings can also be stored in a config.toml in your platform's config directory:

  • Linux: ~/.config/patent/config.toml
  • macOS: ~/Library/Application Support/patent/config.toml
  • Windows: %APPDATA%\patent\config.toml
model    = "gpt-4o-mini"
api_base = "https://api.openai.com/v1"
api_key  = "sk-..."

Precedence: CLI flag > environment variable > config file > built-in default.

Privacy: with --api-base, your search query is sent to that remote server to generate the verdict. The default local Ollama backend — and --fast, which skips the LLM entirely — keep everything on your machine.

Exit codes

patent exits with a status derived from the verdict, so you can gate scripts and CI on it:

CodeMeaning
0Open
1Crowded
2Saturated

(Usage errors and unreachable backends exit non-zero as well.)

Use as a library

patent is also a published library crate — the engine is reusable. See docs.rs/patent: sources::search_all fans out to the registries, rank::rank_async ranks matches by semantic similarity, and verdict::assess produces the integrity-scoped verdict over any LLM backend.

TUI keybindings

KeyAction
↑ / kScroll up
↓ / jScroll down
g / HomeJump to top
G / EndJump to bottom
/Filter matches
sCycle sort (similarity / popularity / name)
mShow more / show less
EnterShow match details (description, popularity, last updated, URL)
oOpen selected URL in browser
yCopy selected URL to clipboard
nNew search (interactive mode)
?Help overlay
qQuit

Markers

MarkerMeaning
⚑No update in 2+ years — only ever shown where a date is actually known, so its absence is not a claim of freshness

Mouse works too — scroll with the wheel, click to select.

Shell completions

patent --completions bash >> ~/.bashrc    # Bash
patent --completions zsh  >> ~/.zshrc     # Zsh
patent --completions fish > ~/.config/fish/completions/patent.fish

Contributing

Contributions are welcome! See CONTRIBUTING.md for setup and workflow. The good first issue and help wanted labels are a good starting point.

Development

cargo test
cargo fmt --all --check
cargo clippy --all-targets -- -D warnings

The demo GIF embedded above is generated with vhs: vhs showcase.tape.

License

Licensed under either of MIT or Apache-2.0 at your option.

Open the repository ↗