{"id":50787056,"url":"https://github.com/teppyboy/sparkle","last_synced_at":"2026-06-12T08:33:07.094Z","repository":{"id":333742655,"uuid":"1138455278","full_name":"teppyboy/sparkle","owner":"teppyboy","description":"A reimplementation of Playwright written in Rust, powered by thirtyfour.","archived":false,"fork":false,"pushed_at":"2026-01-20T21:50:58.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-21T04:44:06.117Z","etag":null,"topics":["automation","playwright","rust","selenium","webdriver"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/teppyboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-20T17:37:59.000Z","updated_at":"2026-01-20T21:51:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/teppyboy/sparkle","commit_stats":null,"previous_names":["teppyboy/sparkle"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/teppyboy/sparkle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsparkle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsparkle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsparkle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsparkle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/teppyboy","download_url":"https://codeload.github.com/teppyboy/sparkle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/teppyboy%2Fsparkle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34236551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","playwright","rust","selenium","webdriver"],"created_at":"2026-06-12T08:33:05.890Z","updated_at":"2026-06-12T08:33:07.080Z","avatar_url":"https://github.com/teppyboy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sparkle\n\n\u003e [!WARNING]\n\u003e This project is mostly \"vibe-coded\", **many** features are not properly implemented (by using hacky workaround, etc.), unknown bugs will appear at any time. While I try to fix it (either by vibing or actually coding), not all bugs are guaranteed to be fixed.\n\n\u003e A reimplementation of Playwright written in Rust, powered by `thirtyfour`.\n\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)\n\nSparkle brings Playwright's API to Rust with async support.\n\n## Features\n\n- **Playwright-like API** - Easy migration from Python to Rust\n- **CLI Tool** - Automatic browser/driver download and management\n- **Playwright Compatible** - Shares browser cache with Playwright installations\n- **Zero Config** - ChromeDriver auto-launches and manages itself\n- **Fast \u0026 Ergonomic** - Idiomatic Rust with minimal boilerplate\n\n### Implemented features\n\nThese are the features that I've tested to see whether it works or not.\n\n| Feature | Working |\n|---------|---------|\n|Locator|    ✅    |\n|Locator (iframe)|   ❌      |\n|         |         |\n\n## Documentation\n\nDocumentation is available at https://sparkle.tretrauit.me, ~~and maybe https://docs.rs if I publish this crate later.~~\n\n## Installation\n\n### 1. Install Sparkle CLI\n\n```bash\ncargo install --git https://github.com/teppyboy/sparkle\n```\n\n### 2. Download Browser\n\n```bash\n# Installs Chrome + ChromeDriver to Playwright's cache directory\nsparkle install chrome\n```\n\n### 3. Write Your First Script\n\n```rust\nuse sparkle::prelude::*;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    let playwright = Playwright::new().await?;\n    let browser = playwright.chromium().launch(Default::default()).await?;\n    let page = browser.new_page().await?;\n    \n    page.goto(\"https://example.com\", Default::default()).await?;\n    page.locator(\"button#submit\").click(Default::default()).await?;\n    \n    let text = page.locator(\"h1\").text_content().await?;\n    println!(\"Heading: {}\", text);\n    \n    browser.close().await?;\n    Ok(())\n}\n```\n\n## CLI\n\nSee [CLI.md](./CLI.md) for more information.\n\n## Advanced Configuration\n\n### Custom ChromeDriver\n\n```bash\n# Use custom ChromeDriver executable\nexport CHROMEDRIVER_PATH=/path/to/chromedriver\n\n# Connect to existing ChromeDriver server\nexport CHROMEDRIVER_URL=http://localhost:9515\n\n# Use custom Chrome binary\nexport CHROME_PATH=/path/to/chrome\n```\n\n### Logging\n\nSparkle uses [tracing](https://github.com/tokio-rs/tracing) for structured logging. Enable logs by setting the `SPARKLE_LOG_LEVEL` environment variable:\n\n```bash\n# Set log level (trace, debug, info, warn, error)\nexport SPARKLE_LOG_LEVEL=info\n```\n\n**In your code:**\n\n```rust\nuse sparkle::prelude::*;\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c()\u003e {\n    // Initialize logging from SPARKLE_LOG_LEVEL environment variable\n    init_logging();\n    \n    // Your automation code here...\n    Ok(())\n}\n```\n\n## Examples\n\nSee [`examples/`](examples/) for how to use the library, to run an example:\n\n```bash\ncargo run --example basic_navigation\n```\n\n\n## Architecture\n\nSparkle is built on three main layers:\n\n- **`async_api/`** - High-level API (Browser, Page, Locator)\n- **`core/`** - Types, errors, options builders  \n- **`driver/`** - WebDriver adapter (wraps thirtyfour)\n\n## Developing\n\nThis project uses OpenSkills, so before working on the project, install the needed skills:\n\n```bash\nbunx --bun openskills install ZhangHanDong/rust-skills\nbunx --bun openskills install lackeyjb/playwright-skill \n```\n\n## Project Status\n\nThis project is in very early stage, do NOT expect anything to work yet.\n\n## License\n\n[Apache License 2.0](./LICENSE)\n\n## Acknowledgments\n\n- [Playwright](https://playwright.dev/) by Microsoft\n- [thirtyfour](https://github.com/stevepryde/thirtyfour) - Rust WebDriver client  \n- [tokio](https://tokio.rs/) - Async runtime\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteppyboy%2Fsparkle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteppyboy%2Fsparkle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteppyboy%2Fsparkle/lists"}