Skip to content
jefriPublic

About

JEFRi Jiffies: minimal helpers & polyfills.

Resources

Stars

6 stars

Watchers

2 watching

Forks

Repository files navigation

Jiffies

JEFRi Jiffies are common utilities for JavaScript and TypeScript. They are pulled from and inspired by other programming languages, and fill gaps or inconsistencies between DOM and Node runtimes.

npm install @davidsouther/jiffies

Jiffies requires Node 22.18 or newer. Source is TypeScript that runs unbuilt under Node, so every import path ends in .ts:

import { Ok, Err } from "@davidsouther/jiffies/result.ts";
import { getLogger } from "@davidsouther/jiffies/log.ts";

Utilities

Module Usage
assert Common runtime assertions.
compress URL-safe string compression. compress/index.ts selects Node or Web code for its runtime. Adapters are also available as compress/node.ts and compress/web.ts.
context A JavaScript implementation of the Python with statement.
display A TypeScript implementation of the Rust Display trait.
equal Deep equality checkers, including TypeScript type checking.
log A log4j-style logger.
result Rust-style Option and Result types.

Microframeworks

Module Purpose
dom A tiny functional DOM library with hydration, routing, and forms. See src/dom/README.md.
sh Streamlined, idiomatic, safe shell wrappers.
server A Node HTTP server with middleware and live reload.
ssg A static site generator built on dom.
release CalVer npm releases and Trusted Publishing setup, exposed as the jiffies-release command.

A runnable hydration example lives in demo/hydration.

Agent skills

The skills folder holds agent skills that document how to use Jiffies in other projects.

Skill Use it for
using-jiffies-dom Building UI with the dom module.
jiffies-css-components Composing pages from component functions.
using-jiffies-sh Running external commands from Node scripts.
using-jiffies-release Cutting CalVer releases and publishing without a token.
using-ssg-cli Setting up a static site build.

Development

To work on Jiffies, start with DEVELOPMENT.md.

License

See LICENSE.

About

JEFRi Jiffies: minimal helpers & polyfills.

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages