npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@profitlich/template-toolkit

v7.8.0

Published

Shared SCSS layout system, JS utilities, components and build scripts for profitlich template repos

Readme

@profitlich/template-toolkit

Gemeinsamer Unterbau der Website-Projekte: SCSS-Layoutsystem, JS-Utilities, Komponenten, Build- und Deploy-Skripte – und die Arbeitsregeln dazu. Eingebunden wird es von template-craftcms, template-kirbycms und allen daraus abgeleiteten Projekten.

Wie Toolkit, Vorlagen und Projekte zusammenhängen und was auf welche Ebene gehört, steht im Unternehmenshandbuch. Diese README beschreibt das Paket selbst.

Inhalt

| Bereich | Import | Beispiele | | --- | --- | --- | | SCSS | pkg:@profitlich/template-toolkit/scss/forward | size(), columns(), font(), marginPadding(), mediaquery(), Capsize | | Utilities | …/utils/<Name> | MediaQueries, VwBody, BodyScrolled, ImagesLoaded, MailAdresses | | Komponenten | …/components/… | MenuToggle, MuxPlayer | | Dev-Toolbar | …/dev | initDev(config, { toggles }), Raster-Overlay | | Vite/PostCSS | …/vite/<Name> | Bausteine für vite.config.js (…/vite/config: defineDebug, buildOptions, serverOptions, scssOptions), postcssPlugins, postcssBreakpointDry, jsonToScss, capsizeSassFunctions | | ESLint | …/eslint/config | eslintConfig() – Grundkonfiguration, das Projekt stellt seine ignores voran | | Skripte | …/scripts/<Name> | copy-files, deploy, pagespeed |

Die vollständige Liste steht unter exports in der package.json. Was jede Funktion tut, steht in ihrem JSDoc.

Arbeitsregeln für Projekte

Die Regeln, wie man in diesem Stack arbeitet – ddev, Vite, SCSS, Debug-Code, Performance –, liegen hier und reisen mit dem Paket:

| Datei | gilt für | | --- | --- | | CLAUDE.project.md | alle Projekte | | CLAUDE.craftcms.md | Craft-Projekte | | CLAUDE.kirbycms.md | Kirby-Projekte | | CLAUDE.md | nur die Arbeit an diesem Repo |

Bei jedem npm run copy (also auch bei build und dev) schreibt scripts/sync-conventions.js die passenden Dateien in die CLAUDE.md des Projekts, zwischen zwei Marken:

<!-- toolkit:start -->
<!-- toolkit:end -->
  • Nur zwischen den Marken wird ersetzt. Projekteigene Regeln stehen darunter und gehen im Konfliktfall vor.
  • Kopiert, nicht verlinkt, weil Claude nichts aus node_modules liest.
  • An die installierte Version gebunden: Neue Regeln erscheinen beim Versions-Bump als Git-Diff der CLAUDE.md, zusammen mit dem Code, zu dem sie gehören.
  • Die Vorlagen behalten die Marken leer. Ein neues Projekt erbt das leere Paar und füllt es beim ersten copy aus seiner eigenen Toolkit-Version.

Aktivieren lässt es sich in zwei Schritten, beide in den Vorlagen schon erledigt: die Marken in der CLAUDE.md und im Projekt

// scripts/copy-files.js
run(copyTasks, { template: 'craftcms' }); // oder 'kirbycms'

Eine neue Regel gehört hierher, wenn sie den Stack betrifft, in die Sorten-Datei, wenn sie nur ein CMS betrifft, und unter den Block im Projekt, wenn sie nur dort gilt.

Ein Projekt auf eine neue Version heben

  1. In CHANGELOG.md von der bisherigen Version aufwärts lesen. Jede Breaking Changes-Sektion enthält ein Migrations-Diff.
  2. ddev npm install @profitlich/template-toolkit@^X.Y.Z
  3. ddev npm run build: Damit wird auch der Regelblock der CLAUDE.md erneuert. Den Diff durchsehen.

Am Toolkit arbeiten

Der Release-Ablauf und die Besonderheiten dieses Repos stehen in CLAUDE.md. Kurz: Änderung mit Changelog-Eintrag unter [Unreleased], dann ein Versions-Commit mit Tag, dann npm publish, dann die Projekte heben.