{"id":22168725,"url":"https://github.com/jderochervlk/rescript-fresh","last_synced_at":"2025-06-20T22:36:50.872Z","repository":{"id":265740943,"uuid":"896228273","full_name":"jderochervlk/rescript-fresh","owner":"jderochervlk","description":"ReScript bindings for Deno's Fresh framework","archived":false,"fork":false,"pushed_at":"2025-04-04T15:16:15.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T11:12:59.726Z","etag":null,"topics":["deno","denofresh","rescript"],"latest_commit_sha":null,"homepage":"https://joshderoche-rescript-fr-52.deno.dev/","language":"ReScript","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/jderochervlk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-29T20:33:12.000Z","updated_at":"2025-04-04T15:16:18.000Z","dependencies_parsed_at":"2024-11-30T19:28:35.245Z","dependency_job_id":"2eead2f3-d561-456d-8802-9d55e20c1729","html_url":"https://github.com/jderochervlk/rescript-fresh","commit_stats":null,"previous_names":["jderochervlk/rescript-fresh"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jderochervlk/rescript-fresh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderochervlk%2Frescript-fresh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderochervlk%2Frescript-fresh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderochervlk%2Frescript-fresh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderochervlk%2Frescript-fresh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jderochervlk","download_url":"https://codeload.github.com/jderochervlk/rescript-fresh/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jderochervlk%2Frescript-fresh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259456214,"owners_count":22860513,"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":["deno","denofresh","rescript"],"created_at":"2024-12-02T06:25:02.542Z","updated_at":"2025-06-12T11:36:56.391Z","avatar_url":"https://github.com/jderochervlk.png","language":"ReScript","funding_links":[],"categories":["ReScript"],"sub_categories":[],"readme":"# @jvlk/rescript-fresh\nReScript bindings and utils for [Fresh](https://fresh.deno.dev/).\n\nRead the [docs](https://joshderoche-rescript-fr-52.deno.dev/).\n\n## Getting started\nYou can use this [starter repo](https://github.com/jderochervlk/rescript-fresh-starter) as a template. It's the same thing you get by creating a new Fresh app, just set up to use ReScript.\n\n### Adding ReScript to an existing Fresh app\n#### Create a ReScript config file\n```\n// rescript.json\n{\n    \"name\": \"rescript-fresh-example\",\n    \"sources\": [\n        {\n            \"dir\": \"components\",\n            \"subdirs\": true\n        },\n        {\n            \"dir\": \"islands\",\n            \"subdirs\": true\n        },\n        {\n            \"dir\": \"routes\",\n            \"subdirs\": true\n        }\n    ],\n    \"package-specs\": [\n        {\n            \"module\": \"esmodule\",\n            \"in-source\": true\n        }\n    ],\n    \"suffix\": \".js\", // the suffix needs to be .js for Fresh to pick up on route files\n    \"jsx\": {\n        \"module\": \"preact\" // Fresh uses Preact\n    },\n    \"bs-dependencies\": [\n        \"@rescript/webapi\", // it's highly recommended to use the webapi with Fresh\n        \"@jvlk/rescript-fresh\"\n    ],\n    \"bsc-flags\": [\n        \"-open WebAPI.Global\"\n    ]\n}\n```\n### Update the Deno config\n```diff\n// deno.json\n{\n    \"tasks\": {\n+       \"res:dev\": \"rescript -w\",\n+       \"res:build\": \"rescript\",\n+       \"res:clean\": \"rescript clean\"\n    },\n    \"imports\": {\n+      \"rescript\": \"npm:rescript@next\",\n+      \"@rescript/webapi\": \"npm:@rescript/webapi@experimental\",\n+      \"@jvlk/rescript-fresh\": \"npm:@jvlk/rescript-fresh@^0.2.0\"\n    }\n}\n```\n\n### Running\nIn one terminal run `deno task res:dev` and in another run `deno task start`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjderochervlk%2Frescript-fresh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjderochervlk%2Frescript-fresh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjderochervlk%2Frescript-fresh/lists"}