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

@innoq/fractal-fork

v1.0.3

Published

A fork of the popular Fractal Pattern Library

Downloads

1,479

Readme

@innoq/fractal-fork

This is a fork of the open-source Fractal tool for helping you build and document website component libraries and design systems.

Those familiar with Fractal will know that it is a great tool for developing lightweight frontend components without being dependent on any heavy JavaScript framework.

Unfortunately, Fractal has suffered over the years with out-of-date dependencies and is now officially unmaintained. We have used Fractal successfully in customer projects and therefore have the desire to maintain a version of Fractal with up-to-date dependencies. Since we do not use all of the features of the official branch, we are am providing this fork instead.

The goal of this fork is to maximize maintainability for customer projects and not to provide complete feature parity with the official branch. The project is therefore developed with the following concrete goals:

  1. Maximize maintainability by reducing size of source code
  2. Minimize number of dependencies

We use real Fractal projects to test any changes that we make to the source code. However, this also means that any feature that we do not personally use for any Fractal projects is at risk of being removed in the future (especially if it uses dependencies which are poorly maintained).

Migration Guide from @frctl/fractal to @innoq/fractal-fork

The changes to offical Fractal branch are listed here as follows:

  • @innoq/fractal-fork uses a single repository for ease of deployment. To migrate from @frctl/fractal to @innoq/fractal-fork do the following:
    • Replace require('@frctl/core') with require('@innoq/fractal-fork').core
    • Replace require('@frctl/fractal') with require('@innoq/fractal-fork').fractal
    • Replace require('@frctl/handlebars') with require('@innoq/fractal-fork').handlebars
    • Replace require('@frctl/mandelbrot') with require('@innoq/fractal-fork').mandelbrot
    • Replace require('@frctl/web') with require('@innoq/fractal-fork').web
  • Replace the fractal command in your package.json scripts with fractal-fork
  • Automatic port discovery is not supported for @innoq/fractal-fork. If a port is blocked, @innoq/fractal-fork will quit with an error and it is the developer's responsibility to set a different port via --port.
  • @innoq/fractal-fork does not support the --sync option for the start command. This simplifies the implementation and avoids security vulnerabilities introduces by the browser-sync dependency
  • @innoq/fractal-fork does not support the twig, nunjucts, or react adapters (if you still need them, it should be possible for you to maintain a separate fork for those adapters)
  • @innoq/fractal-fork does not support the new CLI command (it's a command that is rarely used because it is only necessary to create the repository once. The alternative is to create the repository structure and fractal.config.js by hand. The CLI command was one area which had horrible dependencies which needed to be removed)
  • The CLI output for @innoq/fractal-fork is much less pretty -- there are no colors and the console never overwrites previous log output. This means particularly for the build command that the console output is much longer

Read the full Fractal documentation

Introduction to Fractal

Component (or pattern) libraries are a way of designing and building websites in a modular fashion, breaking up the UI into small, reusable chunks that can then later be assembled in a variety of ways to build anything from larger components right up to whole pages.

Fractal helps you assemble, preview and document website component libraries, or even scale up to document entire design systems for your organisation.

Check out the documentation for more information.

Getting started

Install into your project (recommended)

npm install @innoq/fractal-fork --save-dev

Then create your fractal.config.js file in the project root, and configure using the official documentation but keeping in mind the changes to imports listed out in the migration guide.

An example pattern library using the @innoq/fractal-fork library can be found in the example folder.

Then you can either run npx fractal-fork start to start up the project, or create an alias under the scripts section in your package.json as a shortcut.

e.g.

"scripts": {
    "fractal:start": "fractal-fork start",
    "fractal:build": "fractal-fork build"
}

then

npm run fractal:start

Submitting pull requests

We welcome pull requests, but cannot guarantee that they will be reviewed in a timely way. Please submit PRs against main branch with an explanation of your intention.

Development

Testing

Existing tests can be run using the npm test command.

License

MIT