Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

widgets

Skill by s2b-dev

Widgets builds interactive dashboards, charts, plots, tables and trackers as self-contained HTML. They render live in the chat and can be saved to the vault as a note or a .widget file. It is for users who want to visualize or overview vault data.

  • Score 80
  • 1.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install widgets

Built from the published package, never by AI.

git clone --depth 1 https://github.com/s2b-dev/smart-second-brain /tmp/smart-second-brain && mkdir -p ~/.claude/skills && cp -r /tmp/smart-second-brain/src/skills/defaults/widgets ~/.claude/skills/widgets

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install widgets in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Widgets is a skill that teaches an AI assistant to write an s2b-widget code fence in its reply. The fence holds an HTML fragment with markup, style and script, which renders in a sandboxed frame inside the chat. An optional frontmatter block sets a title, description, icon, height, bundled libraries and named Dataview queries that the host keeps live as the vault changes.

The skill covers the widget format, the data bridge (s2b.onData, s2b.openNote, s2b.refresh) and the rules for the frame. Charts can use Plotly, with 2D and 3D trace types. Widgets can be saved as standalone .widget files and embedded in notes, and existing widget files can be edited with a reviewed proposal. It is for users who want quick visual summaries of their notes.

Written from the project's SKILL.md and checked against it.

What it can do

  • Interactive widget fencesWrites a self-contained HTML widget as an s2b-widget code fence that renders in the chat.
  • Live Dataview queriesDeclares named DQL queries that the host runs and keeps up to date as the vault changes.
  • Plotly chartsDraws 2D and 3D charts with Plotly, including scatter, bar, pie, surface and mesh3d traces.
  • Saved widget filesStages a .widget file in a folder when the user asks to save or file the widget.
  • Widget editsReads an existing widget file and proposes a targeted or full rewrite for the user to review.
  • Inlined data fallbackBuilds the widget from data gathered with other tools when Dataview is disabled or not installed.
  • Theme-aware stylingUses Obsidian CSS variables so widgets match the theme in light and dark mode.
  • Lucide iconsSets a widget icon from the Lucide icon set that matches the widget's subject.

What you need

  • Obsidian vault
  • Dataview plugin enabled for DQL queries

Try asking

  • Build a dashboard of my recently modified notes.
  • Plot my reading log as a bar chart from my vault data.
  • Make a 3D surface plot of z = sin(x) cos(y) as a widget.

Good to know

  • Queries only work when the Dataview plugin is enabled.
  • The widget frame has no network access and cannot navigate.
  • Histogram, heatmap, contour and box plots are not available in this build.
  • alert, prompt and popups are blocked.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: src/skills/defaults/widgets/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to widgets

All alternatives →
kaggle-cliKaggle
94

Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.

AAA Skill 7.7k
bigquery-bigframesgoogle
94

Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.

AAA Skill 25k
data-loadingmicrosoft
94

Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.

AAA Skill 18k
data-manager-api-setupgoogle
94

Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.

AAA Skill 25k
managed-airflow-dag-authoringgoogle
94

Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.

AAA Skill 25k
data-feedsdavila7
94

Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.

AAA Skill 34k

Compare with kaggle-cli, bigquery-bigframes or data-loading

widgets: common questions

Can a widget load external scripts or fonts?

No. The source says the frame has no network access, so no CDN scripts, external fonts, images or fetch calls. Libraries come only from the libs setting.

How do I save a widget?

The user can copy the widget as a block into a note or save it as a standalone .widget file from the toolbar above it. The assistant writes a file only when the user asks for it.

Does a widget update when my notes change?

Yes, when it uses Dataview queries. The source says the host runs the queries again on every vault change, so the render runs again.

How do I install widgets?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is widgets free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is widgets safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to widgets?

Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.

widgets Install

Add to stack

Loading.