The landing page of Effectified: Effect-native packages for the libraries you already use, derived from upstream's own types so they keep up with every release.
Built on Effect. Not an official Effect project. A sibling of EffectScript, and it shares its design system.
pnpm install --ignore-scripts
pnpm dev # http://localhost:4321
pnpm check # astro check
pnpm build # static site in dist/
pnpm og # re-render public/og.png from brand/og.html (needs Chrome)CLOUDFLARE_ACCOUNT_ID=<account that holds the zone> pnpm run deploycf deploy ./dist serves dist/ as an assets-only Worker, effectified-site, on the custom domain
effectified.dev (cloudflare.config.ts). Cloudflare created the DNS record and the certificate on the first deploy.
cf uses the login of cf auth; the account ID is needed when that login sees more than one account.
The site workflow deploys when what the site shows changes; nothing polls:
- a push to
mainhere; - effectified/packages calls it (
workflow_call) from its release workflow, after CI passes on itsmain; - effectified/pi's release script (
effect/scripts/release.ts) starts it (gh workflow run) after a release.
It needs two secrets, in this repository and in effectified/packages (a called workflow gets the caller's secrets):
CLOUDFLARE_API_TOKEN: an account-owned token that can edit Workers scripts and read account settings, plus edit Workers routes and read theeffectified.devzone (cf accounts tokens create).CLOUDFLARE_ACCOUNT_ID: the account that holds the zone.
The page lists every package in one place (src/components/Catalog.astro, from
src/data/library.ts): a family as a group that opens and closes, the engine's facades beside
it, with a search and filters; what a package wraps links to npmx.dev. The hero's console looks up
any npm package in the browser (npm's registry and downloads API) and answers whether Effectified wraps it. The Pi family
and its packages are in src/data/catalog.ts. The facades of
effectified/packages are a content collection
(src/content.config.ts): each one's docs.json and SKILL.md, which the engine generates
into it, read from a checkout of that repository (EFFECTIFIED_PACKAGES, a sibling ../packages, or a shallow clone).
Each facade gets a page (/<name>) with its examples, its frontend demo, its API and its skill (/<name>/SKILL.md).
The build also writes _redirects: /<name>.tgz is the tarball of each package's newest release, so the page never
names a version. The counts on the page are computed at build time; never write a number or a version into the page
by hand.
The EffectScript exhibition system on ink: Effect's zinc palette, Inter Display for headlines, Inter for body, JetBrains Mono for code and labels. The photographs stay monochrome; colour comes from code, as on effect.website:
- Code uses
effectified-dark(src/code-theme.ts): violet keywords, emerald strings, cyan for Effect's modules and types, blue functions, orange numbers, muted comments. - Type, the logo and the light are monochrome: white, white fading to zinc, white light warming and cooling. No gradient in a word, no decorative hue.
- Colour means something. Effect's concepts each have one (
src/data/terms.ts):Effect,Layer,Stream,Scope, tagged errors,Schema,Fiber, services. Copy marks a term with backticks andProse.astropaints it in its colour, with what it means on hover; a contract promise or a card of the "why" section, and the promise's niche of light, take the colour of the concept it is about, and stay white when it is about none. - Each package kind has one colour from the code palette, shown as a dot.
- The signal colours (✓ pass, ! fail, ▲ warn, ◇ need) still mark state only, always with their glyph.
The logo is built from Inter Display Bold by scripts/logo.py
(uv run --with fonttools --with brotli --with uharfbuzz python scripts/logo.py): the wordmark "Effectified",
kerned, with square i-dots; and the mark, two brackets closed around a solid square, a library wrapped, drawn in the
wordmark's units (brackets a capital high, stroke three quarters of the i's stem, the square one and a half i-dots).
The script writes the path data the site renders inline (src/data/logo.json, used by Logo.astro, whose brackets
close and i-dots land as the page opens), public/logo.svg, public/mark.svg
(currentColor), public/favicon.svg and white masters in brand/logo/. White
on black or black on white only. Never use the Effect logo, and describe the project as "built on Effect", never as
official or endorsed.
Fonts are subsets of Inter and JetBrains Mono under the SIL Open Font License (brand/).
Four monochrome scenes light the page's rooms: hero (the bracket monoliths around a cube of light), contract
(six wells of light), pipeline (raw stone, bracketed, lit) and field (every library, wrapped). Each room keeps
its copy on ink through a gradient scrim, never in a box. No people, no text and no logo inside an image.
- Masters:
brand/key-visuals/*.jpg, 3840 px wide, generated withgpt-image(gpt-image-2.6-sunburst, quality max, complexity high) from the briefs inbrand/key-visuals/prompts/: four drafts each, the best one rendered at 4K. - Web sizes:
uv run --with pillow python scripts/images.pywritespublic/lp/<name>-<width>.webp(828, 1440, 2560, 3840) from the masters;src/components/Scene.astroserves them as asrcset. pnpm ogrenderspublic/og.pngfrombrand/og.htmlover the hero master.
Over each key visual, a WebGPU canvas renders the same photograph with its light moving
(src/light/, through vgpu). Photographs and light stay monochrome: white light whose
temperature drifts between warm and cool.
hero: shafts of the cube's light escape past the stone (soft shadows baked once from the brackets' measured geometry) into drifting fog; dust glitters where it is lit, the wet floor shimmers. The pointer stirs the fog and scatters the dust; a press sends a ring through the fog.contract: six niches of white light, smoke rising from their floors; while a promise is hovered, focused or being read (the contract pins on wide screens and walks through the promises as you scroll), its niche brightens and takes the colour of the promise's concept.pipeline: spotlights through dusty air; a pulse runs along the ledge to the cube, which flares. Hovering a station brightens its spotlight.field: a wave rolls out to the horizon, flaring each library it reaches past white; a press sends a ring across the field.
Each scene's shader is src/light/<scene>.wgsl, sharing common.wgsl; positions in a shader are measured on the
photograph, in its uv, so a new master needs them measured again. The canvas fades in once rendered, after the
photograph's own entrance. On an HDR display (dynamic-range: high, a browser with extended canvas tone mapping) the
lights rise past SDR white; elsewhere they shoulder into it. Under prefers-reduced-motion each scene holds one still
frame. Without WebGPU, the photographs show alone.
MIT
