{"id":19542584,"url":"https://github.com/fable-compiler/repl2","last_synced_at":"2026-01-02T15:05:19.301Z","repository":{"id":52798411,"uuid":"329181399","full_name":"fable-compiler/repl2","owner":"fable-compiler","description":"REPL for Fable 2","archived":false,"fork":false,"pushed_at":"2021-04-19T05:40:50.000Z","size":13326,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-21T06:43:24.668Z","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}},"created_at":"2021-01-13T03:21:39.000Z","updated_at":"2024-11-05T00:01:03.000Z","dependencies_parsed_at":"2022-08-23T05:11:04.678Z","dependency_job_id":null,"html_url":"https://github.com/fable-compiler/repl2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fable-compiler%2Frepl2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fable-compiler","download_url":"https://codeload.github.com/fable-compiler/repl2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243581061,"owners_count":20314163,"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","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.463Z","updated_at":"2026-01-02T15:05:19.294Z","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%2Frepl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffable-compiler%2Frepl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffable-compiler%2Frepl2/lists"}