The website for pisg, the Perl IRC Statistics Generator — live at https://pisg.github.io/.
The program itself is at https://github.com/PISG/pisg.
What changed on the site, and when: CHANGELOG.md.
Static HTML, one stylesheet, two small scripts. No build step, no dependencies, no framework, and
no external requests at all: system fonts, inline SVG icons, and the bar graphics inside the
example pages as inline data URIs. Nothing is stored in the visitor's browser either — no cookies,
no localStorage.
| URL | File | What it is |
|---|---|---|
/ |
index.html |
Landing page: what pisg is, quick start, what's new in 1.0, themes, log formats, optional tools, FAQ, credits |
/docs/ |
docs/index.html |
The manual: setup guide, upgrading to 1.0a, all 106 options, the optional tools and a complete example pisg.cfg. Full-width, with the site's top bar |
/themes/ |
themes/index.html |
Every colour scheme, how to write one by hand, and the theme creator. Full-width, with the twelve themes in the sidebar |
/changelog/ |
changelog/index.html |
Release notes, newest first. 1.0a in full, then 0.80-preview2, 0.80-preview, 0.73 |
/privacy/ |
privacy/index.html |
Privacy policy — and the checklist for people who publish statistics about real channels |
/cookies/ |
cookies/index.html |
Cookie policy: there are none, and why that means no consent banner |
/terms/ |
terms/index.html |
Terms of use: licence, no warranty, liability, what the publisher is responsible for, governing law |
| — | 404.html |
Styled not-found page that also forwards old option anchors to /docs/ |
| — | assets/site.css |
The whole design system, one file, design tokens at the top |
| — | assets/site.js |
Mobile menu, copy buttons, docs filter and scroll-spy. No dependencies |
| — | assets/theme-maker.js |
The theme creator: palette, live preview, generated CSS |
/demo/ |
demo/index.html |
The landing page pisg ships as site/index.html, reading demo/channels.json |
/demo/nightshift.html |
Example stats page — a very busy channel, every 1.0a section | |
/demo/basement.html |
Example stats page — a quiet channel, with user pictures on | |
/demo/themes/… |
A full sample page in each colour scheme, for the theme gallery | |
| — | tools/*.py |
The scripts that generate docs/, the classic palettes and everything in demo/ |
| — | .nojekyll |
Tells GitHub Pages to serve the files as they are, with no Jekyll pass |
/themes/ builds a pisg colour scheme in the browser. It fetches the modern stylesheet out of
demo/nightshift.html, swaps the sixteen palette variables for the ones you pick, injects the result
into the preview frame and offers the finished file as a download.
The preview is the full busy-channel example, not a theme sample: all nineteen sections, the relation map, the section menu, the tables with user pictures. That is the point of the page — you are judging a theme against everything pisg can put on a page. Taking the template from the same file also means the downloaded CSS carries the rules for every section 1.0a writes.
The whole editor lives in the sidebar — the twelve themes (four modern, eight classics), the
file name, light/dark, the sixteen colours and the readability read-out. The main column holds only
the preview, the generated file and the reference sections, and it is unconstrained
(body.themes-page widens the sidebar to 328 px; .main.wide drops the 900 px cap on the content
column). The preview frame is 100vh minus the chrome, so the example stats page is as large as the
window allows. It and /docs/ are the two pages on the site that are wider than 1080 px.
The interface deliberately has no native form controls: presets are cards with their own swatch
strips, light/dark and the preview width are segmented switches, and the file name is a text field
between a fixed layout/ and .css. Browser dropdowns cannot be styled to match a dark site, so
there are none. (assets/site.css does carry a proper select style with its own arrow, for the day
one is unavoidable.)
It also reports readability: four WCAG contrast ratios, plus the hue gap between the two closest time-of-day colours. A contrast ratio is the wrong test there — blue and red can be obviously different and still score 1.1:1 — so that line measures hue separation instead, in degrees.
Nothing is uploaded and nothing is stored: the palette lives in the URL hash, so a theme can be bookmarked or sent to somebody. That keeps the promise the cookie policy makes.
tools/make-classic-palettes.py reads the old hand-written stylesheets out of the pisg distribution
(layout/default.css, ocean.css, …) and turns each one into a 1.0a palette:
body,.hicell,.tdtop,.rankcand.headtextbecome the surfaces, rules and heading colour;- each theme's own bar colours are decoded out of the four-colour PNG sprite embedded in its CSS
(they all turn out to share
#3366ff/#66cc33/#cccc33/#cc3333— the classic bars); - a colour that would not have read on the new layout keeps its hue and is moved in lightness until it does, because the hue is what makes a theme recognisable.
It writes the CLASSIC block inside assets/theme-maker.js:
python3 tools/make-classic-palettes.py # print it
python3 tools/make-classic-palettes.py --write # replace the block in theme-maker.jsEdit SRC at the top if the pisg checkout is somewhere else. Do not edit the block by hand — it is
regenerated.
If build-themes.py in the pisg repository ever changes the palette variables, update FIELDS and
MODERN at the top of assets/theme-maker.js to match.
Every page is a directory with an index.html, so the addresses are /docs/, /changelog/,
/privacy/, /cookies/ and /terms/. GitHub Pages serves those directly — no configuration, no
redirects, no build step. Links between pages are relative (../docs/, ../assets/site.css), so
the site also works when it is served from a subfolder or opened from disk.
Old links keep working:
/docs.htmland friends land on404.html, which explains where things moved.- Until this rebuild the whole manual lived on the home page, so links like
pisg.github.io/#ShowRandQuoteare out there.index.htmlchecks on load: if the hash matches nothing on the home page, it forwards to/docs/#<hash>.404.htmldoes the same.
Seven pages, one stylesheet, two scripts, no build step, no dependencies and no external requests at
all — system fonts, inline SVG icons, and the bar graphics inside the demo pages as inline data
URIs. That is checked, not assumed: no <img>, <script>, <link> or <iframe> on any page points
off-site, and nothing touches localStorage, sessionStorage, IndexedDB or document.cookie.
demo/ is built from real pisg 1.0a output, then everything that identifies a person is replaced:
nicks, quotes, example lines, topics, most-used words, URLs, user pictures and the channel names.
The numbers, the graphs, the relation map and the markup are untouched, so the pages behave like
real ones at real scale.
The two channels are #nightshift (133,944 lines, 915 nicks, 50 days) and #basement (6,524 lines,
285 nicks, 176 days).
The theme samples in demo/themes/ are different: #teatime is invented from start to finish.
tools/make-themes.py writes two months of eggdrop logs for forty made-up regulars (fixed random
seed, so the pages come out the same every time), runs pisg 1.0a from ../pisg once per scheme, and
adds the "all themes" link. No real log goes in, so nothing needs replacing.
BeanCounter and okra appear in both channels on purpose — the same people turn up in more than
one room.
The scripts that produced them are in tools/:
| Script | Makes |
|---|---|
tools/make-nightshift.py |
demo/nightshift.html from a real busy-channel page |
tools/make-basement.py |
demo/basement.html from a real small-channel page |
tools/make-themes.py |
demo/themes/*.html: pisg 1.0a run on an invented channel, once per scheme |
tools/make-docs.py |
docs/index.html from the manual in the pisg repository (see below) |
The two example-channel scripts read real stats pages from outside this repository — edit the SRC
constant at the top of each one before re-running. make-docs.py needs no editing: it reads
../pisg/docs/pisg-doc.html, so keep the pisg repository checked out next to this one. Each prints an audit at the end: if it does not say
leftover source nicks: none, a real nick made it through and the map at the top of that script needs
another entry.
GitHub Pages serves assets/* with Cache-Control: max-age=600. Push a change and a visitor who
loaded the site within the last ten minutes gets new HTML with the CSS and JavaScript they already
had — which, when the layout has changed, looks broken rather than merely stale. That happened once
on /new/themes/: the new sidebar markup with the previous stylesheet.
tools/version-assets.py prevents it. Every <link> and <script> carries ?v=<hash of the assets>, so an asset change is a new URL and the two can never come apart. The hash moves only when
something in assets/ moves.
python3 tools/make-docs.py # if the documentation changed
python3 tools/version-assets.py # always, last, before committingIt also rewrites the template inside tools/make-docs.py, so run it after the generators, never
before.
python -m http.server 8000 # from the repository root, then open http://localhost:8000Opening index.html straight from disk works for everything except demo/index.html: that page
fetch()es channels.json, and browsers refuse fetch on file://. That is a browser rule, not a
bug in the page — on a web server, including GitHub Pages, it works.
docs/index.html is generated from the manual pisg ships — docs/pisg-doc.html in the pisg
repository, which docs/xml2html.py builds from docs/pisg-doc.xml. tools/make-docs.py reads that
file, turns each <section class="option"> into a card, marks the eleven options added in 1.0a with a
badge, and adds the two chapters the shipped manual does not have: Upgrading to 1.0a (from the
release notes, docs/RELEASE-NOTES-1.0.md) and the optional tools in scripts/. It
also brings across the complete example pisg.cfg with its copy and download buttons, and rewrites
three passages for the site (the colour scheme list, the stylesheet advice, and where to get help).
So the website and the distribution cannot drift: change pisg-doc.xml, rebuild pisg-doc.html
there, then run tools/make-docs.py and tools/version-assets.py here.
cd ../pisg/docs && python3 xml2html.py pisg-doc.xml pisg-doc.html && cd -
python3 tools/make-docs.pyThe page's shell is the site's own: the same top bar as every other page, the sidebar parked under it
(filter box with a match count, scroll-spy that keeps the current entry in view), and a content column
that uses the whole window. Prose keeps a reading measure of about 78 characters; option cards, code and
the console take the width — at 1280 px and up each card puts the option's name, purpose and default
beside its description. All of it is under body.docs-page in assets/site.css.
Colours, fonts, radii and spacing are CSS custom properties at the top of assets/site.css. The
accent is a green (--accent, --accent-fill) picked to sit next to the old site's green without
copying it; change those two and the whole site follows.
The docs page is generated — edit tools/make-docs.py (or the manual it reads), not
docs/index.html. Its sidebar, option index pills and filter are all built from the chapter and
option ids, so a new option needs nothing else.
privacy/, cookies/ and terms/ are written for what this site actually is: static
pages on GitHub Pages that set no cookies, run no analytics and collect nothing. That is the easiest
compliance position there is, and the pages say so plainly rather than hedging. They cover:
- PIPEDA and Quebec Law 25 (Canada), GDPR/ePrivacy (EEA), UK GDPR/PECR, and the US state privacy laws — all of which turn on collecting, storing or tracking. None of that happens here, so there is no banner and no consent flow. If analytics, a comment system or a custom font CDN is ever added, all three pages need updating before it ships.
- GitHub as the host: named as the party that sees IP addresses, with links to its privacy statement and its international-transfer terms.
- The person publishing statistics: a plain checklist of what running pisg on a real channel means
under those same laws — tell people, honour
ignore="y", think about quotes and retention. That belongs on this site because pisg is the tool that creates the risk. - Terms: GPL first and these terms second, no warranty, a liability cap that explicitly does not override non-waivable consumer rights, takedown route, and Quebec/Canada as governing law.
The governing law is Quebec, where the maintainer lives, and the maintainer is named as the person in charge of personal information (Law 25), reachable privately through https://dooubletap.github.io/; public reports go to GitHub issues. These pages were written carefully and in good faith, but they are not legal advice — if the project wants certainty, have a lawyer read them once.
Nothing at the moment. Governing law is Quebec; the private contact route is the maintainer's page, https://dooubletap.github.io/.
GitHub Pages serves the default branch from the repository root, so a push is a deploy. Before
committing anything that touched assets/, run the version stamp (see above) — it is the one step
that is easy to forget and impossible to notice until somebody's browser shows the old stylesheet
with the new markup.
The site was built in a new/ folder first and replaced the 2016 GitHub Pages template in place.
Links to the old layout keep working: 404.html forwards /new/anything to /anything, and the
home page forwards pisg.github.io/#SomeOption — the shape of link that existed when the whole
manual lived on one page — to /docs/#SomeOption.
pisg was written in 2001 by Morten “mbrix” Brix Pedersen — https://sourceforge.net/projects/pisg/ — and is GPL-2.0-or-later. This site is about that program and carries the same licence.