Contrato Público

Fast search over Portugal's public contracts, scraped from the official portal

Image 1 of 1: Contract search with filters and results showing amounts, contracting bodies and contractors

A search service for public contracts signed in Portugal: a Rust scraper keeps collecting contracts from the official Portal BASE into Meilisearch for search and Postgres for details, behind an Axum API and a SvelteKit front end with plain explanations of technical terms.

Trade-offs

  • A Meilisearch index answers in milliseconds where the official portal often takes over 5 seconds and some queries over 50, at the cost of a scraper that must keep pace with every new publication.
  • Contract data is stored twice, in Meilisearch for search and in Postgres for detail pages, so each store does what it is best at but the scraper writes to both.

Q&A1

The backend exposes Prometheus metrics on its own port, and a k6 script in the repo benchmarks the API.

Reviews

Loading reviews

    More in Axum

    See all 8 →
    • OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS
    • santiSelf-hosted agile tracker with boards, sprints and epics, from web, CLI or agent
    • VoxperySelf-hostable chat with voice and screen sharing, as an open Discord alternative
    • clipboardwireClipboard sync for text, images and files over a LAN, in one small Rust binary
    • B{rew}logSelf-hosted coffee log for roasters, roasts, brews, cafes and gear
    • rpoddergpodder-compatible podcast sync server in Rust with a built-in web player

    More in Full-text search

    See all 13 →
    • dowseWindows search over file names, contents and text in screenshots
    • MongrelDBEmbedded Rust database with vector, sparse and text indexes
    • TachyonTypo-tolerant full-text search in a single Rust binary
    • FoJinCited answers from the Buddhist canon across 600+ sources
    • pg_kazsearchKazakh full-text search for PostgreSQL and Elasticsearch
    • sortir.inMap of local events gathered from many sources into one view

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • jc-rsjc rewritten as one static binary that turns command output into JSON