{"id":13395322,"url":"https://github.com/eeue56/derw","last_synced_at":"2025-04-05T02:04:20.884Z","repository":{"id":37816842,"uuid":"385687330","full_name":"eeue56/derw","owner":"eeue56","description":"An Elm-inspired language that transpiles to TypeScript","archived":false,"fork":false,"pushed_at":"2023-11-25T17:27:16.000Z","size":1296,"stargazers_count":374,"open_issues_count":3,"forks_count":9,"subscribers_count":13,"default_branch":"main","last_synced_at":"2024-09-22T03:10:39.935Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eeue56.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["eeue56"]}},"created_at":"2021-07-13T17:39:36.000Z","updated_at":"2024-07-07T01:29:41.000Z","dependencies_parsed_at":"2023-09-28T19:36:16.270Z","dependency_job_id":"fe53e9a5-2aca-4dd2-b3f8-b93d4f273039","html_url":"https://github.com/eeue56/derw","commit_stats":{"total_commits":531,"total_committers":6,"mean_commits":88.5,"dds":"0.020715630885122405","last_synced_commit":"d6e949dfab4094c4f77fb5b7731feb9a15dd7a98"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeue56%2Fderw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeue56%2Fderw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeue56%2Fderw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eeue56%2Fderw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eeue56","download_url":"https://codeload.github.com/eeue56/derw/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276162,"owners_count":20912288,"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-07-30T17:01:52.422Z","updated_at":"2025-04-05T02:04:20.861Z","avatar_url":"https://github.com/eeue56.png","language":"TypeScript","funding_links":["https://github.com/sponsors/eeue56"],"categories":["Uncategorized","TypeScript","Functional"],"sub_categories":["Uncategorized"],"readme":"# derw\n\nWelcome to Derw! Derw is a type-safe language in the ML family designed to replace or augment your TypeScript and JavaScript code - both on the client and the server. If you've never encountered an ML language before, some of the core principles - which Derw follows - is a clean and concise syntax, paired with a powerful type system. Here's some real world Derw code:\n\n```elm\ngenerateTypeAlias: TypeAlias -\u003e string\ngenerateTypeAlias syntax =\n    let\n        properties: string\n        properties =\n            List.map generateProperty syntax.properties\n                |\u003e (\\y -\u003e y.join \",\\n    \")\n\n        typeDef: string\n        typeDef =\n            generateType syntax.type\n    in\n        if syntax.properties.length == 0 then\n            `type alias ${typeDef} = {\\n}`\n        else\n            `type alias ${typeDef} = {\\n    ${properties}\\n}`\n```\n\n## Why might you use Derw?\n\nDerw is a language for those searching for a better syntax for writing type-heavy code. It is a general purpose language, for both the server and the client, built on top of the JavaScript platform. It has interop with Javascript and TypeScript built in - so that you can use existing code and libraries with minimal effort. Derw targets multiple languages - TypeScript, JavaScript, Elm, English and Derw itself. Derw's output generation is documented in the [Gitbook](https://docs.derw-lang.com/), so it's easy to create code to interface between Derw and TypeScript.\n\nIf you want to write a website, both backend and frontend, Derw is a perfect choice for you.\n\n## Batteries built-in\n\n-   A testing framework (all of Derw's compiler tests use this library!)\n-   Performant web framework with server side rendering and hydration\n-   Bundling built into the CLI\n-   Write better code by leveraging a type system that guides your code.\n-   Integrate with your existing code bases through interop with JavaScript and TypeScript.\n\n## Getting Started\n\nHead over to the [Gitbook](https://docs.derw-lang.com/).\n\n## Staying up to date\n\nHomepage: https://www.derw-lang.com/\n\nBlog: http://derw.substack.com/\n\nFollow Derw on Twitter: https://twitter.com/derwlang\n\n# Name\n\nderw (/ˈdeːruː/, Welsh “oak”) is one of the native trees in Wales, famous for long life, tall stature, and hard, good quality wood. An English speaker might pronounce it as “deh-ru”.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feeue56%2Fderw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feeue56%2Fderw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feeue56%2Fderw/lists"}