Skip to content

Commit bf281c7

Browse files
committed
Complete stable Node.js site feature set
1 parent 4b8abf4 commit bf281c7

54 files changed

Lines changed: 1386 additions & 652 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Dockerfile‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
1-
FROM node:26-bookworm-slim
1+
FROM ghcr.io/eliware/centos10-node26:26.13.1 AS frontend-build
22

3+
USER root
4+
WORKDIR /opt/nodejs-http
5+
COPY package.json package-lock.json ./
6+
RUN PUPPETEER_SKIP_DOWNLOAD=true npm ci
7+
COPY src ./src
8+
COPY webpack.config.mjs ./webpack.config.mjs
9+
RUN npm run build
10+
11+
FROM ghcr.io/eliware/centos10-node26:26.13.1
12+
13+
USER root
314
ENV NODE_ENV=production
415
WORKDIR /opt/nodejs-http
516
COPY package.json package-lock.json ./
@@ -8,6 +19,7 @@ COPY --chown=node:node bin/server.mjs ./bin/server.mjs
819
COPY --chown=node:node src ./src
920
COPY --chown=node:node templates ./site
1021
COPY --chown=node:node public/assets ./site/assets
22+
COPY --from=frontend-build --chown=node:node /opt/nodejs-http/dist ./site/web
1123
ENV HOST=0.0.0.0 \
1224
PORT=7100 \
1325
PUBLIC_DIR=/srv/repository \

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Node.js HTTP repository and web frontend.
2727

2828
## Features
2929

30-
Browse published Node.js 26 RPMs for CentOS Stream 10 EPEL on x86_64. Read release metadata, installation instructions, and project articles.
30+
Browse stable Node.js 26 RPMs for CentOS Stream 10 EPEL on x86_64. Find packages, verify checksums and provenance, compare releases, inspect published images, and read installation guides and project articles.
3131

3232
## Requirements
3333

@@ -79,7 +79,7 @@ Run `npm start` to start the local server. Set `PUBLIC_DIR` when the repository
7979

8080
## Build
8181

82-
Run `npm run build` to create the browser bundle in `dist/`. The production container serves its pages from templates.
82+
Run `npm run build` to create the browser bundle in `dist/`. The production container builds and serves that bundle with its page templates.
8383

8484
## Deployment
8585

