@dinilmusick/gutts

中文文档
2.0.3发布于 2026/11/09MITTypeScriptES Module构建来源已验证近 30 天下载 9064

Global Utilities for TypeScript applications.

原始使用文档
文档目录4 节
  1. Structure
  2. Model libraries
  3. Library policy
  4. Design rules

GutTS

Gut stands for Global Utilities. Gut is the aggregate library for the very basic functions and operations needed by KrnlTS services, FrnlTS components, Skipo applications, and other code assets. Its purpose is to prevent multiple libraries from solving the same foundational problems.

Structure

Each category is a directory with a stable facade. GutTS contains both deterministic utilities and narrowly scoped model-backed libraries.

Current categories: JSON, strings, arrays, objects, numbers, URLs, API definitions, and model libraries.

Model libraries

Every model is a named library with its own metadata, semantic API definitions, and runtime lifecycle.

Models include SmolLM2-135M-Instruct for general text generation, Needle 3 for tool selection and extraction, Whistle for speech-to-text, Ettin Reranker for candidate ranking, and MiniLM for semantic similarity.

Model weights are not bundled into the GutTS npm package. A model runtime acquires them when an operation needs the model and may cache the artifact on disk. ModelResidency keeps the model in RAM only while operations are active, shares one loaded instance for concurrent calls in the same process, and unloads it when the final operation completes.

GutTS does not contain a resolver, intelligence specification, or application-level routing system. Model metadata describes when a model is appropriate; selecting among models remains the responsibility of higher-level application logic.

Library policy

GutTS is an aggregation layer, not a collection of reimplemented utility algorithms.

  • Prefer mature, widely adopted, well-maintained libraries when they provide the required primitive.
  • Keep wrappers small and stable.
  • Keep application/domain-specific behavior out of GutTS.
  • Model runtimes are adapters: model artifacts and execution engines remain replaceable without changing the named model API.

Design rules

  • Prefer small, composable functions.
  • Keep category facades stable.
  • Keep shared types beside the category that owns them.
  • Add regression tests for every public utility family and model lifecycle guarantee.

版本与发布记录

@dinilmusick/gutts 共发布 22 个版本,首次发布于 2026/10/20;过去 12 个月发布了 22 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.0.3latest2026/11/092 天前
2.0.22026/11/093 天前
2.0.12026/11/093 天前
2.0.02026/11/093 天前
1.6.02026/11/075 天前
1.5.12026/11/066 天前

关于 @dinilmusick/gutts 的常见问题

@dinilmusick/gutts 是什么?

Global Utilities for TypeScript applications.

如何安装 @dinilmusick/gutts?

在项目目录运行 npm install @dinilmusick/gutts,或使用 pnpm add / yarn add / bun add。

@dinilmusick/gutts 支持 TypeScript 吗?

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

@dinilmusick/gutts 支持 ESM 还是 CommonJS?

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

@dinilmusick/gutts 可以商用吗?

@dinilmusick/gutts 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@dinilmusick/gutts 的下载量有多少?

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

@dinilmusick/gutts 还在维护吗?

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