{"id":23835413,"url":"https://github.com/gabsedits/funfact-generator","last_synced_at":"2026-06-15T01:34:05.781Z","repository":{"id":270569672,"uuid":"910763313","full_name":"GabsEdits/funfact-generator","owner":"GabsEdits","description":"Simple Funfact Generator (API \u0026 Frontend)","archived":false,"fork":false,"pushed_at":"2025-01-01T12:19:15.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-31T07:22:37.457Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GabsEdits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2025-01-01T10:50:13.000Z","updated_at":"2025-01-01T12:19:18.000Z","dependencies_parsed_at":"2025-01-01T13:18:55.871Z","dependency_job_id":null,"html_url":"https://github.com/GabsEdits/funfact-generator","commit_stats":null,"previous_names":["gabsedits/funfact-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GabsEdits/funfact-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Ffunfact-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Ffunfact-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Ffunfact-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Ffunfact-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabsEdits","download_url":"https://codeload.github.com/GabsEdits/funfact-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Ffunfact-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34344440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":[],"created_at":"2025-01-02T15:54:02.384Z","updated_at":"2026-06-15T01:34:05.765Z","avatar_url":"https://github.com/GabsEdits.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eFunfact Generator\u003c/h1\u003e\n\u003cp\u003eGenerate random fun facts for any occasion, in multiple languages.\u003c/p\u003e\n\u003cmark\u003eMade for Highseas.\u003c/mark\u003e\n\u003c/div\u003e\n\n## Links\n\n- Frontend: [funfact.gxbs.dev](https://funfact.gxbs.dev)\n- API: [funfact-api.deno.dev](https://funfact-api.deno.dev)\n\n## API\n\nFor the API, I used [Deno](https://deno.com) and\n[Hoco](https://jsr.io/@hoco/hoco).\n\n### Examples\n\nFor a random fun fact:\n\n```http\nGET https://funfact-api.deno.dev/{language}/random/random\n```\n\n`{language}` is the language of the fun fact. Currently, the only supported\n\nFor a random history fun fact:\n\n```http\nGET https://funfact-api.deno.dev/{language}/random/history\n```\n\n`{language}` is the language of the fun fact. Currently, the only supported\nlanguages are:\n\n- `en`: English\n- `ro`: Romanian\n- `de`: German\n\nFor example, if you want to get a random fun fact in English, you would use:\n\n```http\nGET https://funfact-api.deno.dev/en/random/random\n```\n\nThe categories are:\n\n- `random`: Random fun fact from all categories\n\n- `history`: Fun fact from history\n\n- `science`: Fun fact from science\n\n- `geography`: Fun fact from space\n\n### Development\n\nMake sure you have [Deno](https://deno.com) installed.\n\nTo start the server, run:\n\n```bash\ndeno run -NR mod.ts\n```\n\n\u003e ![NOTE] Make sure you are in the `api` directory.\n\n## Frontend\n\n### Development\n\nThe project is build using [Vite](https://vite.dev) and\n[Svelte](https://svelte.dev).\n\nMake sure you have [Deno](https://deno.com) installed.\n\n### Installation\n\n```bash\ndeno install\n```\n\n### Scripts\n\n- `dev`: Start the development server (`deno task dev`)\n- `build`: Build the project (`deno task build`)\n- `preview`: Serve the build project (`deno task preview`)\n\n## License\n\nThis project is licensed under the GNU Affero General Public License v3.0. See\nthe [LICENSE](LICENSE.txt) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabsedits%2Ffunfact-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabsedits%2Ffunfact-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabsedits%2Ffunfact-generator/lists"}