npm

jotai

👻 Primitive and flexible state management for React

版本 4已同步 4文件 155 SRI 已生成
接入决策台 · 安全可信状态

先确认可用入口,再复制固定版本地址

入口文件、安全评分、扫描覆盖和风险项已合并到首屏,适合上线前快速判断能不能直接接入。

推荐接入
安全分
100
最近扫描 2026-09-08
扫描覆盖
100%
155 / 155 文件
高危文件
0
0 条 critical
待复核
0
外联、混淆、敏感行为
推荐入口
Script
SRI 已就绪
SRI 缺失 0
当前版本 3.0.0
33 文件
33 JS / 0 CSS / 0 WASM
未发现阻断级风险
jotai/3.0.0/dist/index.js
https://cdn.ptab.cn/cdn/jotai/3.0.0/dist/index.js
当前版本 33 个文件,1 个入口候选。未发现可疑外联域名。
生成接入代码
使用路径
01确认版本

固定到 3.0.0,避免线上被隐式升级。

02复制地址

优先使用推荐入口,特殊场景再切换文件。

03检测可用

发布前检测 HTTP、CORS、SRI 和响应速度。

查看全部文件

快速接入

已按当前文件列表自动选择一个更适合浏览器接入的入口文件。完整用法可在下方生成器中切换文件。

<script src="https://cdn.ptab.cn/cdn/jotai/3.0.0/dist/index.js" integrity="sha256-qHoc9Gkbh8OjbbeUTs+/SNtwy9dE49n5GncWSi1L4gU=" crossorigin="anonymous"></script>
4版本
155文件
3.0.0最新

CDN 地址生成器

选择文件后直接复制 URL、Script、Module、CSS 或 WASM 示例。建议复制前先检测一次文件可用性。

文件类型
JS
文件大小
58 B
SRI
已生成
CDN URL
适合放到构建配置、动态加载或手动拼接标签。
https://cdn.ptab.cn/cdn/jotai/3.0.0/dist/index.js
普通 Script
适合传统 HTML 页面和 UMD/global 构建。
<script src="https://cdn.ptab.cn/cdn/jotai/3.0.0/dist/index.js" integrity="sha256-qHoc9Gkbh8OjbbeUTs+/SNtwy9dE49n5GncWSi1L4gU=" crossorigin="anonymous"></script>
ES Module
适合浏览器原生 module 文件,使用前建议确认该文件支持 ESM。
<script type="module">
  import * as lib from "https://cdn.ptab.cn/cdn/jotai/3.0.0/dist/index.js";
  console.log("module loaded", lib);
</script>

版本与文件

当前版本 3.0.0,展示 33 / 33 个文件。
jotai/3.0.0/dist/index.js
JS
58 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react.js
JS
358 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/continuablePromise.js
JS
1.9 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/Provider.js
JS
904 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/useAtom.js
JS
325 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/useAtomValue.js
JS
1.2 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/useAtomValueRaw.js
JS
1.0 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/useAtomValueRawSync.js
JS
741 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/useSetAtom.js
JS
559 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/utils.js
JS
254 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/utils/useAtomCallback.js
JS
338 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/utils/useHydrateAtoms.js
JS
692 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/utils/useReducerAtom.js
JS
615 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/react/utils/useResetAtom.js
JS
333 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/utils.js
JS
70 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla.js
JS
140 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/atom.js
JS
774 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/internals.js
JS
33.2 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/store.js
JS
980 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/typeUtils.js
JS
11 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils.js
JS
768 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/atomWithDefault.js
JS
749 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/atomWithLazy.js
JS
259 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/atomWithObservable.js
JS
3.6 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/atomWithReducer.js
JS
215 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/atomWithRefresh.js
JS
665 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/atomWithReset.js
JS
398 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/atomWithStorage.js
JS
4.4 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/constants.js
JS
83 B
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/freezeAtom.js
JS
1.3 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/selectAtom.js
JS
1.1 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/splitAtom.js
JS
6.5 KB
SRI ready
未分级
0 请求
jotai/3.0.0/dist/vanilla/utils/unwrap.js
JS
3.2 KB
SRI ready
未分级
0 请求

库评论

还没有评论。可以反馈这个库的接入体验、版本建议或兼容性问题。
发表评论

免登录提交。需要填写昵称和邮箱,并完成 TAC 行为验证;内容会自动审核,违规内容不会发布。