Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a58f836
feat(backend): add newsletter subscription API and table
MaxLuxs Mar 1, 2026
548c332
feat(gradle): add generateFlagKeys task and extend plugin config
MaxLuxs Mar 1, 2026
163dac3
feat(sdk): add flagent-annotations module with @FlagKey
MaxLuxs Mar 1, 2026
5c451a8
fix(sdk): kotlin-debug-ui tests and AssumeDisplayComposeRule
MaxLuxs Mar 1, 2026
81438e8
feat(samples): add kotlin-strict-flags sample and wire in settings
MaxLuxs Mar 1, 2026
41d6cfc
chore(scripts): add verify-sdks.sh for SDK build verification
MaxLuxs Mar 1, 2026
2b9229c
feat(frontend): UI and config updates
MaxLuxs Mar 1, 2026
743a780
docs: update guides, add SDK selection and screenshots, remove tasks …
MaxLuxs Mar 1, 2026
c8a6597
chore: CI workflow, gitignore and README updates
MaxLuxs Mar 1, 2026
73d1da5
Add V7 migration: crash_reports created_at, active flag keys
MaxLuxs Mar 2, 2026
4066c1c
Add Firebase integration routes and enterprise configurator wiring
MaxLuxs Mar 2, 2026
4835d47
Backend: auth middleware and flag repository updates
MaxLuxs Mar 2, 2026
9c26472
Add Firebase settings UI and ToggleSwitch component
MaxLuxs Mar 2, 2026
1e2cf0a
Add language state, backgrounds and theme updates
MaxLuxs Mar 2, 2026
5402dee
Frontend: component and state updates
MaxLuxs Mar 2, 2026
38a038c
Add Kotlin OpenFeature SDK module
MaxLuxs Mar 2, 2026
293f296
Docs: guides, architecture, assets and styles updates
MaxLuxs Mar 2, 2026
c783d5c
Android sample: evaluation screen and build updates
MaxLuxs Mar 2, 2026
284a1b4
Update seed-demo-data script
MaxLuxs Mar 2, 2026
3a440ab
Update flagent-enterprise submodule reference
MaxLuxs Mar 2, 2026
8bc2779
Add TopFlagsBarChart dashboard component
MaxLuxs Mar 2, 2026
fb9898d
Frontend: improve dashboard metrics and RBAC hints
MaxLuxs Mar 2, 2026
ff6f88a
test(admin): use addJwtProvider in Authentication in AdminUserRoutesTest
MaxLuxs Mar 3, 2026
41d83af
frontend(settings): use LocalizedStrings in RolesSettings
MaxLuxs Mar 3, 2026
715cef5
frontend(design-system): replace hardcoded chart and toggle shadows w…
MaxLuxs Mar 3, 2026
e8deaf9
fix: update load-test DB connection and e2e tests
MaxLuxs Mar 3, 2026
a04cb82
fix: optimize batch flag toggle and stabilize analytics e2e
MaxLuxs Mar 3, 2026
9a5265c
fix(load-test): relax PR comment permissions and avoid 403
MaxLuxs Mar 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 55 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ jobs:
FLAGENT_TEST_USE_SQLITE: "true"
run: ./gradlew :backend:test :shared:jvmTest --no-daemon

- name: Run Kotlin SDK tests
run: ./gradlew :kotlin-client:jvmTest :kotlin-enhanced:jvmTest :kotlin-debug-ui:jvmTest :flagent-koin:jvmTest --no-daemon
# kotlin-debug-ui:jvmTest is SKIPPED here (no display); actual run in job kotlin-debug-ui with xvfb

- name: Design system hardcode check
run: ./design-system/check-hardcode.sh

Expand Down Expand Up @@ -138,6 +142,32 @@ jobs:
FLAGENT_DB_DBCONNECTIONSTR: jdbc:postgresql://localhost:5432/flagent_test?user=postgres&password=test
run: ./gradlew :backend:test --no-daemon -PincludeIntegrationTests --tests "*IntegrationTest"

