{
 "kind": "tool",
 "slug": "oxfmt",
 "path": "tools/oxfmt/",
 "name": "oxfmt",
 "maker": null,
 "density": "profile",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Linting and formatting",
   "tools/lint-format/"
  ]
 ],
 "lead": "Fast JavaScript formatter from the Oxc compiler project.",
 "chips": [
  {
   "label": "Linting and formatting",
   "path": "tools/lint-format/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install oxfmt"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/oxc-project/oxc"
  },
  {
   "label": "Website",
   "href": "https://oxc.rs/docs/guide/usage/formatter"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/oxc-project/oxc"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 23, 2026. ",
   "src": "https://github.com/oxc-project/oxc"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "168 projects",
   "status": "info",
   "sub": "#5 of 83 in its category",
   "note": "Dependency in 168 public GitHub projects set up for AI coding agents that we scanned (2.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Docs for agents",
   "status": "yes",
   "sub": "llms.txt",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": "https://oxc.rs/llms.txt"
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What oxfmt does",
   "parts": [
    {
     "t": "prose",
     "text": "Oxfmt is the Oxc project's Rust formatter. Its maintainers say it passes 100% of Prettier's JavaScript and TypeScript conformance tests, and it builds in Tailwind class sorting, import sorting and package.json field sorting."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "oxfmt popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "80",
       "of": "/ 100",
       "l": "Gid Score, #108 overall"
      },
      {
       "n": "33.1M",
       "l": "downloads a week, npm"
      },
      {
       "n": "23.6K",
       "l": "GitHub stars"
      },
      {
       "n": "168",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How oxfmt is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "oxfmt is a dependency in 168 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (3.5% of the 4,867 JavaScript/TypeScript ones), #5 of 83 in linting and formatting.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 287; those are left out of every share on this page.",
      "The most used alternative in our scan is Prettier (1,320 projects).",
      "Projects that use it most often also use oxlint (92.9%), oxlint-tsgolint (44.6%), Vitest (56.5%).",
      "It is more common in projects set up for OpenClaw (10.5%) than for Devin Desktop (1.8%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "142 projects, 4.3%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "68 projects, 2.2%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "58 projects, 2.4%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "35 projects, 10.5%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "29 projects, 6.2%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "26 projects, 7.6%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "26 projects, 5.5%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "5 projects, 1.8%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 92.9% of its projects",
       "v": "oxlint",
       "path": "tools/oxlint/"
      },
      {
       "l": "In 44.6% of its projects",
       "v": "oxlint-tsgolint",
       "path": "tools/oxlint-tsgolint/"
      },
      {
       "l": "In 56.5% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 90.5% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 51.8% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 38.7% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 23.8% of its projects",
       "v": "chalk",
       "path": "tools/chalk/"
      },
      {
       "l": "In 23.8% of its projects",
       "v": "yaml",
       "path": "tools/yaml/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "oxfmt in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Passes Prettier's JS/TS conformance tests",
       "v": "The maintainers say Oxfmt passes 100% of Prettier's JavaScript and TypeScript conformance tests. They write that you can migrate \"with confidence that your code will be formatted identically.\" They report the few remaining inconsistencies to the Prettier team."
      },
      {
       "l": "Covers far more than JS and TS",
       "v": "The beta lists JSON variants, YAML, TOML, HTML, Vue, Angular, CSS, SCSS, Less, Markdown, MDX, GraphQL, Ember and Handlebars. It also formats CSS-in-JS and Angular templates embedded in template literals."
      },
      {
       "l": "Tailwind class sorting is built in",
       "v": "The beta post says the functionality of <code>prettier-plugin-tailwindcss</code> is built in, for both JS/TS and other files. Import sorting is built in too, with options such as <code>ignoreCase</code>, <code>sortSideEffects</code> and <code>newlinesBetween</code>."
      },
      {
       "l": "Config migration from Prettier or Biome",
       "v": "<code>oxfmt --migrate prettier</code> and <code>oxfmt --migrate biome</code> convert an existing config. The blog chains install, migrate and reformat into one command."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Still beta",
       "v": "The project announced Oxfmt as beta, and the website still labels it that way. The roadmap to a stable release lists stability and performance work."
      },
      {
       "l": "Prettier plugins were on the roadmap",
       "v": "As of the beta announcement, Prettier plugin support was listed as roadmap work toward stable, along with better xxx-in-js formatting. Check its current status if you rely on a Prettier plugin."
      },
      {
       "l": "Some plugin behavior is lost",
       "v": "Ching writes that Oxfmt replaces Prettier's native rules but that some plugins need trade-offs. In Ching's case, that meant dropping Pangu spacing formatting for Markdown for now."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Migrate from Prettier in one command"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Sh",
       "code": "pnpm add -D oxfmt && pnpm oxfmt --migrate prettier && pnpm oxfmt"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about oxfmt",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Open Collective: https://opencollective.com/oxc",
        "GitHub Sponsors: https://github.com/sponsors/oxc-project",
        "5 GitHub sponsors"
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "oxlint: Oxc's linter, same project",
        "oxlint-tsgolint: Type-aware lint add-on for Oxlint",
        "vitest: Test runner",
        "typescript: Type checker and compiler",
        "zod: Schema validation",
        "dotenv: Env file loader"
       ]
      },
      {
       "title": "More in Linting and formatting",
       "path": "tools/lint-format/",
       "items": [
        {
         "text": "ESLint",
         "path": "tools/eslint/"
        },
        {
         "text": "oxlint",
         "path": "tools/oxlint/"
        },
        {
         "text": "Knip",
         "path": "tools/knip/"
        },
        {
         "text": "stylelint",
         "path": "tools/stylelint/"
        },
        {
         "text": "ESLint Import Resolver TypeScript",
         "path": "tools/eslint-import-resolver-typescript/"
        },
        {
         "text": "oxlint-tsgolint",
         "path": "tools/oxlint-tsgolint/"
        },
        {
         "text": "Black",
         "path": "tools/black/"
        },
        {
         "text": "svelte-check",
         "path": "tools/svelte-check/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "oxfmt",
       "me": true,
       "facts": [
        "MIT",
        "Gid 80",
        "33.1M/wk"
       ]
      },
      {
       "name": "Prettier",
       "why": "Opinionated code formatter for JavaScript, TypeScript, and related languages.",
       "path": "tools/prettier/",
       "facts": [
        "MIT",
        "Gid 90",
        "197M/wk"
       ]
      },
      {
       "name": "Biome",
       "why": "Fast web toolchain providing linting, formatting and code quality all in one.",
       "path": "tools/biomejs/",
       "facts": [
        "MIT OR Apache-2.0",
        "Gid 82",
        "30.3M/wk"
       ]
      }
     ],
     "more": "Compare oxfmt with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install oxfmt"
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## oxfmt\n- Install as a dev dependency (`pnpm add -D oxfmt`). Add `\"fmt\": \"oxfmt\"` and `\"fmt:check\": \"oxfmt --check\"` scripts.\n- In CI, run `oxfmt --check`, not the write mode.\n- In lint-staged, use `oxfmt --no-error-on-unmatched-pattern`.\n- When replacing Prettier or Biome, run `oxfmt --migrate prettier` or `oxfmt --migrate biome` first. Then reformat with `oxfmt` and uninstall the old packages.\n- Do not add `prettier-plugin-tailwindcss`: Tailwind class sorting is built in.\n- For a typed config, use `oxfmt.config.ts` with `defineConfig` from `oxfmt`. `oxfmt .` discovers it automatically, so no config path flag is needed.\n- After migrating, update CONTRIBUTING.md, AGENTS.md or CLAUDE.md if they still mention prettier.\n"
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm oxfmt"
  ],
  [
   "Category",
   "Linting and formatting"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "oxlint_v1.93.0, November 9, 2026"
  ],
  [
   "On GitHub since",
   "February 2023"
  ],
  [
   "Gid Score",
   "79.6"
  ],
  [
   "Rank in category",
   "#5 of 83"
  ],
  [
   "GitHub",
   "oxc-project/oxc"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [
  "Used by openclaw/openclaw, vuejs/core, vercel/turborepo, huggingface/huggingface.js, as listed by the source; we have not checked each one."
 ],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/oxc-project.png"
}