@getnori/studio

中文文档
0.4.1发布于 2026/11/13Apache-2.0TypeScriptESM + CJS近 30 天下载 2390

Nori Studio: creators upload images and videos as reels (images become 5-second AI videos), admins review them and set loyalty points.

原始使用文档

@getnori/studio

Nori Studio: a tab where your users create reels and your admins review them.

  • Creators (any signed-in user) upload a short video, or a photo that Nori turns into a 5-second AI video (labelled "AI-generated" in the feed). They see each reel's status, the review note if it was rejected, and the points they've earned from it.
  • Admins review reels, set the loyalty points each rewarded view earns the viewer and the creator, reject with a reason, regenerate an AI video with a new motion prompt, and pause or re-activate live reels.
  • Each creator can add 2 reels per day (settings.studio.daily_upload_limit).
npm install @getnori/core @getnori/studio react-native-video
import * as ImagePicker from "expo-image-picker";
import { NoriStudio } from "@getnori/studio";

const pickMedia = async () => {
  const result = await ImagePicker.launchImageLibraryAsync({ mediaTypes: ["images", "videos"] });
  if (result.canceled) return null;
  const asset = result.assets[0];
  return { uri: asset.uri, mimeType: asset.mimeType ?? (asset.type === "video" ? "video/mp4" : "image/jpeg"), name: asset.fileName };
};

<NoriStudio client={nori} pickMedia={pickMedia} />;

Nori doesn't bundle a media picker: pickMedia lets you use the one your app already has. Files: JPG, PNG or WebP images, MP4 or MOV videos, up to 10 MB.

Admins

Make users admins from your backend with your secret key (PUT /v1/admins/{your user id}), or from Studio by an existing admin (client.studio.addAdmin(userId)). Nori support can act on any tenant.

Admins also get two more tabs:

  • Review: approve, reject, pause or regenerate reels. Edit details on a reel changes its title, text, tags and place in the feed. Moving a reel from Tour to Menu is switching those two tags.
  • Collections: the groups your viewers pick above the reels. Every business names its own (a restaurant: Menu and Tour; a salon: Styles; a gym: Equipment and Classes). Add, rename, reorder or remove them; removing one leaves the tags on the reels. They reach the reels view (@getnori/feed) with no change in your app.

Rewards

When a viewer's view of a Studio reel is rewarded, the viewer earns the reel's viewer points and the creator earns its creator points. Both arrive on your reward webhook (kind: "viewer" / "creator", external_user_id = who to credit). Use <PointsBadge show="creator" /> from @getnori/rewards to show creators what they've earned.

Building your own UI? useStudioMe, useCreateReel, useMyReels and useReviewQueue, useCollections, or client.studio.* from @getnori/core.

版本与发布记录

@getnori/studio 共发布 12 个版本,首次发布于 2026/10/22;过去 12 个月发布了 12 个版本。

版本发布日期距今
0.4.1latest2026/11/133 天前
0.4.02026/11/133 天前
0.3.22026/11/133 天前
0.3.12026/11/115 天前
0.3.02026/11/115 天前
0.2.32026/11/097 天前

关于 @getnori/studio 的常见问题

@getnori/studio 是什么?

Nori Studio: creators upload images and videos as reels (images become 5-second AI videos), admins review them and set loyalty points.

如何安装 @getnori/studio?

在项目目录运行 npm install @getnori/studio,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=18)、react-native(>=0.74)、react-native-video(>=6.0.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@getnori/studio 支持 TypeScript 吗?

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

@getnori/studio 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@getnori/studio 可以商用吗?

@getnori/studio 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@getnori/studio 的下载量有多少?

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

@getnori/studio 还在维护吗?

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