lino-levan / astral

A high-level puppeteer/playwright-like library for Deno

Home Page:https://astral.deno.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astral

Astral is a high-level puppeteer/playwright-like library that allows for control over a web browser (primarily for automation and testing). It is written from scratch with Deno in mind.

Documentation

All of our docs are written in markdown and rendered using Pyro. They can be viewed at astral.deno.dev.

Basic Usage

// Import Astral
import { launch } from "jsr:@astral/astral";

// Launch the browser
const browser = await launch();

// Open a new page
const page = await browser.newPage("https://deno.land");

// Take a screenshot of the page and save that to disk
const screenshot = await page.screenshot();
Deno.writeFileSync("screenshot.png", screenshot);

// Close the browser
await browser.close();

About

A high-level puppeteer/playwright-like library for Deno

https://astral.deno.dev

License:MIT License


Languages

Language:TypeScript 100.0%