nathanvda/cocoon
Dynamic nested forms using jQuery made easy; works with formtastic, simple_form or default forms observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5684
- days_rel: n/a
- days_push: 1121
- n_releases_24m: 0
Adoption not part of the score
3072 stars · 376 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Ruby gem for Ruby on Rails that simplifies building dynamic nested forms, allowing users to add and remove nested model fields (e.g., tasks within a project) via jQuery. It is form builder-agnostic and works with standard Rails forms, Formtastic, and SimpleForm.
Use cases
- add nested form fields dynamically in rails
- invoice with line items form rails
- project with tasks nested attributes form
- add and remove nested model fields with jquery
- nested forms with simple_form or formtastic
- accepts_nested_attributes_for dynamic form
When to choose
- You have a Rails app already using jQuery and need dynamic nested forms
- You use Formtastic or SimpleForm and want builder-agnostic nested form support
- You need add/remove links for nested models like line items or tasks
When to avoid
- You use a modern JavaScript framework like React or Vue for forms
- You want a jQuery-free solution (vanilla alternatives exist on npm)
- You are starting a new Rails 7+ project without jQuery
Facets
library · maturity maintenance
form-handling ui-components web-development frontend ruby browser rails nested-forms jquery formtastic simple-form ruby-gem web-server
2 sources
- readme: https://github.com/nathanvda/cocoon · fetched 2026-08-28 · 725a4a372f1c
- homepage: http://github.com/nathanvda/cocoon · fetched 2026-08-29 · b66b291add56
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nathanvda/cocoon | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="nathanvda/cocoon")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem