https://github.com/trendyol/chaki
Chaki is an application builder framework designed to simplify the development process in Go
https://github.com/trendyol/chaki
fiber framework go kafka swagger
Last synced: 3 months ago
JSON representation
Chaki is an application builder framework designed to simplify the development process in Go
- Host: GitHub
- URL: https://github.com/trendyol/chaki
- Owner: Trendyol
- License: mit
- Created: 2024-06-14T12:53:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-14T08:08:34.000Z (5 months ago)
- Last Synced: 2025-05-14T08:47:33.745Z (5 months ago)
- Topics: fiber, framework, go, kafka, swagger
- Language: Go
- Homepage: https://trendyol.github.io/chaki/
- Size: 4.02 MB
- Stars: 29
- Watchers: 9
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://scorecard.dev/viewer/?uri=github.com/Trendyol/chaki)
![]()
![]()
![]()
# Chaki
Chaki is an application builder framework designed to simplify the development process in Go by abstracting processes such as tracing, logging, Kafka integration, and Swagger documentation. It reduces the amount of boilerplate code, enhancing developer experience and productivity. Chaki handles complex tasks for you, allowing you to focus more on the core functionalities of your application.
Using Chaki, you can:
- Easily integrate the technologies and tools into your project with just a few configuration definitions.
- Quickly adapt to technological changes minumum effort on your stack, while continuing with your existing workflow.
- Create projects with code that primarily contains business logic, freeing you from technical bootstrap components.## Usage
A simple usage example is provided below. For more detailed examples, please refer to the [examples](https://github.com/Trendyol/chaki/example) directory.
```go
func main() {
// create instance
app := chaki.New()// add modules
app.Use(
foomodule.Module(),
)// provide constructors
app.Provide(
NewFooRepository,
NewFooService,
NewBarClient,
NewFooController,
NewFooCreatedConsumer,
// or you can just provide an already created instance
chaki.Valuer(barRepositoryInstance),
)// start application
if err := app.Start(); err != nil {
logger.Fatal(err)
}
}
```## Modules
Chaki is fundamentally based on the `uber-go/fx` dependency injection system and includes additional features such as a module system. This framework, built on a simple foundation, derives much of its power from its modules.
- Modules are easily added to the system with `app.Use`.
- Once added, you can directly use instances produced by the module, such as `*gorm.Gorm` or `sarama.SyncProducer`, in any constructor you want.
- Modules can be easily configured using configuration files.