Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rubriclab/shot
- Owner: RubricLab
- Created: 2023-11-11T00:59:02.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-30T04:25:33.000Z (about 1 year ago)
- Last Synced: 2024-05-09T15:55:38.495Z (8 months ago)
- Topics: bun, nextjs, puppeteer
- Language: TypeScript
- Homepage: https://shot.rubric.sh
- Size: 182 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shot
Grab a screenshot of any site.
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.