patrickjs/custom-function — explained in plain English
Analysis updated 2026-07-17 · repo last pushed 2024-11-05
Build a callable validator function that also exposes methods like .withMessage() or .optional().
Give a function private fields, getters, setters, and super calls like a regular class.
Use the factory export to safely extend other hard-to-extend constructors, like HTMLDivElement.
Build a DSL where functions need to behave like objects with internal state.
| patrickjs/custom-function | 0xkinno/neuralvault | 0xmayurrr/ai-contractauditor | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | — | TypeScript | TypeScript |
| Last pushed | 2024-11-05 | — | — |
| Maintenance | Stale | — | — |
| Setup difficulty | easy | hard | easy |
| Complexity | 3/5 | 4/5 | 2/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Aimed at framework/library authors rather than typical app developers.
A small library that lets you create custom functions with class-like features (methods, private fields, super calls) without unsafely extending Function.
Stale — no commits in 1-2 years (last push 2024-11-05).
License is not stated in the available content.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.