Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rubriclab/shot

Grab a screenshot of any site
https://github.com/rubriclab/shot

bun nextjs puppeteer

Last synced: about 2 months ago
JSON representation

Grab a screenshot of any site

Awesome Lists containing this project

README

        

# Shot

Grab a screenshot of any site.

image

Try it [here](https://shot.rubric.sh).

Try the API like this: [shot.api.rubric.sh?url=x.com](https://shot.api.rubric.sh?url=x.com). It returns a stream of an image.

Inspired by 2 weeks of pain from [this project](https://copyai.rubric.sh/).

Made for future usage with gpt-4-vision.

## Roadmap

- [x] Run any script in the browser

## Dev

1. Run `bun i` in the [api](/api) and [web](/web) folders.
2. Populate env vars in both folders: `cp .env.example .env`.
3. Populate `BROWSER_URL` with a headless browser websocket URL eg. [browserless](https://www.browserless.io).
4. Populate `BLOB_READ_WRITE_TOKEN` with a bucket URL eg. [Vercel Blob](https://vercel.com/docs/storage/vercel-blob).
5. Run `bun dev` in both folders.