npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fjall/components-infrastructure

v39.0.0

Published

Published fjall infrastructure components and utilities.

Downloads

7,886

Readme

Fjall Infrastructure

Published fjall infrastructure components and utilities.

Upgrade notes

21.0.0 — ClickHouse identities by workload class (breaking)

ClickHouseDatabase no longer shares one schemaAdmin principal across the migration task, the schema gate and the maintenance sidecars. Each workload class now authenticates as its own identity, so no two classes contend for the same max_concurrent_queries_for_user cap:

| identity | holder | | ------------------------- | ----------------------------- | | schemaAdmin.name (XML) | migration task ONLY | | fjall_schema_gate (SQL) | materialised gate container | | fjall_maintenance (SQL) | OPTIMIZE FINAL + BACKUP tasks |

What changes in a synthesised stack:

  • App containers lose SCHEMA_ADMIN_USER / SCHEMA_ADMIN_PASSWORD. They keep EXPECTED_CH_SCHEMA_VERSION. A container image that runs its own in-process ClickHouse schema check reading those two variables must drop it — the materialised gate container performs the check.
  • The gate container authenticates as fjall_schema_gate via FJALL_SCHEMA_GATE_CH_USER / FJALL_SCHEMA_GATE_CH_PASSWORD (read-only, SELECT on <db>._schema_migrations only).
  • The OPTIMIZE and BACKUP scheduled tasks authenticate as fjall_maintenance. Their execution roles read that identity's secret, not the schema admin's. Both scripts open with a migrate ↔ maintenance activity pre-flight and log fjall:maintenance:status=<ok|deferred|failed> markers; status=failed pages via a new ClickHouseMaintenanceFailedAlarm.
  • Two new fixed-name Secrets Manager secretsfjall/clickhouse/fjall-schema-gate-password and fjall/clickhouse/fjall-maintenance-password — are minted by the construct. They are NOT injected into the ClickHouse service container, so the ClickHouse service task definition is unchanged by the upgrade.
  • The fjall_ user-name prefix is reserved. A schemaAdmin.name or managedPasswords entry starting with fjall_ fails synth.

Deploy order: the identities are SQL-provisioned by the migration runner (@fjall/clickhouse 21 — bump the migration image before this construct), so the migration task must run once under 21.x BEFORE anything authenticates as the new identities. Deploy the Database stack, then the Compute stack that carries the migration task, and only then let the schedules fire.

Rollback: rolling back to 20.x deletes the two framework secrets, which Secrets Manager only schedules (30-day recovery window). Re-adopting 21.x inside that window fails on the held names — first run aws secretsmanager restore-secret --secret-id fjall/clickhouse/<name>-password or aws secretsmanager delete-secret --secret-id … --force-delete-without-recovery for each of the two secrets.

Useful commands

  • npm run build — clean, bundle the Lambda assets and compile TypeScript to dist/
  • npm run watch — recompile on change
  • npm test — run the Vitest suites
  • npm run typecheck — type-check the library

Synthesis and deployment go through the fjall CLI (fjall deploy), which assembles the stacks from an application's fjall/ directory. The package is not deployed with cdk deploy on its own.

Using the constructs

The constructs are consumed through the fjall CLI: fjall create app and fjall add <resource> write the infrastructure.ts that composes them, and fjall deploy synthesises and deploys it. Every construct is also exported from the package root for direct use; the reference lives at docs.fjall.io.

Licence

Proprietary — see LICENSE.