{"id":13906191,"url":"https://github.com/feakin/fklang","last_synced_at":"2025-07-18T04:30:34.709Z","repository":{"id":60989392,"uuid":"547387447","full_name":"feakin/fklang","owner":"feakin","description":"      Fklang 是一个面向软件开发工业化的架构设计 DSL，通过显性化软件架构设计，以确保软件系统描述与实现的一致性。并在工作流中，内嵌对于 AI 代码生成软件的支持，以构筑完整的开发者体验。","archived":false,"fork":false,"pushed_at":"2022-12-26T02:52:56.000Z","size":721,"stargazers_count":105,"open_issues_count":7,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-08T18:18:30.796Z","etag":null,"topics":["dsl","language"],"latest_commit_sha":null,"homepage":"https://book.feakin.com/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/feakin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-07T15:45:06.000Z","updated_at":"2024-11-07T04:00:02.000Z","dependencies_parsed_at":"2023-01-30T23:16:10.252Z","dependency_job_id":null,"html_url":"https://github.com/feakin/fklang","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feakin%2Ffklang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feakin%2Ffklang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feakin%2Ffklang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feakin%2Ffklang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feakin","download_url":"https://codeload.github.com/feakin/fklang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226344574,"owners_count":17610163,"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":["dsl","language"],"created_at":"2024-08-06T23:01:30.993Z","updated_at":"2024-11-25T14:31:04.572Z","avatar_url":"https://github.com/feakin.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"# Fklang\n\n[![Build](https://github.com/feakin/fklang/actions/workflows/build.yml/badge.svg)](https://github.com/feakin/fklang/actions/workflows/build.yml)\n![Crates.io](https://img.shields.io/crates/v/fkl_cli)\n[![codecov](https://codecov.io/gh/feakin/fklang/branch/master/graph/badge.svg?token=PCIL3T0NDR)](https://codecov.io/gh/feakin/fklang)\n\norigin idea from [Forming](https://github.com/inherd/forming), but it's too complex. So I decide to rewrite it with\nTypeFlow\n\n\u003e Fklang，一个基于[软件开发工业化](https://book.feakin.com/design-principles)思想设计的架构 DSL。\n\u003e 通过显式化的软件架构设计，以确保软件系统描述与实现的一致性，并探索结合 AI 代码生成。\n\nTry it: [Feakin Quick Start](https://book.feakin.com/quick-start.html)\n\nSpec: [Feakin Specification](https://book.feakin.com/fklang/specification.html)\n\n## Install\n\n```\ncargo install fkl_cli\n```\n\n## Modules\n\n- Parser\n  - fkl_mir. the intermediate representation of fklang   \n  - fkl_parser. parser for fkl.\n  - fkl_parser_wasm. wasm wrapper version of fkl_parser.\n- CLI. CLI for generator code and IDE support.\n  - fkl_cli. the cli for fkl, like code_gen, dot_gen or others.\n- LSP. language server protocol, for IDE/Editor Support\n  - [ ] fkl_lsp. language server for fkl.\n- CodeGen. code generator for fkl.\n  - fkl_codegen_dot. generate Graphviz dot language from fkl source.\n  - fkl_codegen_java. generate Java code from fkl source.\n- Plugin System\n  - fkl_ext_loader. load external plugins for fkl.\n  - fkl_ext_api. the api for external plugins.\n  - plugins\n    - [ ] ext_kafka. the plugin for kafka.\n    - [ ] ext_computing. the plugin for computing.\n    - [ ] ext_codegen_aws. the plugin for aws codegen.\n    - [ ] ext_sourceset_swagger. the plugin for swagger.\n\n## Roadmap\n\n- [x] DSL Design\n- [x] IDEA Plugin\n- Code gen\n  - [ ] with Spring\n    - [x] Controller\n    - [ ] DDD\n- contract base testing\n  - [x] mock server\n  - [x] with HTTP API\n- database integration: JPA, JDBC, etc.\n  - [ ] database integration\n    - [x] MySQL\n    - [x] PostgresSQL\n  - [ ] database schema generation\n  - [ ] database migration\n- plugin system\n  - [x] plugin api\n  - [ ] plugin registry\n- simple expr\n  - [ ] Expr\n    - logic expr\n    - math expr\n    - etc.\n  - [ ] Filter\n  - [ ] REPL\n  - [ ] ExprTk with Rust?\n- module support\n  - [ ] module dependency\n  - [ ] module versioning\n- bootstrapping DDD DSL\n  - [ ] use type system to describe domain model\n- build system inside: cache, incremental build, etc.\n  - [ ] better code generation\n- general programming language (if possible)\n  - [ ] function support\n  - [ ] expression support\n\n## License\n\n@2022 This code is distributed under the MPL license. See `LICENSE` in this directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeakin%2Ffklang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeakin%2Ffklang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeakin%2Ffklang/lists"}