{"id":19542580,"url":"https://github.com/fable-compiler/repl3","last_synced_at":"2026-06-11T13:31:10.228Z","repository":{"id":73058528,"uuid":"313182027","full_name":"fable-compiler/repl3","owner":"fable-compiler","description":null,"archived":false,"fork":false,"pushed_at":"2020-12-04T15:17:46.000Z","size":25816,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-26T05:30:00.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","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/fable-compiler.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-11-16T03:31:28.000Z","updated_at":"2020-12-26T13:10:36.000Z","dependencies_parsed_at":"2023-09-18T22:02:33.680Z","dependency_job_id":null,"html_url":"https://github.com/fable-compiler/repl3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fable-compiler/repl3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fable-compiler","download_url":"https://codeload.github.com/fable-compiler/repl3/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34201840,"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-11T02:00:06.485Z","response_time":57,"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":"2024-11-11T03:15:14.251Z","updated_at":"2026-06-11T13:31:10.215Z","avatar_url":"https://github.com/fable-compiler.png","language":"F#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fable REPL\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/fable-compiler/repl)\n\n## Building locally\n\nTo develop the REPL locally:\n\n1. `./fake.sh build -t WatchApp` or `fake.cmd build -t WatchApp` depending on your OS\n2. Open `localhost:8080` in your browser\n\n## How to add a sample\n\nTo add a sample, you need to add an .fs file to the `public/samples/Samples.fsproj` project (and a corresponding .html file if necessary), then update `public/samples/samples.json`. This file is used to generate the samples menu in the browser. [This commit](https://github.com/fable-compiler/repl2/commit/860243166459e10e47919815dffcc94ddbbd73b7) is a good example of adding a sample (pun intended).\n\n\u003e If you just want to update on the existing samples, you can do it directly using Github UI and send a PR automatically.\n\nYou can add three types of entries:\n\n- Category: Adds a title entry to the menu\n- SubCategory: Adds an entry under a category, and make it collapsible\n- MenuItem: Adds a classic item which when clicked will load the sample into the REPL\n\n### Category\n\n```json\n{\n    \"type\": \"category\",\n    \"label\": \"Learn Fable\",\n    \"children\": [\n    ]\n}\n```\n\n- label: Will be displayed as the title of the category\n- children: A list of `SubCategory` or `MenuItem`\n\n### SubCategory\n\n```json\n{\n    \"type\": \"sub-category\",\n    \"label\": \"Interop\",\n    \"children\": [\n    ]\n}\n```\n\n- label: Will be displayed as the title of the SubCategory\n- children: A list of `MenuItem`\n\n### MenuItem\n\n```json\n{\n    \"type\": \"menu-item\",\n    \"label\": \"Basic canvas\",\n    \"fsharpCode\": \"basic-canvas/basic_canvas.fs\",\n    \"htmlCode\": \"basic-canvas/basic_canvas.html\"\n}\n```\n\n- label: Name to display in the menu item\n- fsharpCode: Relative url of the F# code\n- htmlCode (*optional field*): Relative url of the html code\n- cssCode (*optional field*): Relative url of the css code\n\nAll the urls for `fsharpCode`, `htmlCode` are relative to the `public/samples` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-compiler%2Frepl3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffable-compiler%2Frepl3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-compiler%2Frepl3/lists"}