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 🙏

© 2024 – Pkg Stats / Ryan Hefner

quaint-bootstrap3

v0.1.0

Published

Bootstrap v3 plugin for Quaint

Downloads

2

Readme

quaint-bootstrap3

Use Bootstrap v3.x themes with Quaint. This package also includes:

Not all Bootstrap features are currently supported, but well enough to be worthwhile.

Install

quaint --setup bootstrap3

Follow the instructions.

Sample configuration

This configuration entry must be added in the plugins field of quaint.json:

"bootstrap3": {
  "navContainerClass": "container-fluid",
  "theme": "@superhero"
}

Sample use

template :: @bootstrap3

brand ::
  @@@image:brand.svg

nav ::
  * Products
    * SliceMaster 9000
    * KillPoint MAX
    * Compactor 2000+

nav right ::
  * Contact @@ contact.html

Blah blah blah.

panel.primary %
  == Hello
  Yes

info %
  We are not responsible for any murderous uses of our products.

Template

I recommend usingthe @bootstrap3 template, which the package helpfully defines. If you wish to do something non-standard, note that the @bootstrap3 package is equivalent to the following definition:

template :: @minimal
bsnav :: dump!
container % {body}

And the @minimal template is:

doctype :: html
html %
  head %
    title %
      meta::title !! Untitled
    meta %
      http-equiv = Content-type
      content = text/html
      charset = UTF-8
    meta %
      name = viewport
      content = width=device-width, initial-scale=1
  body % {body}

Macros

brand

brand :: expression defines your site or blog's brand image/logo/text/etc. It can be any Quaint expression and will be inserted in the navbar if you use the @bootstrap3 template.

bsnav

The directive bsnav :: inserts the navbar that you filled using nav. You do not need to use this if you use the @bootstrap3 template.

nav

Use the nav macro (provided through quaint-nav) to add text and links to the navigation bar. If one of the entries contains a sub-list, it will appear as a dropdown.

nav ::
  * Nav element
  * Link @@ somewhere.html
  * Dropdown
    * ABC
    * XYZ @@ xyz

There are three nav positions: left, right and main (default). The position goes after nav but before ::. For example:

nav right ::
  * This goes right.

Components

quaint-bootstrap3 wraps some bootstrap components so that they can be used more easily. Not all components are wrapped at the moment, but it's relatively easy to do so. If you need something that's missing, file an issue and I'll look into it.

List of components:

  • alert
  • danger
  • container
  • dropdown
  • dropup
  • glyph (also !!glyph)
  • info
  • label
  • panel
  • pills
  • primary
  • success
  • table
  • tabs
  • warning

The showcase shows you how to use the components.

Options

navContainerClass (optional)

This is the class for the navbar, it can be either "container" or "container-fluid". The default is "container-fluid".

theme (optional)

If you already have a bootstrap css file you want to use, you can provide its path for that option.

You can also use any theme on bootswatch if you prefix it with @. For instance, write @united to use the united theme.