{"id":41340176,"url":"https://github.com/farseer-go/fs","last_synced_at":"2026-01-23T06:48:13.798Z","repository":{"id":44541358,"uuid":"512821805","full_name":"farseer-go/fs","owner":"farseer-go","description":"  farseer-go all components of the base module, module launcher, framework initialization program（所有组件的基础模块，模块启动器，框架初始化程序）","archived":false,"fork":false,"pushed_at":"2026-01-10T07:39:40.000Z","size":704,"stargazers_count":563,"open_issues_count":4,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-11T02:12:37.586Z","etag":null,"topics":["container","ddd","elasticsearch","etcd","eventbus","go","ioc","linq","mapper","module","orm","queue","rabbit","rabbitmq","redis"],"latest_commit_sha":null,"homepage":"https://farseer-go.github.io/doc","language":"Go","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/farseer-go.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-07-11T15:58:27.000Z","updated_at":"2026-01-10T07:39:43.000Z","dependencies_parsed_at":"2023-09-24T06:23:13.368Z","dependency_job_id":"21e5c610-258e-4c48-abc3-2ad8f8f433ad","html_url":"https://github.com/farseer-go/fs","commit_stats":{"total_commits":612,"total_committers":6,"mean_commits":102.0,"dds":"0.019607843137254943","last_synced_commit":"ab9b62577f8af6eb7f97dd14e3f3608c2099ef09"},"previous_names":["farseernet/farseer.go"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/farseer-go/fs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farseer-go%2Ffs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farseer-go%2Ffs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farseer-go%2Ffs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farseer-go%2Ffs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farseer-go","download_url":"https://codeload.github.com/farseer-go/fs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farseer-go%2Ffs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28682262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["container","ddd","elasticsearch","etcd","eventbus","go","ioc","linq","mapper","module","orm","queue","rabbit","rabbitmq","redis"],"created_at":"2026-01-23T06:48:12.897Z","updated_at":"2026-01-23T06:48:13.785Z","avatar_url":"https://github.com/farseer-go.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n- `Document`\n  - [English](https://farseer-go.github.io/doc/#/en-us/)\n  - [中文](https://farseer-go.github.io/doc/)\n  - [English](https://farseer-go.github.io/doc/#/en-us/)\n- `Source`\n  - [github](https://github.com/farseer-go/fs)\n\n![stars](https://img.shields.io/github/stars/farseer-go?style=social)\n![license](https://img.shields.io/github/license/farseer-go/fs)\n![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/fs)\n![release](https://img.shields.io/github/v/release/farseer-go/fs)\n[![Build](https://github.com/farseer-go/fs/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/fs/actions/workflows/test.yml)\n[![codecov](https://img.shields.io/codecov/c/github/farseer-go/fs)](https://codecov.io/gh/farseer-go/fs)\n![badge](https://goreportcard.com/badge/github.com/farseer-go/fs)\n## Introduction\n\nA **modular** and **complete infrastructure** framework based on Golang，create modern web applications and APIs\n\nUse the most popular components available today and provide them with modular technology.\n\nThe framework perfectly supports `DDD domain-driven` tactical design, such as `warehousing repository`\n, `application-layer transactions`, `domain events`, `application-layer dynamic WebAPI`.\n\nIt has a mature version of [.net core](https://github.com/FarseerNet/Farseer.Net/) that has been in use for over 10\nyears and is great\n\n![](https://farseer-go.github.io/doc/images/farseer-go.png)\n\n\u003e Don't worry about the framework making you depend on too many packages, farseer-go's components are all separate\n\u003e packages and unused packages are not downloaded into your application\n\n## Features\n\n- `Unified configuration`: all configurations are consolidated into `. /farseer.yaml`\n\n- `Elegant`: all modules follow the principle of developer experience first.\n\n- `Modularity`: provides a complete modular system that allows you to develop reusable application modules.\n\n- `Domain-driven`: helps you implement a hierarchical architecture based on DDD and build a maintainable code base.\n\n- `link tracking` : if you use the framework Orm, Redis, Http, Grpc, ES, MQ, EventBus, Task, fSchedule, will implicitly implement link tracking for you and provide API request logs, slow queries.\n\n\u003e Combined with [FOPS](https://github.com/FarseerNet/FOPS) project (automatic build, link tracing console, K8S cluster log collection) support code non-intrusive full link real-time monitoring.\n\n## Components\n\n| Package Name                                                 | Description        |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |\n|--------------------------------------------------------------|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [fs](https://github.com/farseer-go/fs)                       | Basic Core Package | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/fs)![release](https://img.shields.io/github/v/release/farseer-go/fs)[![Build](https://github.com/farseer-go/fs/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/fs/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/fs)](https://codecov.io/gh/farseer-go/fs)![badge](https://goreportcard.com/badge/github.com/farseer-go/fs)                                                                                |\n| [collections](https://github.com/farseer-go/collections)     | Data Collection    | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/collections)![release](https://img.shields.io/github/v/release/farseer-go/collections)[![Build](https://github.com/farseer-go/collections/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/collections/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/collections)](https://codecov.io/gh/farseer-go/collections)![badge](https://goreportcard.com/badge/github.com/farseer-go/collections)                 |\n| [webapi](https://github.com/farseer-go/webapi)               | web api            | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/webapi)![release](https://img.shields.io/github/v/release/farseer-go/webapi)[![Build](https://github.com/farseer-go/webapi/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/webapi/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/webapi)](https://codecov.io/gh/farseer-go/webapi)![badge](https://goreportcard.com/badge/github.com/farseer-go/webapi)                                                    |\n| [async](https://github.com/farseer-go/async)                 | Async Programming  | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/async)![release](https://img.shields.io/github/v/release/farseer-go/async)[![Build](https://github.com/farseer-go/async/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/async/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/async)](https://codecov.io/gh/farseer-go/async)![badge](https://goreportcard.com/badge/github.com/farseer-go/async)                                                           | \n| [mapper](https://github.com/farseer-go/mapper)               | Object Conversion  | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/mapper)![release](https://img.shields.io/github/v/release/farseer-go/mapper)[![Build](https://github.com/farseer-go/mapper/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/mapper/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/mapper)](https://codecov.io/gh/farseer-go/mapper)![badge](https://goreportcard.com/badge/github.com/farseer-go/mapper)                                                    | \n| [cacheMemory](https://github.com/farseer-go/cacheMemory)     | Local Cache        | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/cacheMemory)![release](https://img.shields.io/github/v/release/farseer-go/cacheMemory)[![Build](https://github.com/farseer-go/cacheMemory/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/cacheMemory/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/cacheMemory)](https://codecov.io/gh/farseer-go/cacheMemory)![badge](https://goreportcard.com/badge/github.com/farseer-go/cacheMemory)                 |\n| [redis](https://github.com/farseer-go/redis)                 | client             | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/redis)![release](https://img.shields.io/github/v/release/farseer-go/redis)[![Build](https://github.com/farseer-go/redis/actions/workflows/build.yml/badge.svg)](https://github.com/farseer-go/redis/actions/workflows/build.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/redis)](https://codecov.io/gh/farseer-go/redis)![badge](https://goreportcard.com/badge/github.com/farseer-go/redis)                                                         |\n| [data](https://github.com/farseer-go/data)                   | DataBase ORM       | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/data)![release](https://img.shields.io/github/v/release/farseer-go/data)[![Build](https://github.com/farseer-go/data/actions/workflows/build.yml/badge.svg)](https://github.com/farseer-go/data/actions/workflows/build.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/data)](https://codecov.io/gh/farseer-go/data)![badge](https://goreportcard.com/badge/github.com/farseer-go/data)                                                                | \n| [elasticSearch](https://github.com/farseer-go/elasticSearch) | client             | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/elasticSearch)![release](https://img.shields.io/github/v/release/farseer-go/elasticSearch)[![Build](https://github.com/farseer-go/elasticSearch/actions/workflows/build.yml/badge.svg)](https://github.com/farseer-go/elasticSearch/actions/workflows/build.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/elasticSearch)](https://codecov.io/gh/farseer-go/elasticSearch)![badge](https://goreportcard.com/badge/github.com/farseer-go/elasticSearch) | \n| [eventBus](https://github.com/farseer-go/eventBus)           | eventBus           | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/eventBus)![release](https://img.shields.io/github/v/release/farseer-go/eventBus)[![Build](https://github.com/farseer-go/eventBus/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/eventBus/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/eventBus)](https://codecov.io/gh/farseer-go/eventBus)![badge](https://goreportcard.com/badge/github.com/farseer-go/eventBus)                                      | \n| [queue](https://github.com/farseer-go/queue)                 | Local Queue        | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/queue)![release](https://img.shields.io/github/v/release/farseer-go/queue)[![Build](https://github.com/farseer-go/queue/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/queue/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/queue)](https://codecov.io/gh/farseer-go/queue)![badge](https://goreportcard.com/badge/github.com/farseer-go/queue)                                                           | \n| [tasks](https://github.com/farseer-go/tasks)                 | Local tasks        | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/tasks)![release](https://img.shields.io/github/v/release/farseer-go/tasks)[![Build](https://github.com/farseer-go/tasks/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/tasks/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/tasks)](https://codecov.io/gh/farseer-go/tasks)![badge](https://goreportcard.com/badge/github.com/farseer-go/tasks)                                                           | \n| [fSchedule](https://github.com/farseer-go/fSchedule)         | client             | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/fSchedule)![release](https://img.shields.io/github/v/release/farseer-go/fSchedule)[![Build](https://github.com/farseer-go/fSchedule/actions/workflows/build.yml/badge.svg)](https://github.com/farseer-go/fSchedule/actions/workflows/build.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/fSchedule)](https://codecov.io/gh/farseer-go/fSchedule)![badge](https://goreportcard.com/badge/github.com/farseer-go/fSchedule)                             | \n| [utils](https://github.com/farseer-go/utils)                 | utils              | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/utils)![release](https://img.shields.io/github/v/release/farseer-go/utils)[![Build](https://github.com/farseer-go/utils/actions/workflows/test.yml/badge.svg)](https://github.com/farseer-go/utils/actions/workflows/test.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/utils)](https://codecov.io/gh/farseer-go/utils)![badge](https://goreportcard.com/badge/github.com/farseer-go/utils)                                                           |\n| [rabbit](https://github.com/farseer-go/rabbit)               | rabbit client      | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/rabbit)![release](https://img.shields.io/github/v/release/farseer-go/rabbit)[![Build](https://github.com/farseer-go/rabbit/actions/workflows/build.yml/badge.svg)](https://github.com/farseer-go/rabbit/actions/workflows/build.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/rabbit)](https://codecov.io/gh/farseer-go/rabbit)![badge](https://goreportcard.com/badge/github.com/farseer-go/rabbit)                                                  |\n| [etcd](https://github.com/farseer-go/etcd)                   | etcd client        | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/etcd)![release](https://img.shields.io/github/v/release/farseer-go/etcd)[![Build](https://github.com/farseer-go/etcd/actions/workflows/build.yml/badge.svg)](https://github.com/farseer-go/etcd/actions/workflows/build.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/etcd)](https://codecov.io/gh/farseer-go/etcd)![badge](https://goreportcard.com/badge/github.com/farseer-go/etcd)                                                                |\n| [linkTrace](https://github.com/farseer-go/linkTrace)         | linkTrace          | ![go-version](https://img.shields.io/github/go-mod/go-version/farseer-go/linkTrace)![release](https://img.shields.io/github/v/release/farseer-go/linkTrace)[![Build](https://github.com/farseer-go/linkTrace/actions/workflows/build.yml/badge.svg)](https://github.com/farseer-go/linkTrace/actions/workflows/build.yml)[![codecov](https://img.shields.io/codecov/c/github/farseer-go/linkTrace)](https://codecov.io/gh/farseer-go/linkTrace)![badge](https://goreportcard.com/badge/github.com/farseer-go/linkTrace)                             |\n| [redisStream](https://github.com/farseer-go/redisStream)     | redis mq           | Coming soon                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |\n\n## Quick Start\n\n_main.go_\n```go\npackage main\nimport \"github.com/farseer-go/fs\"\nimport \"github.com/farseer-go/fs/modules\"\nimport \"github.com/farseer-go/webapi\"\n\nfunc main() {\n  fs.Initialize[StartupModule](\"your project Name\")\n}\n\ntype StartupModule struct { }\n\nfunc (module StartupModule) DependsModule() []modules.FarseerModule {\n  return []modules.FarseerModule{webapi.Module{}}\n}\nfunc (module StartupModule) PreInitialize() { }\nfunc (module StartupModule) Initialize() { }\nfunc (module StartupModule) PostInitialize() { }\nfunc (module StartupModule) Shutdown() { }\n```\n\n\u003e In the first line of the main function, execute `fs.Initialize` to start initializing the framework\n\nAfter running the console prints the loading message.\n\n```\n2023-01-05 16:15:00 AppName：  your project Name\n2023-01-05 16:15:00 AppID：    199530571963039744\n2023-01-05 16:15:00 AppIP：    192.168.3.55\n2023-01-05 16:15:00 HostName： stedenMacBook-Pro.local\n2023-01-05 16:15:00 HostTime： 2023-01-05 16:15:00\n2023-01-05 16:15:00 PID：      22131\n\n2023-01-05 16:15:00 ---------------------------------------\n2023-01-05 16:15:00 Loading Module...\n2023-01-05 16:15:00 Loading Module：webapi.Module\n2023-01-05 16:15:00 Loading Module：main.StartupModule\n2023-01-05 16:15:00 Loaded, 11 modules in total\n2023-01-05 16:15:00 ---------------------------------------\n2023-01-05 16:15:00 Elapsed time：0 ms modules.FarseerKernelModule.PreInitialize()\n2023-01-05 16:15:00 Elapsed time：0 ms webapi.Module.PreInitialize()\n2023-01-05 16:15:00 Elapsed time：0 ms main.StartupModule.PreInitialize()\n2023-01-05 16:15:00 ---------------------------------------\n2023-01-05 16:15:00 Elapsed time：0 ms modules.FarseerKernelModule.Initialize()\n2023-01-05 16:15:00 Elapsed time：0 ms webapi.Module.Initialize()\n2023-01-05 16:15:00 Elapsed time：0 ms main.StartupModule.Initialize()\n2023-01-05 16:15:00 ---------------------------------------\n2023-01-05 16:15:00 Elapsed time：0 ms modules.FarseerKernelModule.PostInitialize()\n2023-01-05 16:15:00 Elapsed time：0 ms webapi.Module.PostInitialize()\n2023-01-05 16:15:00 Elapsed time：0 ms main.StartupModule.PostInitialize()\n2023-01-05 16:15:00 ---------------------------------------\n2023-01-05 16:15:00 Initialization completed, total time：0 ms \n2023-01-05 16:15:00 [Info] Web service is started：http://localhost:8888/\n```\n\n## farseer-go framework demo\nWe have provided simulations of a [small e-commerce website](https://github.com/farseer-go/demo/tree/main/shopping) using the following techniques.\n* ddd: using domain-driven design\n* ioc: use ioc/container, do decoupling, injection, dependency inversion\n* webapi: api service, and use dynamic api technology\n* data: database operations\n* redis: redis operation\n* eventBus: event driver\n  You can download it locally and run it\n\n\n## Stargazers\n\n[![Stargazers repo roster for @farseer-go/fs](https://reporoster.com/stars/farseer-go/fs)](https://github.com/farseer-go/fs/stargazers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarseer-go%2Ffs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarseer-go%2Ffs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarseer-go%2Ffs/lists"}