
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
bestax-migrate
Advanced tools
Codemods for migrating existing React apps from other Bulma libraries to @allxsmith/bestax-bulma
Codemods that migrate existing React apps to @allxsmith/bestax-bulma — the actively maintained React component library for Bulma v1.
Currently supported sources:
| Source | Status |
|---|---|
react-bulma-components (v4) | ✅ All 32 components mapped (a few patterns are flagged as TODOs) |
rbx (v2) | ✅ Full export surface mapped (a few patterns are flagged as TODOs) |
bloomer (0.6) | ✅ All 108 exports mapped (Font Awesome 4 icons and Bulma 0.4's Nav are flagged) |
bulma-classes: Bulma's classes on plain JSX, no library | ✅ Converts an element only when bestax renders the same markup; the rest is flagged |
Pass the source as the first argument: bestax-migrate <source> <paths…>.
Node.js 22 or newer. Node 18 and 20 are both past end-of-life. On an older runtime the CLI exits immediately with an explicit upgrade message.
This applies only to the Node version the codemod itself runs on. It places no requirement on the app being migrated — the source is read as text and is never executed.
# Preview what would change (no writes)
pnpm dlx bestax-migrate react-bulma-components src/ --dry
# …or, for an rbx or bloomer app
pnpm dlx bestax-migrate rbx src/ --dry
pnpm dlx bestax-migrate bloomer src/ --dry
# …or, for an app that writes Bulma's classes on plain JSX
pnpm dlx bestax-migrate bulma-classes src/ --dry
# Apply the migration
pnpm dlx bestax-migrate react-bulma-components src/
npm and yarn work too: npx bestax-migrate … / yarn dlx bestax-migrate ….
The codemod uses jscodeshift to:
@allxsmith/bestax-bulma (including destructuring and namespace imports)Form.Textarea → TextArea, Card.Footer.Item → Card.FooterItem, Hero.Footer → Hero.Foot, …) — and, for bloomer, its flat names onto bestax's compounds (CardHeaderTitle → Card.Header.Title)renderAs → as, loading → isLoading, numeric spacing/text sizes → string unions, textAlign="center" → textAlign="centered", …)mobile={{ size: 4 }} → sizeMobile={4}) and bloomer's isDisplay/isHidden strings, arrays and objects (isHidden="touch" → visibilityTouch="hidden")bulma-classes, turn raw Bulma markup into components and props (<a className="button is-primary"> → <Button as="a" color="primary">, <p className="has-text-centered mt-4"> → <Paragraph textAlign="centered" mt="4">), converting an element only when bestax renders exactly the same markupTable.Container, Navbar dropdowns, Form.Help, icon-font children → <Icon name=…>)@allxsmith/bestax-bulma/bestax.css, and SCSS files move from Bulma 0.9's @import + $var !default overrides to @use 'bulma/sass' with (…) plus @use '@allxsmith/bestax-bulma/scss/extras'package.json: remove the source library, add @allxsmith/bestax-bulma, raise a declared pre-1.0 bulma to ^1 (adding it only when your sources import bulma/… directly — otherwise it arrives transitively), and swap the dead node-sass for dart sass (no install is ever run). Migrating rbx is what frees an app from Bulma 0.7.5: rbx pinned it as a direct dependency, so the app could not choose its own Bulma version at all. The four Bulma extensions rbx also pulled in (bulma-badge, bulma-divider, bulma-pageloader, bulma-tooltip) are reported rather than removed — bestax replaces all four, but a manifest entry is a deliberate declaration and your own Sass may import them. A bloomer app declared its own Bulma 0.6, which is what gets bumped. For bulma-classes there is no library to remove, and by default (--css keep) the app's Bulma version, Sass and stylesheet imports all stay: its own Bulma already styles every class a converted element renders. --css bestax or --css bulma moves it to Bulma v1 like the other sourcesAnything without a safe automatic conversion is left in place with a // TODO(bestax-migrate): … comment, and the run ends with a report of every TODO by file and line. TODOs are expected output, not errors — resolve them with the migration guide (react-bulma-components, rbx, bloomer, Bulma classes), or let the bestax-migrate Agent Skill walk them for you:
npx skills add https://github.com/allxsmith/bestax --skill bestax-migrate
| Flag | Description |
|---|---|
--dry, -d | Report what would change without writing files |
--print, -p | Print transformed sources to stdout |
--extensions, -e | File extensions to include (default js,jsx,ts,tsx,scss,sass) |
--css <mode> | Stylesheet target: bestax, bulma, or keep (default bestax; keep for bulma-classes) |
--no-deps | Skip updating package.json dependencies |
package.json but never installs)TODO(bestax-migrate) and resolve each commentFull walkthrough: react-bulma-components migration guide · rbx migration guide · bloomer migration guide · Bulma classes migration guide.
A codemod rewrites your source in place, so how it is built and published matters:
npm audit signatures.NPM_TOKEN exists to be stolen. Release commits and tags are GPG-signed.main.pnpm audit gate.Full detail: SECURITY.md · Security guide
bestax-migrate can send one anonymous usage event after a successful
run — only if you opt in when asked (once, on an interactive terminal). The
event is just the run's shape — source library, CSS mode, the dry/deps flags, a
capped changed-file count, and per-rule TODO counts — plus the CLI version,
Node major version, and OS platform name. Never file paths, file contents,
code, names, IPs, or machine IDs, and no identifier exists that could link two
events together. Opt out any time with --no-telemetry,
BESTAX_TELEMETRY=0, or DO_NOT_TRACK=1.
Full disclosure of every field and control: Telemetry guide
Source code licensed MIT
FAQs
Codemods for migrating existing React apps from other Bulma libraries to @allxsmith/bestax-bulma
The npm package bestax-migrate receives a total of 252 weekly downloads. As such, bestax-migrate popularity was classified as not popular.
We found that bestax-migrate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.