{"id":16803239,"url":"https://github.com/beatfactor/fontparser","last_synced_at":"2026-04-11T05:36:12.716Z","repository":{"id":40926354,"uuid":"193592075","full_name":"beatfactor/fontparser","owner":"beatfactor","description":"Display all the font families in use by a specified website","archived":false,"fork":false,"pushed_at":"2022-12-30T18:50:02.000Z","size":351,"stargazers_count":0,"open_issues_count":13,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-25T08:35:09.204Z","etag":null,"topics":["docker","docker-compose","expressjs","nodejs","webdriver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beatfactor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-24T22:56:05.000Z","updated_at":"2023-02-06T10:41:14.000Z","dependencies_parsed_at":"2023-01-31T13:31:02.093Z","dependency_job_id":null,"html_url":"https://github.com/beatfactor/fontparser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/beatfactor/fontparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatfactor%2Ffontparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatfactor%2Ffontparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatfactor%2Ffontparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatfactor%2Ffontparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beatfactor","download_url":"https://codeload.github.com/beatfactor/fontparser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beatfactor%2Ffontparser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272280676,"owners_count":24906201,"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-08-27T02:00:09.397Z","response_time":76,"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":["docker","docker-compose","expressjs","nodejs","webdriver"],"created_at":"2024-10-13T09:42:07.586Z","updated_at":"2025-12-30T21:36:45.839Z","avatar_url":"https://github.com/beatfactor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FontParser\nA Node.js and Webdriver powered API service which displays the font families in use on a specified website. Uses Docker with docker-compose.\n\n## Introduction\nThe API service is built with `express` and uses Mozilla's [Webdriver](https://www.w3.org/TR/webdriver1/) compatible service [Geckodriver](https://github.com/mozilla/geckodriver).\n\nWebdriver is a W3C specification for defining a common interface that a browser should expose for automation purposes.\n\nThe Geckodriver service runs inside a docker container, together with the Firefox browser.\n\n### Operation\nThe API service runs side-by-side with the Geckodriver service. The API service sends commands to a Firefox browser via HTTP, through the Geckodriver service.\n\n### Loading a URL\nThe API service first loads the desired URL in Firefox and then starts traversing the DOM nodes. \n\nTraversing is possible by either performing a __depth-first__ search (DFS) or a __breadth-first__ search (BFS).\nThis is specified using the `mode` query string parameter.\n\n### API\n\n#### __`GET /parseFonts`__\n__Params:__\n- `url` - the url to load\n- `mode` - can be either `dfs` (default) or `bfs`\n\n## Building \nThe FontParser service requires [Docker](https://www.docker.com/) with __docker-compose__ to be installed. \n\nClone the project, build and run with docker-compose.\n\n```sh\n$ docker-compose build\n$ docker-compose up\n```\n\nThe service is running at `http://localhost:3100/parseFonts`.\n\n## Example\n```sh\n$ curl http://localhost:3100/parseFonts?url=http://test_server:9100\n```\n\n## Running the tests\nThe tests contain a test service. There is also a test compose file which runs the test server together with the other services.\n\nFirst build the test project:\n```sh\n$ cd apiservice\n$ npm install\n$ npm run build\n```\n\nThen run the tests:\n```sh\n$ npm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatfactor%2Ffontparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeatfactor%2Ffontparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeatfactor%2Ffontparser/lists"}