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

@icjhd/cj-script-runtime

v2.0.0

Published

技能脚本二进制读取、校验与反汇编运行时

Readme

@icjhd/cj-script-runtime

技能脚本二进制运行时核心。

当前第一轮包含:

  • EFPB Header / Section Directory 读取
  • STR0 / PRG0 / ENT0 / ACT0 / COD0 section 解析
  • CRC32 校验
  • 最小 CALL_OP / CALL_GROUP action slot / RETURN 指令校验
  • 反汇编和 inspect 摘要

该包不包含脚本 Parser、TypeScript 编译器、evalnew Function

2026-06-25 P3 minimal Expression VM update

  • XPR0 now stores expression program metadata and XCD0 stores 16-byte expression instructions.
  • Added FXC0-backed PUSH_FX_CONST + RETURN_FX evaluation for chance expressions.
  • Added fixed-stack evalFxExpression / evalBoolExpression runtime helpers.

2026-06-25 P3 context Expression VM update

  • Added LOAD_CONTEXT_FX expression opcode for caster / target / const FX reads.
  • evalFxExpression / evalBoolExpression now accept an optional host callback for context values.
  • Expressions containing context reads are kept dynamic and are not folded into constantFxScaled.

2026-06-25 P3 formula function opcode update

  • Added MIN_FX, MAX_FX, and CLAMP_FX expression opcodes.
  • Runtime validation checks fixed-stack input types for binary and ternary FX function opcodes.
  • Runtime evaluation mirrors cj-formula-fx stack order for clamp(x, lo, hi).

2026-06-25 P3 rounding function opcode update

  • Added MOD_FX, ABS_FX, FLOOR_FX, CEIL_FX, and ROUND_FX expression opcodes.
  • Rounding opcodes use integer fixed-point arithmetic and preserve the existing Decimal.round() half rule.
  • sqrt, pow, and rand are still intentionally outside the expression VM slice.

2026-06-25 P3 bool comparison update

  • Added FX comparison opcodes EQ_FX, NE_FX, LT_FX, LTE_FX, GT_FX, and GTE_FX.
  • JUMP_IF_FALSE now validates and disassembles a BOOL expression id plus forward target.
  • evalBoolExpression can execute comparison expressions with the same context host used by FX expressions.

2026-06-25 P2 ABI skeleton update

  • COD0 instruction records now use the plan-aligned 16-byte shape: opcode/a/b/c as four little-endian u32 values.
  • Required section skeletons are present: FXC0, XCD0, SEL0, L1C0, L2D0, L3E0, L4G0, DSP0, LIM0.
  • Reserved L1/L2/L3/L4/DSP/LIM sections are currently validated as empty count sections until their record writers are implemented.

2026-06-25 binary update

  • Added XPR0 section parsing for const-ppm probability expressions.
  • Added ROLL_JUMP_IF_FALSE opcode validation and disassembly.
  • Current section order is STR0 / PRG0 / ENT0 / ACT0 / XPR0 / COD0.