Utils
@duplojs/utils is the TypeScript utility toolbox used across the DuploJS ecosystem. It focuses on strong typing, good DX, and small composable primitives that scale from simple helpers to full validation pipelines.
Install / Use
/learn @duplojs/UtilsREADME
@duplojs/utils
@duplojs/utils is the TypeScript utility toolbox used across the DuploJS ecosystem. It focuses on strong typing, god DX, and small composable primitives that scale from simple helpers to full validation pipelines.
What’s inside?
- Common functional utilities:
pipe/asyncPipe,when,memo,clone,escapeRegExp, etc. - Typed runtime tagging:
kindhelpers to discriminate data without polluting public shapes. - Either: a typed success/error container with mandatory “information” for precise pattern matching.
- DataParser: schema-based validation with checkers, coercion (
DP.coerce.*), transforms, async support, and a fluent “extended” API (DPE). - Clean-domain building blocks:
newType,entity, constraints, repositories, and use-cases. - Pure helpers by domain:
array,object,string,number,date,generator,pattern(match/exhaustive).
Documentation
- https://utils.duplojs.dev
Install
npm install @duplojs/utils
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Writing Hookify Rules
109.8kThis skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.
review-duplication
100.4kUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project best practices and shared utilities.
