# cococry/leif

Minimal, configurable & GPU accelerated Immediate Mode UI Library written with modern OpenGL

Repository: https://github.com/cococry/leif
Canonical: https://ross.abutalabs.com/products/leif
Language: C
License Family: other
Topics: gui, imgui, minimal, opengl, modern
Last push: 2024-11-17T20:16:20+00:00

## Health v2 (maintenance only)
Score: 29/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 85
- inputs: {"age_days": 1201, "days_push": 654, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1042, forks 46 (observed 2026-08-28T04:03:20.739293+00:00)

## What it is
Leif is a minimal, configurable, GPU-accelerated immediate mode UI library written in C with modern OpenGL. It includes a fast in-house batch renderer with an exposed drawing API, full theming/styling support, exposed UI state, and a complete input-handling subsystem.

## Use cases
- build immediate mode GUIs in C or C++
- render debug tooling and editor overlays with OpenGL
- create custom UI components on top of an exposed renderer and state
- add styled, themeable interfaces to desktop applications
- use a GPU-accelerated batch renderer for non-UI drawing tasks
- handle keyboard and mouse input in a windowed app

## When to choose
- you want a lightweight, minimal immediate mode UI in C/C++ with modern OpenGL
- you need full control over rendering and UI state to build custom widgets
- you want easy theming and styling of every visible UI element
- your project already uses GLFW or a replaceable windowing backend

## When to avoid
- you need a retained-mode or native platform UI toolkit
- you require a mature license-guaranteed library for commercial use (no license is specified)
- you need mobile, web, or non-OpenGL rendering backends
- you want a batteries-included framework with extensive prebuilt widgets and documentation

## Facets
- artifact type: library
- maturity: active
- function: ui-components, graphics, gui
- domain: graphics, desktop-applications, developer-tools
- platform: cpp, c, windows, cross-platform
- tags: immediate-mode-ui, opengl, imgui, gpu-accelerated, glfw, theming, batch-renderer, game-development, linux, macos, desktop

## Member repositories
- cococry/leif (main) score 29

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:20.739293+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:02:37.145482+00:00, confidence not recorded.
  - readme: https://github.com/cococry/leif (fetched 2026-08-28T04:03:20.739293+00:00, sha 6b74ec03097e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
