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

@bloodhoundenterprise/doodleui

v1.0.0-alpha.11

Published

<p align="center"> <img src="https://img.shields.io/badge/version-1.0.0--alpha.11-teal" alt="version 1.0.0-alpha.11"/> <a href="https://ghst.ly/BHSlack"> <img src="https://img.shields.io/badge/BloodHound Slack-4A154B?logo=slack&logoColor=EEF0F2" alt="

Downloads

393

Readme

DoodleUI

A component library for use with BloodHound Community Edition and BloodHound Enterprise.

This library is written in TypeScript and leverages Radix components as its foundation via shadcn. Tailwind CSS is used for styling along with Class Variance Authority for creating opinionated variants as defined by our design system.

Installation

Using TailwindCSS

  1. Install TailwindCSS
  2. Install DoodleUI (example using yarn shown below)
$ yarn add @bloodhoundenterprise/DoodleUI
  1. Update your Tailwind configuration to include the DoodleUI plugin, preset and content
import { DoodleUIPlugin, DoodleUIPreset } from '@bloodhoundenterprise/doodleui';

module.exports = {
  content: [
    "./src/**/*.{html,js}" // your application source code
    "node_modules/@bloodhoundenterprise/doodleui/dist/index.js" // DoodleUI components
  ],
  plugins: [DoodleUIPlugin],
  presets: [DoodleUIPreset],
  ...
}

These configuration options provide the base theme customizations and additional utility classes required to render DoodleUI components in alignment with the design system used by BloodHound Community Edition and BloodHound Enterprise.

Manual Installation

  1. Install DoodleUI (example using yarn shown below)
$ yarn add @bloodhoundenterprise/DoodleUI
  1. Add the DoodleUI stylesheet to your application
<link rel="stylesheet" href="node_modules/@bloodhoundenterprise/doodleui/dist/styles.css">

Developer Notes

Dependencies

These components are built for usage with the Roboto font though there are fallback fonts in place if Roboto is not found. The Roboto font will need to be included in your project's assets or it will need to be pulled in via CDN for the font to display as expected.

Via Fontsource:

yarn add @fontsource/roboto

Then import the font in your entrypoint:

import '@fontsource/roboto/400.css';

Getting Started

Clone this repository

git clone [email protected]:SpecterOps/DoodleUI.git

Install dependencies with yarn

cd DoodleUI
yarn

Start the dev server

yarn dev

Other Scripts

| Command | Description | | --------------------------------- | ---------------------------------------------------- | | dev | Start the dev server | | build | Build the component library | | lint | Run linter checks | | test | Run vitest | | storybook | Same as dev | | build:storybook | Build storybook documentation | | build:styles | Generate CSS via TailwindCSS | | generate-index | Update src/components/index.ts automatically | | create-component | Create a new component in src/components | | format:check | Check file formatting | | format:write | Fix file formatting | | update-badge | Updates the version badge in the README |

Licensing

Copyright 2024 Specter Ops, Inc.

Licensed under the Apache License, Version 2.0
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Unless otherwise annotated by a lower-level LICENSE file or license header, all files in this repository are released under the Apache-2.0 license. A full copy of the license may be found in the top-level LICENSE file.