{"id":30754496,"url":"https://github.com/knutsynstad/faux-code","last_synced_at":"2025-09-04T09:10:47.998Z","repository":{"id":40728426,"uuid":"238382657","full_name":"knutsynstad/faux-code","owner":"knutsynstad","description":"Convert real code from a Github Gist into an SVG image of faux code","archived":false,"fork":false,"pushed_at":"2023-01-05T07:23:29.000Z","size":7738,"stargazers_count":88,"open_issues_count":13,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2023-03-01T08:20:50.655Z","etag":null,"topics":["computational","design","svg"],"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/knutsynstad.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":"2020-02-05T06:24:19.000Z","updated_at":"2023-01-16T23:18:01.000Z","dependencies_parsed_at":"2023-02-03T18:00:26.262Z","dependency_job_id":null,"html_url":"https://github.com/knutsynstad/faux-code","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/knutsynstad/faux-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutsynstad%2Ffaux-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutsynstad%2Ffaux-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutsynstad%2Ffaux-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutsynstad%2Ffaux-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knutsynstad","download_url":"https://codeload.github.com/knutsynstad/faux-code/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knutsynstad%2Ffaux-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273581339,"owners_count":25131393,"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-09-04T02:00:08.968Z","response_time":61,"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":["computational","design","svg"],"created_at":"2025-09-04T09:10:09.166Z","updated_at":"2025-09-04T09:10:47.985Z","avatar_url":"https://github.com/knutsynstad.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# faux-code\nConvert real code from a Github Gist into an SVG image of faux code.\n\n![Example output](https://repository-images.githubusercontent.com/238382657/6409ab00-5037-11ea-9ebe-1e30ed0f7438)\n\n## Index.js\nInput:\n```js\n// GitHub Gist URL\nconst gist = 'https://gist.github.com/knutsynstad/265226120c71426420c78c750a4eb727';\n```\n\nOutput:\n```js\n// SVG file\nconst filename = './fauxcode.svg';\n```\n\nOptions:\n```js\nconst options = {\n  theme: 'light', // 'light' or 'dark' mode\n  fontSize: 5, // Line thickness and width\n  leading: 10, // Space between lines\n  lineCap: 'round', // Line ends 'square' or 'round'\n  margin: 50, // Space between canvas edges and code block\n  lineNumbers: true, // Whether or not to include line numbers\n  lineNumberOffset: -3, // Line number offset from margin\n};\n```\n\n## Get up and running\n\nClone the repository:\n```\ngit clone https://github.com/knutsynstad/faux-code.git\n```\n\nInstall dependencies:\n```\nnpm install\n```\n\nRun script:\n```\nnpm run start\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutsynstad%2Ffaux-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknutsynstad%2Ffaux-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknutsynstad%2Ffaux-code/lists"}