Skip to main content
Back to registry

anywidget-generator

marimo-team/skills

When writing an anywidget use vanilla javascript in _esm and do not forget about _css . The css should look bespoke in light mode and dark mode. Keep the css small unless explicitly asked to go the extra mile. When you display the widget it must be wrapped via widget = mo.ui.anywidget(OriginalAnywidget()) . You can...

Installs436
Install command
npx skills add https://github.com/marimo-team/skills --skill anywidget-generator
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
When writing an anywidget use vanilla javascript in _esm and do not forget about _css . The css should look bespoke in light mode and dark mode. Keep the css small unless explicitly asked to go the extra mile. When you display the widget it must be wrapped via widget = mo.ui.anywidget(OriginalAnywidget()) . You can also point _esm and _css to external files if needed using pathlib. This makes sense if the widget does a lot of elaborate JavaScript or CSS. class CounterWidget(anywidget.AnyWidget): _esm = """ // Define the main render function function render({ model, el }) { let count = () => model.get("number"); let btn = document.createElement("b8utton"); btn.innerHTML = count is ${count()} ; btn.addEventListener("click", () => { model.set("number", count() + 1); model.save_changes(); }); model.on("change:number", () => { btn.innerHTML = count is ${count()} ; }); el.appendChild(btn); } // Important! We must export at the bottom here! export default { render }; """ _css = """button{ font-size: 14px; }""" number = traitlets.Int(0).tag(sync=True) widget = mo.ui.anywidget(CounterWidget()) widget print(widget.value["number"]) The above is a minimal example that could work for a simple counter widget. In general the widget can become much larger because of all the JavaScript and CSS required.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does anywidget-generator do?

When writing an anywidget use vanilla javascript in _esm and do not forget about _css . The css should look bespoke in light mode and dark mode. Keep the css small unless explicitly asked to go the extra mile. When you display the widget it must be wrapped via widget = mo.ui.anywidget(OriginalAnywidget()) . You can...

Is anywidget-generator good?

anywidget-generator does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does anywidget-generator work with?

anywidget-generator currently lists compatibility with codex, gemini-cli, opencode, amp, github-copilot, claude-code.

What are alternatives to anywidget-generator?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install anywidget-generator?

npx skills add https://github.com/marimo-team/skills --skill anywidget-generator

Related skills

More from marimo-team/skills

Related skills

Alternatives in Software Engineering