npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@keyframe-engine/three

v1.0.4

Published

@keyframe-engine/three — Three.js Binding Adapter

Readme

@keyframe-engine/three

npm version License: MIT

@keyframe-engine/three 是 Keyframe Engine 的 Three.js 适配层,采用凭证 Token (AdapterContext) 模型实现无状态、高性能的三维场景矩阵同步。


核心功能

  • Credential Token 模型: 基于 AdapterContext 管理场景注册,支持多 Scene / 多 Mesh 并行独立更新。
  • Zero-Copy Matrix Transfer: 直接将 Keyframe Engine 的 16-float 变换矩阵应用至 THREE.Object3D.matrix,并设置 matrixAutoUpdate = false,绕过 CPU 冗余 TRS 重算。
  • 栅格化语义控制: 支持 rasterized: false 矢量无损更新模式。

安装

pnpm add @keyframe-engine/three three @keyframe-engine/core

快速上手

import * as THREE from "three";
import { Engine, Clip, Instance, Keyframe, TransformBuilder } from "@keyframe-engine/core";
import { threeAdapter } from "@keyframe-engine/three";

const engine = new Engine();
// ... 配置 Keyframe Engine clip 与 instance

const scene = new THREE.Scene();
const mesh = new THREE.Mesh(
  new THREE.BoxGeometry(1, 1, 1),
  new THREE.MeshBasicMaterial({ color: 0x00ff00 })
);
scene.add(mesh);

// 1. 注册场景上下文令牌
const ctx = threeAdapter.registerScene(scene, engine);
ctx.registerObject(mesh, "inst_1"); // 关联 mesh 与 instance id

// 2. 渲染循环中更新场景
function animate(timeMs: number) {
  threeAdapter.applyToScene(ctx, timeMs);
  renderer.render(scene, camera);
  requestAnimationFrame((t) => animate(t));
}
requestAnimationFrame((t) => animate(t));

许可证

MIT