@better-auth-ui/locales

中文文档
1.7.33发布于 2026/11/04TypeScriptES Module零依赖构建来源已验证近 30 天下载 1.4万

Authentication components and data utilities for Better Auth, available for React and Solid.

原始使用文档
文档目录14 节
  1. Features
  2. Preview
  3. shadcn/ui
  4. HeroUI
  5. Quick start
  6. shadcn/ui
  7. HeroUI
  8. Zaidan Solid
  9. Package reference
  10. Agent skills
  11. Development
  12. Community
  13. License
  14. Contributing and support

Better Auth UI

Authentication components and data utilities for Better Auth, available for React and Solid.

Documentation · Demo · Discord

Better Auth UI provides complete authentication flows, account settings, plugin integrations, and reusable data APIs. Choose the UI that fits your application:

  • shadcn/ui provides React components that you copy into your project.
  • HeroUI provides packaged React components built with HeroUI v3.
  • Zaidan Solid provides Solid components that you copy into your project.
  • React and Solid packages provide hooks, queries, mutations, and server helpers for custom interfaces.

Features

  • Sign-in, sign-up, email verification, and password recovery flows
  • User profiles, account settings, session management, and security controls
  • Integrations for Better Auth plugins such as organizations, passkeys, two-factor authentication, magic links, and API keys
  • Query and mutation APIs for React and Solid
  • Server-rendering helpers and customizable email templates
  • Light and dark themes with full control over copied component code

Preview

shadcn/ui

Better Auth UI sign-in form built with shadcn/ui

HeroUI

Better Auth UI sign-in form built with HeroUI

Quick start

Install Better Auth. Then configure it for your application before you add a UI package.

shadcn/ui

Add the authentication components to an existing shadcn/ui project:

bunx --bun shadcn@latest add @better-auth-ui/auth

Read the shadcn/ui quick start for framework setup and optional components.

HeroUI

Install the HeroUI package and its Better Auth UI dependencies:

bun add @better-auth-ui/heroui@latest @better-auth-ui/react@latest @better-auth-ui/core@latest

Import the component styles in your global CSS file:

@import "@better-auth-ui/heroui/styles";

Read the HeroUI quick start for provider and framework setup.

Zaidan Solid

Install the Solid data layer and its runtime dependencies:

bun add @better-auth-ui/solid @tanstack/solid-query better-auth solid-js

Then add the authentication components from the Solid registry:

bunx --bun shadcn@latest add https://better-auth-ui.com/r/solid/auth.json

Read the Zaidan Solid quick start for TanStack Start setup and optional components.

Package reference

PackagePurpose
@better-auth-ui/coreShared query options, server helpers, types, and framework-independent utilities
@better-auth-ui/reactReact providers, hooks, queries, mutations, and plugin APIs
@better-auth-ui/herouiReady-to-use React components built with HeroUI
@better-auth-ui/solidSolid providers, hooks, queries, mutations, and plugin APIs
@better-auth-ui/localesLocale bundles, language matching helpers, and the localization skill

See the React reference or Solid reference when you need lower-level APIs.

Agent skills

Better Auth UI publishes the same agent skills through TanStack Intent and skills.sh.

For GitHub installation, select the skill for your application:

bunx skills@latest add better-auth-ui/better-auth-ui --full-depth --skill better-auth-ui-react

Skills cover React/shadcn, Solid/Zaidan, HeroUI, core data APIs, and localization. TanStack Intent loads them from installed npm packages.

Read the agent skills guide for both installation paths and their version behavior.

Development

This repository uses Bun and Nx.

Install the workspace dependencies:

bun install

Start the development projects:

bun run dev

Run the main workspace tasks:

bun run build
bun run test

Community

Join the Better Auth UI Discord to ask questions, share feedback, and connect with contributors.

License

Better Auth UI is available under the MIT License.

Contributing and support

Read the contribution guide for development and review. Use the support guide for questions and issue routing.

版本与发布记录

@better-auth-ui/locales 共发布 24 个版本,首次发布于 2026/08/23;过去 12 个月发布了 24 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.7.33latest2026/11/044 天前
1.7.322026/10/2613 天前
1.7.312026/10/2415 天前
1.7.302026/10/1127 天前
1.7.292026/10/1128 天前
1.7.282026/10/1128 天前

关于 @better-auth-ui/locales 的常见问题

@better-auth-ui/locales 是什么?

Authentication components and data utilities for Better Auth, available for React and Solid.

如何安装 @better-auth-ui/locales?

在项目目录运行 npm install @better-auth-ui/locales,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@better-auth-ui/core(*)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@better-auth-ui/locales 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@better-auth-ui/locales 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@better-auth-ui/locales 可以商用吗?

@better-auth-ui/locales 使用 未声明 许可。package.json 没有声明许可证。没有许可证的代码默认保留全部权利,商用前请联系作者或查看仓库中的 LICENSE 文件。以上为概括,不构成法律意见,请以许可原文为准。

@better-auth-ui/locales 的下载量有多少?

根据 npm 官方下载统计,@better-auth-ui/locales 在 2026/10/08 – 2026/11/06 这 30 天内被下载 14,060 次,日均约 469 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@better-auth-ui/locales 还在维护吗?

最新版本 1.7.33 发布于 2026/11/04(4 天前);至今共发布 24 个版本,其中过去 12 个月发布了 24 个;首次发布于 2026/08/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。