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

@saltcorn/bootstrap-prompt-theme

v0.1.6

Published

Bootstrap 5 layout plugin with LLM-generated CSS overlay

Downloads

743

Readme

bootstrap-prompt-theme

A Saltcorn layout plugin that uses a conversational AI chat to design and refine a CSS overlay on top of standard Bootstrap 5.3.

Relation to any-bootstrap-theme

This plugin is derived from @saltcorn/any-bootstrap-theme. The original plugin offers a large set of configuration variables (colors, card styles, link colors, etc.) that are fed into a Sass build to produce a fully compiled Bootstrap CSS file per theme.

This variant generates a lightweight CSS overlay by chatting with an LLM. Bootstrap 5.3 exposes almost everything through CSS custom properties (--bs-*), so a well-written overlay can restyle the entire UI without recompiling Sass.

Trade-offs:

  • Much simpler setup — no Sass toolchain, no build step
  • Describe or refine your theme in plain language through a persistent chat
  • The AI applies changes immediately without requiring a page save

Requirements

  • Saltcorn with the @saltcorn/large-language-model plugin installed and configured
  • Saltcorn with the @saltcorn/agents plugin installed

Model recommendation: Good results have been achieved with @saltcorn/large-language-model configured to use GPT-5.4.

Usage

  1. Go to Plugins → bootstrap-prompt-theme → Configure
  2. Use the AI Theme Chat to describe the visual style you want
  3. The AI generates and applies the CSS overlay immediately — no Save needed
  4. Continue the conversation to refine colors, fonts, spacing, dark mode, or anything else
  5. Use Clear conversation to start fresh with a new theme direction

The chat history is persisted across page reloads, so you can return to the configuration page and pick up where you left off.

Visual feedback

If the @saltcorn/page-to-pdf plugin is installed, the AI can capture a screenshot of a live page after each CSS change and use it to self-correct. To enable this, mention a page name in your message:

You:      A dark cyberpunk theme. Use the "dashboard" page for visual feedback.

AI:       [applies CSS overlay, captures screenshot, refines if needed]

The page name is remembered for the rest of the conversation — you only need to mention it once. The AI will tell you whether a screenshot was received and used for refinement, or explain if it failed.

Example conversation

You:      A dark cyberpunk theme with neon green accents, deep charcoal
          backgrounds, monospace font, and glowing borders on cards.

AI:       [applies CSS overlay]

You:      Make the navbar background slightly lighter and increase the
          card border glow intensity.

AI:       [applies updated CSS overlay]

How the overlay works

The generated file sets CSS custom properties in :root that Bootstrap 5.3 reads at runtime:

:root {
  --bs-body-bg: #1a1a2e;
  --bs-body-color: #e0e0e0;
  --bs-primary: #00ff88;
  --bs-card-bg: #16213e;
  /* ... */
}

[data-bs-theme="dark"] {
  --bs-body-bg: #0d0d1a;
  /* ... */
}

.card { border: 1px solid #00ff88; box-shadow: 0 0 8px #00ff88; }
.navbar { background-color: #16213e; }
/* etc. */

Licensing

MIT