Angular 22 UI component library — a curated community fork of the last MIT release of PrimeNG
Components for Angular 22 that stay MIT — with a theme of their own whose text meets WCAG AA, an API reference generated from the source, and a licence that a machine checks on every commit.
The code started from PrimeNG 21.1.9, the last MIT release of that project. Why angulux exists and what it is not are below.
npm install @anguless/angulux @anguless/angulux-themes
import { provideAngulux } from '@anguless/angulux/config';
import Lux from '@anguless/angulux-themes/lux';
bootstrapApplication(App, {
providers: [provideAngulux({ theme: { preset: Lux } })]
});
Why the second package. @anguless/angulux is the components and
@anguless/angulux-themes is how they look: Lux, the default, and Lux Compact, the denser
one. Both packages are MIT and published by this project, and together they install with
zero PrimeTek packages in the dependency tree. Lux is derived from the Aura preset of
@primeuix/themes 2.0.3, with the severity colours moved to palette steps that meet WCAG AA
for text. Drop the second package and provideAngulux() still works; the components render
unstyled.
Presets from another package still work. @primeuix/themes — PrimeTek's, and MIT through 2.0.3
— carries Aura, Lara, Nora and Material, and angulux accepts any of them. It is declared as
an optional peer ranged ^2.0.0, and the ceiling is deliberate:
3.0.0 is the first commercial release. Be clear about what that buys you — a peer range is
a warning, not a lock. npm install @primeuix/themes@3 still succeeds; it just prints an
ERESOLVE warning naming the range it broke. That is enough for the case that actually
happens (a routine npm update, or an agent bumping dependencies, sliding across a license
boundary in silence) and it is not enough for anything else. If the boundary matters to you,
pin the version exactly and run a licence guard in your own build. That gate is published as
its own MIT package, angulux-license-guard — it reads your
lockfile, fails closed on any PrimeTek package it cannot verify, and has no dependencies of
its own. It works in any project; it does not require angulux.
angulux is not a drop-in replacement for PrimeNG, and it is not trying to be the community's continuation of it. Three facts decide whether you should keep reading:
packages/angulux/attic/. See
What angulux is NOT.p-button is agl-button, pTooltip is aglTooltip.
CSS class names (p-*) were deliberately kept — see NOTICE for why.If what you need is "I run PrimeNG 21 and I want to keep going with minimal change", the
honest answer is that Optimus UI fits that
better than angulux does: it keeps the p-* selectors and carries the full module set.
We would rather tell you that here than collect an issue about it later.
PrimeNG 22 moved to a commercial license. Every release up to and including 21.1.9 was published under MIT and stays MIT permanently — that is what a published license grant means. angulux is a fork taken at that boundary, for teams whose blocker is control and legal certainty, not price.
The interesting part is not the fork. It is that the boundary is enforced by machine.
21 gates run on every commit and every pull request. They do not check style — each one closes a class of failure that has already happened in this repository.
| Gate | What it refuses to let through |
|---|---|
check:catalog | a dependency version drifting off the pinned catalog, or an installed dependency or override declared as a range in any package manifest |
check:scope | the transitive closure drifting off the 65 warranted modules |
check:license | any PrimeTek package from a post-MIT release entering the tree — and, separately, any licence-flagged material sitting in ref/ that PROVENANCE.md does not declare, and either evidence clone in ref/ being modified or moved off the commit PROVENANCE.md records |
check:names | PrimeNG names surviving in selector, API or trademark positions — including inside bare strings, JSDoc links and DOM attributes |
check:risk-coverage | the browser gate's scope drifting off the risky decorators computed from source |
check:language | non-English text reaching a public repository |
check:public-tree | internal-only paths sitting in the git index (.gitignore does not untrack) |
check:scope-names | a bare angulux/angulux-* package reference surviving where the scoped @anguless/* name belongs |
check:tsup | the bundler leaking outside the forks' own build scripts |
check:action-inputs | a workflow passing a with: key that its action does not declare — YAML nobody validates until it silently does nothing |
check:release-plugins | a release tr |
Upstream changelog: entries waiting to be triaged
https://github.com/anguless-com/angulux/issues/358
Labels: upstream
Dialog: focus enters about 480 ms after the dialog opens, and the keyboard acts on the page behind until then
https://github.com/anguless-com/angulux/issues/272
Labels: bug, api-v23
Drawer: no input to name a drawer without header text, or to control focus on open
https://github.com/anguless-com/angulux/issues/259
Labels: api-v23
Table: the column filter cannot be left out, so every table ships the date picker
https://github.com/anguless-com/angulux/issues/248
Labels: api-v23
agl-select hard-codes aria-label="dropdown trigger", so no app can localise it
https://github.com/anguless-com/angulux/issues/160
Labels: bug, api-v23
Table: .p-datatable-table-container gets inline overflow:auto even when the table is not scrollable
https://github.com/anguless-com/angulux/issues/147
Labels: bug, api-v23
feat(attic): promote treeselect out of the attic
https://github.com/anguless-com/angulux/issues/63
Labels: enhancement, attic-promotion
feat(attic): promote tree out of the attic
https://github.com/anguless-com/angulux/issues/62
Labels: enhancement, attic-promotion
feat(attic): promote toolbar out of the attic
https://github.com/anguless-com/angulux/issues/61
Labels: enhancement, good first issue, attic-promotion
feat(attic): promote terminal out of the attic
https://github.com/anguless-com/angulux/issues/60
Labels: enhancement, attic-promotion
Thanks for considering it. This document is short, but two sections are hard requirements rather than etiquette: Provenance and Sign-off.
angulux's entire value proposition is that its MIT provenance can be verified by machine. A single contribution carrying code from a post-MIT PrimeNG release would destroy that, and no amount of later cleanup fully restores it — the claim becomes "we think we removed it all", which is exactly the kind of claim this project exists to avoid making.
So, by opening a pull request you attest that your contribution contains no code, documentation, test fixtures, or generated output derived from:
@primeuix/* or primeicons releases past the MIT boundary recorded in
PROVENANCE.md;Coding assistants have post-MIT PrimeNG in their training data and will reproduce it on
request without saying so. If you used an assistant, you are responsible for the output as
if you had typed it. Do not prompt one with "port this from PrimeNG 22" or paste
commercially-licensed source into it. Derive from
packages/angulux/attic/ or from upstream 21.1.9, both of which
are MIT and already in this repository.
Two things to know before you assume this is theatre:
check:license runs on every pull request and fails the build if a PrimeTek package from
a post-MIT release enters the dependency tree.check:names fails on PrimeNG names in selector, API and trademark positions — including
inside bare strings, JSDoc links and DOM attributes. Trademark hygiene is a legal
requirement here, not a naming preference.Neither tool can read your mind about where a hand-written implementation came from. That part runs on your attestation, which is why the sign-off below is required.
Every commit must carry a Developer Certificate of Origin sign-off:
git commit -s -m "feat(button): add loading state"
This appends Signed-off-by: Your Name <your@email> and means you agree to the
Developer Certificate of Origin 1.1. There is no CLA;
sign-off is the whole ceremony. Missing sign-off fails CI.
corepack pnpm install
npm run check # the 21 gates, no build needed — run this first, it should be green
Full build and test loop, in dependency order:
for p in utils styled motion styles; do
(cd packages/angulux-$p && corepack pnpm run build)
done
corepack pnpm --filter @anguless/angulux run build # → 210 entrypoints
corepack pnpm --filter @anguless/angulux run test:unit # the inherited spec suite
corepack pnpm --filter @angulux/verify run build
npx playwright test --config e2e/playwright.config.ts # browser gate
pnpm runs through corepack and is not on PATH — use corepack pnpm. Karma needs
CHROME_BIN if Chrome is not at the default location.
# 1. Fork on GitHub, then:
git clone git@github.com:<you>/angulux.git
cd angulux
git remote add upstream git@github.com:anguless-com/angulux.git
corepack pnpm install
npm run check # should be 21/21 green before you change anything.
# If it is not, that is a bug — please report it.
# 2. Branch.
git switch -c fix/datepicker-same-day-reselect
# 3. Work. Commit with sign-off and a Conventional Commits message.
git commit -s -m "fix(datepicker): stop the overlay closing on a same-day reselect"
# 4. Before pushing, run what CI will run.
npm run check
corepack pnpm --filter @anguless/angulux run test:unit
# ...and for anything that renders, the browser gate:
npx playwright test --config e2e/playwright.config.ts
git push -u origin fix/datepicker-same-day-reselect
Then open the pull request. The template asks for two things people are often surprised by: the provenance attestation (checked by a CI job, not read hopefully — the job skips bots, which are covered by machine gates instead, and the named maintainers, whose attestation would be a statement made to themselves; it is mandatory for everyone else) and evidence — actual command output, not "tests pass".
Two mechanical failures catch most first-timers, and both are quick to fix:
# "missing Signed-off-by"
git commit --amend -s # last commit
git rebase --signoff main # a whole branch
# "PR title is not valid" — the title becomes the commit message on main,
# because this repository squash-merges. Edit the title, don't rewrite commits.
TRIAGE.md describes what happens after you submit, including how long it should take and what silence means.
Promoting a module out of the attic is the most useful contribution, and the most
well-defined. The 52 unported modules sit verbatim in
packages/angulux/attic/ — MIT source, not built, not published.
Every one of them has an issue labelled attic-promotion, sized, with the ones that are
genuinely beginner-friendly labelled good first issue:
node tools/community/seed-attic-issues.mjs # see the list and the sizes locally
docs/attic-promotion.md is the same 52 sorted by what a
promotion actually costs — what each one drags in, whether it arrives with an inherited
spec suite, and the costs that are invisible until you are halfway through. Two of those
are worth knowing before you pick: editor reaches its engine through a dynamic
`