Hi devs! π
After weeks of building and refining, Iβm excited to introduce my new npm package: codetrix β a modern, modular utility library built for cleaner, safer, and type-friendly JavaScript/TypeScript codebases.
What is codetrix?
codetrix is a lightweight utility library that provides essential helper functions for:
Numbers (e.g., clamp, randomInt, roundTo)
Arrays (e.g., unique, chunk, compact)
Dates (e.g., isToday, formatDate, daysBetween)
Strings (e.g., truncate, camelCase, capitalize)
Objects (e.g., deepClone, getNested, isEmpty)
Validations (coming soon)
Think of it as your personal Lodash, but with full TypeScript support and a modern modular structure.
Why I Built It
While working on multiple frontend and full-stack projects, I often found myself:
Rewriting the same utility functions over and over
Importing huge libraries (like Lodash) when I only needed 2β3 methods
Wanting typed safety and tree-shakable modules
So I built codetrix to solve those problems, and now I want to share it with the community.
Installation
npm install codetrix
// or
yarn add codetrix
Features
Fully written in TypeScript
Modular imports (e.g., codetrix/number)
Lightweight and tree-shakable
Growing function set (more coming!)
Looking for Feedback & Contributors
I'm actively improving the library and open to:
Feature requests
Bug reports
Contributions
Top comments (0)