{"id":20858731,"url":"https://github.com/thesephist/looking-glass","last_synced_at":"2025-07-30T16:36:42.098Z","repository":{"id":50040859,"uuid":"163547829","full_name":"thesephist/looking-glass","owner":"thesephist","description":"A simple web screenshot API using Puppeteer","archived":false,"fork":false,"pushed_at":"2024-06-18T15:17:13.000Z","size":93,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-12T22:51:58.412Z","etag":null,"topics":["api","automation","puppeteer","screenshot"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesephist.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}},"created_at":"2018-12-29T23:22:29.000Z","updated_at":"2025-02-24T10:25:13.000Z","dependencies_parsed_at":"2025-05-12T22:47:50.910Z","dependency_job_id":"62ecc3c4-c596-4ef8-ba50-ba93bbfab206","html_url":"https://github.com/thesephist/looking-glass","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thesephist/looking-glass","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Flooking-glass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Flooking-glass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Flooking-glass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Flooking-glass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesephist","download_url":"https://codeload.github.com/thesephist/looking-glass/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Flooking-glass/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267899872,"owners_count":24163001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["api","automation","puppeteer","screenshot"],"created_at":"2024-11-18T04:47:09.319Z","updated_at":"2025-07-30T16:36:42.041Z","avatar_url":"https://github.com/thesephist.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Looking Glass\n\nLooking Glass is a simple web screenshot API using Puppeteer.\n\nWhen I say simple, I really mean _simple_. It was designed to serve exactly one API endpoint with one use case, which is to generate thumbnail previews for my [Hacker News Reader](https://torushn.surge.sh).\n\n## Installation and usage\n\nTo install ...\n\n1. `git clone` the repository\n2. Install Node's dependencies with `yarn install` (or `npm install`).\n3. If you don't already have Chrome installed on your system and you're on a Linux system (like a server), you might also need to install required OS-level libraries. Because I run `looking-glass` almost exclusively on Debian-based Linux systems, I've checked the `install_os_deps.sh` script that you can run on a Debian system to bootstrap all required libraries.\n4. You'll need a configuration file, `config.js`, at the root of the project. There's a mock config file checked into the repostory as `mock.config.js` -- feel free to use that as the base.\n    - You'll need to set an API token or two that you can use to access the service, since Puppeteer isn't exactly the most lightweight service. I could use more sophisticated systems for managing access tokens, but since it's just me using it, I'm just embedding tokens in the `AUTHORIZED_TOKENS` field of my config file. If you feel adventurous, feel free to try to integrate a better system in. Otherwise, just put a string token in that array in the config file.\n5. Once both sets of dependencies are installed, check that Puppeteer / Chromium launches with `yarn start` -- it should eventually log `Looking Glass running on \u003cport\u003e`.\n6. Navigate to `\u003cyour server\u003e:\u003cport\u003e/screenshot?url=https://google.com/\u0026token=\u003cyour api token\u003e`. If you see Google's home page, Looking Glass is working!\n\nIf you run into any bugs, please feel free to open an issue. But because it's such a narrow use case, if you have feature requests, I might just direct you to more full-featured screenshot services.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephist%2Flooking-glass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesephist%2Flooking-glass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephist%2Flooking-glass/lists"}