# oussamahamdaoui/forgJs

ForgJs is a javascript lightweight object validator.

Repository: https://github.com/oussamahamdaoui/forgJs
Canonical: https://ross.abutalabs.com/products/forgjs
Homepage: https://oussamahamdaoui.github.io/forgjs-examples/
Language: JavaScript
License: MIT
License Family: permissive
Topics: javascript, object, validation, js
Last push: 2023-10-18T21:19:49+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2840, "days_push": 1050, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1651, forks 47 (observed 2026-08-28T04:05:16.898634+00:00)

## What it is
ForgJs is a lightweight JavaScript object validator that lets developers define rules for validating values like emails, passwords, numbers, dates, and URLs. It supports custom rules, custom error messages, and batch validation of object arrays.

## Use cases
- validate form input like emails and passwords in javascript
- validate object schemas in nodejs
- check that values match type and range constraints
- get custom error messages for invalid fields
- validate arrays of objects in bulk

## When to choose
- you need a small, dependency-free validator for plain JavaScript objects
- you want simple rule-based validation with custom error messages
- you're validating common types like email, password, url, int, and date

## When to avoid
- you need async or schema-based validation with rich ecosystem support (consider Joi, Zod, or Yup)
- you need TypeScript-first type inference from your schemas
- you need actively developed software with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: form-handling, developer-tools
- domain: web-development, frontend, backend, developer-tools
- platform: cross-platform
- tags: object-validator, schema-validation, lightweight, rule-based-validation, data-validation, nodejs, javascript

## Member repositories
- oussamahamdaoui/forgJs (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:16.898634+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:45:02.882792+00:00, confidence not recorded.
  - readme: https://github.com/oussamahamdaoui/forgJs (fetched 2026-08-28T04:05:16.898634+00:00, sha 8f4156b95d0d)
  - homepage: https://oussamahamdaoui.github.io/forgjs-examples/ (fetched 2026-08-29T11:18:13.031708+00:00, sha d8ee0d012a82)
- Data as of 2026-08-30T08:39:29.467469+00:00.
