# headzoo/surf

Stateful programmatic web browsing in Go.

Repository: https://github.com/headzoo/surf
Canonical: https://ross.abutalabs.com/products/headzoo-surf
Language: Go
License: MIT
License Family: permissive
Last push: 2024-01-24T19:54:47+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4391, "days_push": 952, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1544, forks 160 (observed 2026-08-28T04:05:01.424607+00:00)

## What it is
Surf is a Go library that implements a stateful virtual web browser controlled programmatically. It supports cookies, history, bookmarks, user agent spoofing, form submission, and DOM traversal via jQuery-style CSS selectors.

## Use cases
- scrape websites with session and cookie state in Go
- programmatically log into sites and submit forms
- download pages and extract elements with CSS selectors
- simulate browser navigation with history and bookmarks
- spoof user agents when fetching web content

## When to choose
- you need stateful, browser-like browsing (cookies, forms, history) rather than plain HTTP requests
- you want jQuery-style CSS selector scraping in Go
- you're building a crawler or automation script in Go

## When to avoid
- you need JavaScript rendering or a real browser engine
- you only need simple HTTP requests without state
- you need an actively developed project with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, web-scraping, parser
- domain: web-development, crawlers, developer-tools
- platform: go, cross-platform
- tags: virtual-browser, goquery, form-submission, cookie-management, stateful-browsing

## Member repositories
- headzoo/surf (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:01.424607+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:30:38.048460+00:00, confidence not recorded.
  - readme: https://github.com/headzoo/surf (fetched 2026-08-28T04:05:01.424607+00:00, sha a1c09117770e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