‎docs/BLOGS.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@ Store one JSON post in the shared content directory at `content/blogs/`.
1616
{
1717
"metadata_version": "<packaging metadata schema version>",
1818
"schema": 2,
19-
"slug": "rolling-releases",
20-
"title": "Following rolling releases",
21-
"summary": "How to follow Node.js rolling builds.",
22-
"published_at": "2026-08-18T12:00:00Z",
23-
"updated_at": "2026-08-18T12:00:00Z",
19+
"slug": "stable-releases",
20+
"title": "Following stable releases",
21+
"summary": "How to install stable Node.js updates.",
22+
"published_at": "2026-11-19T12:00:00Z",
23+
"updated_at": "2026-11-19T12:00:00Z",
2424
"author": "Eliware",
25-
"tags": ["releases", "rolling"],
25+
"tags": ["releases", "stable"],
2626
"content_format": "markdown",
27-
"created_at": "2026-08-18T11:00:00Z",
27+
"created_at": "2026-11-19T11:00:00Z",
2828
"category": "releases",
29-
"last_verified_at": "2026-08-18T12:00:00Z",
29+
"last_verified_at": "2026-11-19T12:00:00Z",
3030
"tested_on": ["Repository content review"],
3131
"status": "published",
32-
"content": "# Rolling releases\n\nMarkdown content goes here."
32+
"content": "# Stable releases\n\nMarkdown content goes here."
3333
}
3434
```
3535

‎docs/INSTALL-GUIDES.md‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
# Install Node.js 26
22

3-
The package repository provides signed x86_64 RPMs for CentOS Stream 10 EPEL. The website install page shows commands for the published `nodejs26.repo` file.
3+
The repository provides signed x86_64 RPMs for CentOS Stream 10 EPEL. The RPM packages the official precompiled Node.js archive.
44

5-
The RPM package name is `eliware-nodejs26`. The RPM installs `node26`, `npm26`, and `npx26` commands.
5+
The package name is `eliware-node26`. It provides the standard `node`, `npm`, and `npx` commands.
66

7-
The RPM includes npm 12 or later. It keeps npm updates and global packages under `/var/lib/eliware/nodejs26/global`.
8-
The RPM adds the global command directory to `PATH` through `/etc/profile.d/eliware-nodejs26.sh`.
7+
The RPM includes npm 12 or later. It keeps global npm packages under `/var/lib/eliware/nodejs26/global`. The RPM adds the global command directory to `PATH` through `/etc/profile.d/eliware-node26.sh`.
98

10-
Install the package with `sudo dnf install eliware-nodejs26`. Update installed packages with `sudo yum -y update`.
11-
Run `npm26 -g install npm@latest` to update npm outside RPM-managed files. Run `npm26 link` to link a local package.
9+
Install the repository file and package with these commands:
1210

13-
Open `/install` on the website for the current instructions. Confirm the release version and repository metadata before installation. Follow the signing key and repository instructions published by nodejs-packaging.
11+
```sh
12+
sudo curl -fsSLo /etc/yum.repos.d/nodejs26.repo https://nodejs.eliware.org/nodejs26.repo
13+
sudo dnf install -y eliware-node26
14+
node --version
15+
npm --version
16+
```
1417

15-
The website reads install guide JSON from `content/install/centos10/stable/instructions.json` under `PUBLIC_DIR`. Upgrade guidance uses `content/upgrade/centos10/stable/instructions.json`. Rolling guide data can use the matching `rolling` path when the publisher supplies it. The guide API returns HTTP 404 when a requested document is missing or invalid.
18+
Run `sudo dnf update eliware-node26` or `sudo yum update eliware-node26` to update Node.js. Use `npm install --global package-name` to install a global package. Use `npm link` to link a local package.
19+
20+
Open `/install` on the website for the current commands. Check the release catalog and signed repository metadata before installation. The package repository publishes the signing key and provenance records.
21+
22+
The website reads install guide JSON from `content/install/centos10/stable/instructions.json` under `PUBLIC_DIR`. Upgrade guidance uses `content/upgrade/centos10/stable/instructions.json`. The guide API returns HTTP 404 when a requested document is missing or invalid.

‎docs/README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- [Usage](usage.md) explains local startup and container use.
44
- [Configuration](CONFIGURATION.md) lists environment variables and defaults.
55
- [Web application](WEB-APPLICATION.md) documents pages, files, APIs, and response behavior.
6+
- [Site guide](SITE-GUIDE.md) explains package browsing, installation, images, and release verification.
67
- [Install guides](INSTALL-GUIDES.md) explains Node.js installation for supported packages.
78
- [Metadata integration](METADATA-INTEGRATION.md) describes repository data and readiness checks.
89
- [Blogs](BLOGS.md) defines post documents and public blog routes.

‎docs/SITE-GUIDE.md‎

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Use the Node.js site
2+
3+
The site publishes stable Node.js 26 package and image information for CentOS Stream 10 EPEL on x86_64.
4+
5+
## Find a package
6+
7+
Open `/` to view the latest stable Node.js version, validation results, and package records. Type a package name or select RPM and stable filters. Select a result to view its checksum, download link, and install commands.
8+
9+
Open `/browse` to navigate repository directories. Sort entries by name, byte count, or modified time. Filter entries by name. Select a directory to open it, or select a package to view its metadata.
10+
11+
## Install and update Node.js
12+
13+
Open `/install` for the current repository setup commands. The page installs `eliware-node26` and checks the standard `node` and `npm` commands.
14+
15+
Run `dnf update eliware-node26` or `yum update eliware-node26` to install a published update. Use `npm install --global package-name` to add global tools. Use `npm link` to link a local package.
16+
17+
## Inspect container images
18+
19+
Open the Images section on `/`. Check the published CentOS Stream 10 image tag and digest. Select an image example to view Dockerfile, Compose, or Kubernetes syntax.
20+
21+
Use the version tag for convenience. Use the SHA-256 digest when a deployment needs a fixed image.
22+
23+
## Verify release data
24+
25+
Open the verification section on `/` to examine the signing key, signed RPM metadata, checksums, release catalog, and provenance records. Confirm package checksums before installation.
26+
27+
## Read project updates
28+
29+
Open `/blog` to browse posts by title or category. Subscribe to `/feed.xml` for updates. Visit `/about` for project details and community links.

‎docs/WEB-APPLICATION.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The server accepts GET and `HEAD` requests by default. It returns 405 for other
1919
| `/feed.xml` | RSS 2.0 XML for published posts. |
2020
| `/sitemap.xml` | Sitemap for site pages, repository directories, and published posts. |
2121

22-
The install page describes the Node.js 26 RPM for CentOS Stream 10 EPEL on x86_64. The RPM name is `eliware-nodejs26`. The command names are `node26`, `npm26`, and `npx26`.
22+
The install page describes the stable Node.js 26 RPM for CentOS Stream 10 EPEL on x86_64. The RPM name is `eliware-node26`. The command names are `node`, `npm`, and `npx`.
2323

2424
## Repository files
2525

@@ -55,4 +55,4 @@ The list API returns a path, total entry count, offset, limit, `hasMore`, entrie
5555

5656
The image copies `templates/` into `/opt/nodejs-http/site` and copies `public/assets/` into its `assets/` directory. It serves those files from `STATIC_DIR`. Repository files remain in the read-only repository path.
5757

58-
Run `npm run build` to create the optional browser bundle in `dist/`. The production image does not include or require that bundle. See [usage](usage.md) for container commands.
58+
Run `npm run build` to create the browser bundle in `dist/`. The production image builds that bundle in a separate stage and serves it with the pages. See [usage](usage.md) for container commands.

‎docs/usage.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ docker compose up --build -d
2626

2727
Check the container with `docker compose ps` and `curl --fail http://127.0.0.1:7100/ready`. View logs with `docker compose logs --follow web`. Stop the container with `docker compose down`.
2828