kotlin-debug-ui:
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Cache Gradle dependencies
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties', 'gradle/wrapper/*.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Run kotlin-debug-ui tests (xvfb)
env:
FLAGENT_RUN_DEBUG_UI_TESTS: "true"
run: xvfb-run --auto-servernum --server-args="-screen 0 1024x768x24" ./gradlew :kotlin-debug-ui:jvmTest --no-daemon

actionlint:
runs-on: ubuntu-latest
steps:
Expand All @@ -159,10 +189,10 @@ jobs:
with:
go-version: '1.22'
cache: false # go.sum in sdk/go/ and sdk/go-enhanced/, not in root
- name: Build sdk/go
run: cd sdk/go && go build ./...
- name: Build sdk/go-enhanced
run: cd sdk/go-enhanced && go build .
- name: Build and test sdk/go
run: cd sdk/go && go build ./... && go test ./...
- name: Build and test sdk/go-enhanced
run: cd sdk/go-enhanced && go build . && go test ./...

js-sdk:
runs-on: ubuntu-latest
Expand All @@ -172,12 +202,12 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build sdk/javascript
- name: Build and test sdk/javascript
run: |
cd sdk/javascript && (npm ci || npm install) && npm run build
- name: Build sdk/javascript-enhanced
cd sdk/javascript && (npm ci || npm install) && npm run build && npm test
- name: Build and test sdk/javascript-enhanced
run: |
cd sdk/javascript-enhanced && npm install && npm run build
cd sdk/javascript-enhanced && npm install && npm run build && npm test
- name: Build sdk/javascript-debug-ui
run: |
cd sdk/javascript-debug-ui && npm install && npm run build
Expand All @@ -190,9 +220,24 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Check sdk/python
- name: Install and test sdk/python
run: |
cd sdk/python && pip install -e ".[dev]" && python -c "import flagent; print('OK')" && pytest tests/ -v

dart-sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Dart
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Build and test sdk/dart
run: |
cd sdk/dart && dart pub get && dart run build_runner build --delete-conflicting-outputs && dart analyze && dart test
- name: Build and test sdk/flutter-enhanced
run: |
cd sdk/python && pip install -e . && python -c "import flagent; print('OK')"
cd sdk/flutter-enhanced && dart pub get && dart analyze && dart test

android-sample:
runs-on: ubuntu-latest
Expand Down
25 changes: 17 additions & 8 deletions .github/workflows/load-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: Load Testing

permissions:
contents: read
issues: write
pull-requests: write

on:
# Run on pull requests to main
pull_request:
Expand Down Expand Up @@ -72,7 +77,7 @@ jobs:
env:
PORT: 8000
FLAGENT_DB_DBDRIVER: postgresql
FLAGENT_DB_DBCONNECTIONSTR: postgresql://flagent:flagent@localhost:5432/flagent
FLAGENT_DB_DBCONNECTIONSTR: jdbc:postgresql://localhost:5432/flagent?user=flagent&password=flagent
run: |
./gradlew :backend:run --no-daemon &
echo $! > flagent.pid
Expand Down Expand Up @@ -262,19 +267,23 @@ jobs:
cat performance-report.md

- name: Comment PR with Results
if: github.event_name == 'pull_request'
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
const report = fs.readFileSync('performance-report.md', 'utf8');

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: report
});
try {
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: report
});
} catch (error) {
core.warning(`Failed to post PR comment with load-test results: ${error.message}`);
}

- name: Upload Results
if: always()
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ docs/private/
# Internal planning docs (dev notes, build plans)
internal/docs/
docs/guides/improvement-plan.md
docs/guides/prd.md
# Keep SDK documentation (generated by OpenAPI Generator)
!sdk/javascript/docs/
!sdk/swift/docs/
Expand Down
82 changes: 63 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<div align="center">
<p><strong>English</strong> | <a href="README.ru.md">Русский</a></p>
<h1>Flagent</h1>
<p><strong>The First Kotlin-Native Feature Flag Platform</strong></p>
<p>Type-safe, coroutine-first feature flags and experimentation; optional Smart Rollout and anomaly detection (Enterprise)</p>
<p>
<img src="docs/assets/flagent.png" alt="Flagent logo" width="160">
</p>
<p><strong>Ship Features Safely. Experiment Confidently.</strong></p>
<p>The first Kotlin-native feature flag platform: type-safe, coroutine-first flags and experimentation; optional Smart Rollout and anomaly detection (Enterprise).</p>

<p>
<a href="https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml?query=branch%3Amain+">
<img src="https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI">
</a>
<a href="https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml?query=branch%3Amain+">
<img src="https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml/badge.svg?branch=main" alt="CI (Swift)">
</a>
<a href="https://codecov.io/gh/MaxLuxs/Flagent">
<img src="https://codecov.io/gh/MaxLuxs/Flagent/branch/main/graph/badge.svg" alt="Code Coverage">
</a>
Expand Down Expand Up @@ -49,6 +49,10 @@

**Flagent** is a modern, production-ready feature flag and experimentation platform built with **Kotlin/Ktor**. The first Kotlin-native solution in the feature flags ecosystem, combining type-safety, coroutines, and clean architecture for high-performance feature management. Enterprise build adds multi-tenancy, SSO, RBAC, Smart Rollout and anomaly detection.

**Problem → Solution:** Teams need to ship features safely, run A/B tests, and roll back instantly without redeploys. Flagent gives you feature flags, experiments, gradual rollouts, kill switches, and optional crash-by-flag analytics in one self-hosted or (planned) cloud platform — with Kotlin-native SDKs and a single UI.

**Full landing (product overview, pricing, CTA):** When running Flagent with the marketing landing enabled (`ENV_SHOW_LANDING=true`), open the app root (e.g. `http://localhost:18000`). See also [Documentation](https://maxluxs.github.io/Flagent/guides/getting-started.md) and [Pricing & editions](docs/guides/pricing-and-editions.md).

**Project status:** Flagent is in **active development**; we ship updates regularly. **Flagent Cloud (SaaS)** is planned but not yet launched. We welcome [sponsors](https://github.com/sponsors/MaxLuxs) and community support — see [Roadmap](docs/guides/roadmap.md).

## 🎯 Why Flagent?
Expand Down Expand Up @@ -120,6 +124,14 @@ open http://localhost:18000

See [docker-compose.yml](docker-compose.yml) for PostgreSQL setup.

### Screenshots

| Dashboard | Flags list | Debug Console |
|-----------|------------|---------------|
| ![Dashboard](docs/assets/screenshots/screenshot-dashboard.png) | ![Flags list](docs/assets/screenshots/screenshot-flags-list.png) | ![Debug Console](docs/assets/screenshots/screenshot-debug-console.png) |
| **Experiments (A/B)** | **Create Flag** | **Pricing** |
| ![Experiments](docs/assets/screenshots/screenshot-experiments.png) | ![Create Flag](docs/assets/screenshots/screenshot-create-flag.png) | ![Pricing](docs/assets/screenshots/screenshot-pricing.png) |

### Environment Variables

**Database Configuration (required):**
Expand Down Expand Up @@ -231,7 +243,24 @@ Backend serves the UI from `frontend/build/dist/js/developmentExecutable` when p
flagent/
├── backend/ # Ktor backend (Clean Architecture)
├── frontend/ # Compose for Web UI
├── sdk/ # Client SDKs (Kotlin, JS, Swift, Python, Go)
├── sdk/ # Client SDKs
│ ├── kotlin/ # Kotlin (KMP) base client
│ ├── kotlin-enhanced/ # Client-side eval, SSE
│ ├── kotlin-debug-ui/ # Compose debug dashboard
│ ├── flagent-koin/ # Koin DI module
│ ├── java/ # Java client
│ ├── spring-boot-starter/
│ ├── javascript/ # JS/TS base
│ ├── javascript-enhanced/
│ ├── javascript-debug-ui/
│ ├── swift/ # Swift base
│ ├── swift-enhanced/
│ ├── swift-debug-ui/
│ ├── python/
│ ├── go/
│ ├── go-enhanced/
│ ├── dart/ # Dart base
│ └── flutter-enhanced/
├── ktor-flagent/ # Ktor plugin
└── docs/guides/roadmap.md # Development roadmap
```
Expand Down Expand Up @@ -273,19 +302,28 @@ export PORT=18000

Official SDKs available for multiple platforms. The Kotlin SDK is **full Kotlin Multiplatform (KMP)**: `kotlin-client`, `kotlin-enhanced`, `kotlin-debug-ui`, and `flagent-koin` support JVM, Android, iOS, JS, and Native (linuxX64, mingwX64, macosX64).

| Language | Package | Status | Features |
|----------|---------|--------|----------|
| **Kotlin (KMP)** | [kotlin-client](sdk/kotlin) | ✅ Stable | Full API, JVM/Android/iOS/JS/Native |
| **Kotlin Enhanced** | [kotlin-enhanced](sdk/kotlin-enhanced) | ✅ Stable | Client-side eval, real-time, KMP |
| **Kotlin Debug UI** | [kotlin-debug-ui](sdk/kotlin-debug-ui) | ✅ Stable | Compose Multiplatform debug dashboard, JVM/Android/iOS |
| **flagent-koin** | [flagent-koin](sdk/flagent-koin) | ✅ Stable | Koin DI module for Flagent, KMP |
| **JavaScript/TypeScript** | [flagent-js](sdk/javascript) | ✅ Stable | Full API support, async/await |
| **Swift** | [flagent-swift](sdk/swift) | ✅ Stable | Full API support, async/await |
| **Python** | [flagent-python](sdk/python) | ✅ Stable | Full API support, asyncio |
| **Java** | [flagent-java-client](sdk/java) | ✅ Stable | Full API support, Maven |
| **Spring Boot** | [flagent-spring-boot-starter](sdk/spring-boot-starter) | ✅ Stable | Auto-configuration, Ktor/Java client |
| **Go** | [flagent-go](sdk/go) | ✅ Stable | Full API support, goroutines |
| **Go Enhanced** | [go-enhanced](sdk/go-enhanced) | ✅ Stable | Client-side eval, real-time updates |
| Language | Package | CI | Status | Features |
|----------|---------|:--:|--------|----------|
| **Kotlin (KMP)** | [kotlin](sdk/kotlin) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Full API, JVM/Android/iOS/JS/Native |
| **Kotlin Enhanced** | [kotlin-enhanced](sdk/kotlin-enhanced) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Client-side eval, real-time, KMP |
| **Kotlin Debug UI** | [kotlin-debug-ui](sdk/kotlin-debug-ui) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Compose Multiplatform debug dashboard, JVM/Android/iOS |
| **flagent-koin** | [flagent-koin](sdk/flagent-koin) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Koin DI module for Flagent, KMP |
| **Kotlin OpenFeature-like** | [kotlin-openfeature](sdk/kotlin-openfeature) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ⚙️ Experimental | OpenFeature-style KMP client backed by Flagent evaluation API |
| **Java** | [java](sdk/java) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Full API support, Maven |
| **Spring Boot** | [spring-boot-starter](sdk/spring-boot-starter) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Auto-configuration, Ktor/Java client |
| **JavaScript/TypeScript** | [javascript](sdk/javascript) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Full API support, async/await |
| **JavaScript Enhanced** | [javascript-enhanced](sdk/javascript-enhanced) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Caching, convenient API |
| **JavaScript Debug UI** | [javascript-debug-ui](sdk/javascript-debug-ui) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | React debug UI for Web |
| **Swift** | [swift](sdk/swift) | [![CI Swift](https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml) | ✅ Stable | Full API support, async/await |
| **Swift Enhanced** | [swift-enhanced](sdk/swift-enhanced) | [![CI Swift](https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml) | ✅ Stable | Caching, convenient API |
| **Swift Debug UI** | [swift-debug-ui](sdk/swift-debug-ui) | [![CI Swift](https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci-swift.yml) | ✅ Stable | SwiftUI debug UI for iOS |
| **Python** | [python](sdk/python) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Full API support, asyncio |
| **Go** | [go](sdk/go) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Full API support, goroutines |
| **Go Enhanced** | [go-enhanced](sdk/go-enhanced) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Client-side eval, real-time updates |
| **Dart** | [dart](sdk/dart) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Full API support, Flutter/iOS/Android/Web |
| **Flutter Enhanced** | [flutter-enhanced](sdk/flutter-enhanced) | [![CI](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/MaxLuxs/Flagent/actions/workflows/ci.yml) | ✅ Stable | Caching, convenient API |

**CI:** Kotlin/Java/JS/Go/Python/Dart SDKs are built (and tested where applicable) in [ci.yml](.github/workflows/ci.yml). Swift SDKs use [ci-swift.yml](.github/workflows/ci-swift.yml). **Coverage:** [Codecov](https://codecov.io/gh/MaxLuxs/Flagent) (backend); per-SDK coverage badges planned.

### Add as dependency (Kotlin/JVM)

Expand Down Expand Up @@ -368,6 +406,12 @@ cd Flagent

See [Deployment Guide](https://maxluxs.github.io/Flagent/guides/deployment.md) for production setup.

## 📌 Repository

**GitHub topics** (set in repo settings): `feature-flags`, `kotlin`, `kotlin-multiplatform`, `ab-testing`, `experimentation`, `launchdarkly-alternative`, `crash-reporting`, `feature-toggle`.

**Releases:** See [Releases](https://github.com/MaxLuxs/Flagent/releases) for versions and release notes. For the next release, see [Contributing](https://maxluxs.github.io/Flagent/guides/contributing.md) or internal release checklist.

## 🤝 Contributing

Fork → branch → change (follow [code style](https://maxluxs.github.io/Flagent/guides/contributing.md)) → add tests → PR. We welcome bug fixes, features from the [roadmap](docs/guides/roadmap.md), docs, and SDKs. See [Contributing Guide](https://maxluxs.github.io/Flagent/guides/contributing.md) and [Development](README.md#development).
Expand Down
Loading
Loading