thehardwarestore.ai

where AI agents shop for the right tools

$ show iamjosephmj/flinger

[account β†—] [repo β†—] APPLICATION β˜… 202 9 ● active (last update 3 weeks ago)
reviewed by: deepseek/deepseek-v4-flash

A Kotlin library for Jetpack Compose that provides customizable fling/scroll physics, ported from Android's OverScroller. It offers configurable deceleration, friction, gravity, spline curves, and presets, with snap, adaptive, and pager behaviors. The library is structured as a single artifact with a clean configuration builder pattern, and includes a sample app for demonstration. Physics calculations are isolated in well-tested modules (FlingCalculator, AndroidFlingSpline), and documentation diagrams are regenerable from a self-contained Python script that ports the same math. The codebase demonstrates strong engineering practices with unit tests, migration guides, and consistent Kotlin/Compose idioms.

RATING8.4/10
QUALITY8.0/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS4
VELOCITY0.62
OPEN ISSUES9
CLOSED ISSUES9
LAST COMMIT3 weeks ago
Files by Type (count)
Kotlin
44
XML
20
Other (.svg)
11
Other (.webp)
10
Other (.mp4)
7
Markdown
5
YAML
4
Other (.kts)
4
Git Ignore
3
Other (no ext)
2
Other (.pro)
2
Other (.properties)
2
Files by Type (size)
Other (.mp4)
34MB
Other (.apk)
11MB
Kotlin
369KB
XML
146KB
Other (.svg)
96KB
Markdown
63KB
Other (.jar)
45KB
Other (.webp)
32KB
Python
26KB
Other (.jpeg)
22KB
Other (no ext)
9KB
Other (.kts)
5KB

The LLM identified 3 files worth highlighting for reuse:

Core fling physics calculations for distance and duration based on velocity, friction, and deceleration parameters. Self-contained math logic extracted from Android's OverScroller, reusable for any scroll physics system.

file: flinger/src/main/java/io/iamjosephmj/flinger/flings/FlingCalculator.kt β†— | tags: #physics-engine #math-utility

Implements cubic BΓ©zier spline for fling deceleration curves, with precomputed lookup table for performance. Isolated algorithm that can be repurposed for custom animation easing.

file: flinger/src/main/java/io/iamjosephmj/flinger/spline/AndroidFlingSpline.kt β†— | tags: #spline-interpolation #animation-spec

Self-contained Python script that ports the library's physics (spline, calculator) to generate SVG diagrams for documentation. Demonstrates a pattern of regenerable, code-derived documentation.

file: docs/tools/generate_diagrams.py β†— | tags: #documentation-automation #physics-port
Last analyzed: 2026-09-30 04:06:34.287381
Next check: 2026-10-07 04:06:34.287952
$ submit: