No description
  • TypeScript 75.4%
  • CSS 21%
  • JavaScript 3.4%
  • Shell 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-30 12:42:26 +02:00
.husky lint 2026-06-27 08:41:56 +02:00
css Add reset.css 2026-07-29 00:03:27 +02:00
demo lint 2026-07-22 17:49:09 +02:00
locale translation update 2026-07-24 04:21:04 +02:00
scripts Add reset.css 2026-07-29 00:03:27 +02:00
src Start dialog z-index at the CSS base value of 1000 2026-07-25 12:40:07 +02:00
test use apiUrl instead of direct url speccifications 2026-07-22 08:16:22 +02:00
.gitignore JS => TS 2026-06-24 22:35:17 +02:00
.prettierignore Add reset.css 2026-07-29 00:03:27 +02:00
.prettierrc lint 2026-06-27 08:41:56 +02:00
AGENTS.md lint 2026-06-27 08:41:56 +02:00
eslint.config.mjs 0.2.2: add locale 2026-07-23 08:56:03 +02:00
jest.config.js JS => TS 2026-06-24 22:35:17 +02:00
LICENSE first commit 2026-06-24 16:21:02 +02:00
package.json 0.2.7 2026-07-30 12:42:26 +02:00
pnpm-lock.yaml update simple-datatables 2026-07-30 12:42:16 +02:00
README.md Add reset.css 2026-07-29 00:03:27 +02:00
tsconfig.json Add e2ee helpers and zip file handler; make progress widgets non-blocking 2026-07-14 19:00:06 +02:00

fwtoolkit

fwtoolkit logo

Fidus Writer Toolkit — reusable TypeScript utilities, UI helpers and styles originally written for Fidus Writer but usable in any browser project.

JavaScript usage

import { escapeText, addAlert } from "fwtoolkit"
import { convertDataURIToBlob } from "fwtoolkit/blob.js"

TypeScript

The source is written in TypeScript and ships with declaration files:

import { Dialog } from "fwtoolkit/dialog.js"

CSS

The package ships the styles for its UI components under fwtoolkit/css/. Load at least colors.css and the component styles you need. If the host page has not already applied a CSS reset, also load reset.css before the component styles:

<link rel="stylesheet" href="node_modules/fwtoolkit/css/reset.css" />
<link rel="stylesheet" href="node_modules/fwtoolkit/css/colors.css" />
<link rel="stylesheet" href="node_modules/fwtoolkit/css/dialog.css" />
<link rel="stylesheet" href="node_modules/fwtoolkit/css/buttons.css" />

In Fidus Writer the CSS is copied automatically to the static files directory by the copy_fwtoolkit_css postinstall step.

Demos

Live demos are published on Codeberg Pages:

https://fiduswriter.codeberg.page/fwtoolkit/

To build and deploy the demos yourself, run:

npm run build
./scripts/deploy-pages.sh

You will also need to configure a Forgejo webhook in the repository settings with the target URL https://fiduswriter.codeberg.page/fwtoolkit and branch filter pages.

Development

npm install
npm run build
npm test

Contents

  • src/ — TypeScript source
  • dist/ — compiled JavaScript and declaration files (generated by npm run build)
  • css/ — component styles and a minimal colors.css
  • demo/ — Codeberg Pages demo site
  • test/ — Jest tests