29-
The container uses `node:26-bookworm-slim`. It copies application code and static templates into the image. It reads repository content from the read-only directory. The image does not build RPMs or change repository files.
29+
The container uses the published `ghcr.io/eliware/centos10-node26:26.13.1` image. A build stage creates the browser assets. The runtime stage copies the application, templates, and assets into the image. The application reads repository content from the read-only directory. It does not build RPMs or change repository files.
3030

3131
## Local development
3232

‎src/frontend/directory-browser.mjs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,12 @@ function updateSortButtons() {
3737
async function initDirectoryBrowser() {
3838
const entries = getElement("directory-entries");
3939
if (!entries || !getElement("directory-title")) return;
40-
const currentPath = location.pathname.endsWith("/") ? location.pathname : `${location.pathname}/`;
40+
const requestedPath = new URLSearchParams(location.search).get("path");
41+
const currentPath = requestedPath
42+
? requestedPath.startsWith("/")
43+
? requestedPath
44+
: `/${requestedPath}`
45+
: "/";
4146
currentListing = await fetchDirectory(currentPath);
4247
renderValidation(currentListing);
4348
getElement("directory-title").textContent = `Index of ${currentListing.path}`;

‎src/frontend/directory/breadcrumbs.mjs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function renderBreadcrumbs(path) {
55
const breadcrumbs = getElement("directory-breadcrumbs");
66
breadcrumbs.replaceChildren();
77
const root = document.createElement("a");
8-
root.href = "/";
8+
root.href = "/browse?path=%2F";
99
root.textContent = "nodejs.eliware.org";
1010
breadcrumbs.appendChild(root);
1111
const parts = path.split("/").filter(Boolean);
@@ -17,7 +17,7 @@ function renderBreadcrumbs(path) {
1717
breadcrumbs.appendChild(separator);
1818
href += `${encodeURIComponent(part)}/`;
1919
const crumb = document.createElement(index === parts.length - 1 ? "span" : "a");
20-
if (crumb instanceof HTMLAnchorElement) crumb.href = href;
20+
if (crumb instanceof HTMLAnchorElement) crumb.href = `/browse?path=${encodeURIComponent(href)}`;
2121
crumb.textContent = decodeURIComponent(part);
2222
if (index === parts.length - 1) crumb.setAttribute("aria-current", "page");
2323
breadcrumbs.appendChild(crumb);

0 commit comments

Comments
 (0)