Show HN: Common FP – A New JavaScript Utility Lib

3 waphil 0 8/31/2025, 3:57:22 PM common-fp.org ↗
Who is this for? - Devs looking for utilities that treat data types generically. For example, common-fp has a `mapValues` function that takes an array, object, Map, or Set and returns a new instance of the data type passed in. - Devs interested in functional utilities without the jargon. In my experience, some functional concepts are too foreign for the broader community and pose a barrier to entry. Common FP lowers that barrier by naming the utilities in plain English, not currying, keeping the source intended for the common devs' eyes, and more.

Other features - An in-browser playground: https://common-fp.org/try-it - Supports TypeScript: install types via `npm install common-fp-types` - Supports cjs: i.e. you can `require('common-fp')` - 100% test coverage. Types are tested as well via tstyche. - For every utility, I try to explain why it's useful along with a code example. This is more difficult than it seems, and I'm open to feedback.

A personal note - I built this as a personal endeavor. I wasn't trying to solve a problem the community had, so I understand if people find Common FP to be odd or unnecessary. Finishing a project is difficult, and I'm mostly happy just to have done that and present what I consider to be a polished product.

Link to source - https://github.com/common-fp/common-fp/tree/dev/pkg/common-f...

Thanks for taking a look, Phil

Comments (0)

No comments yet