Playhard
Playhard is a minimal playright style library written in Rust. It is currently on active development.
Crates
| Crate | Purpose |
|---|---|
playhard |
Umbrella crate for applications that want one dependency. |
playhard-automation |
Page, locator, storage, network, route, and screenshot automation. |
playhard-cdp |
Typed Chrome DevTools Protocol request and response helpers. |
playhard-launcher |
Chrome discovery, profile setup, process launch, and transport selection. |
playhard-transport |
WebSocket and pipe transports with request/response correlation. |
test-mock-portal |
Local workspace scenario runner; not published as a library crate. |
Requirements
- Rust 1.81 or newer.
- A Chrome or Chromium installation available to
chrome-locations, unless you connect to an existing DevTools endpoint yourself.
Quick Start
Add the umbrella crate from this repository:
[]
= { = "https://github.com/shirshak55/playhard" }
= { = "1", = ["macros", "rt-multi-thread"] }
Launch Chrome, open a page, and read the title:
use ;
async
Development