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

@daytona/living-design-system

v0.4.5

Published

A component management system, which handles building, testing, and serving your application and all you have to worry outout is the UI, automatically creating a HTTP-server serving your Views, a full styleguide, rendering your components as partials, bun

Downloads

23

Readme

Living Design System (LDS)

LDS is a component management service, defining a way to write and manage components, modules and view, which makes it easy to maintain, view and develop.

One folder per component

A component is a folder with all its defining assets within, like CSS, JavaScript, Template, default JSON data, configurations, screenshots, examples and description. for instance:

 - MyComponent
  -- index.css
  -- index.js
  -- index.hbs
  -- default.json
  -- readme.md

By handling all component specifications in one place we can easier make sure CSS, JS and HTML are functioning together. And works as an instance independent on where in the DOM you put it.

Further more, by relying on a standardized way of strucuring your components, we can then parse the file structure and get a complete library of all components and their dependencies.

Living design system, is a way to handle this standardized way of structuring components, by indexing them, bundlinge their assets, serving them as templating partials, and creating an API allowing us to render them in isolation or modifying them.

LDS consists of several vital parts to make your job easier.

  • LDS Build: compiles and bundles all assets into a public folder.
  • LDS Parser: Parses the file structure, returning a LDS object with all your components
  • LDS Engine: Reads all template files and serves them as partials
  • LDS Server: Starts up a HTTP server serving your prototype, styleguide, api
  • LDS CLI: Defines a "lds" namespace in terminal, enabling commands for, starting server, building and watching assets and generating new projects or components.
  • LDS API: defines a set of endpoints to present, render or update your components.
  • LDS Styleguide: Creates a complete styleguide of your components, to get a better overview.
  • LDS Create: Generator for creating new components, modules, helpers, views or projects.
  • LDS Test: Tests the status of your components and makes sure you don't commit any bugs.
  • LDS Editor: Opens the views in edit-mode, with the possibility to to update page data according to defined schemas.

You can configure the file structure or templating engine, using the lds.config.js in your root project directory. Read more about configuration in out documentation

Installation

Install lds by installing it as global dependency

$ npm install -g @daytona/living-design-system
$ lds init myProject

or just

$ lds init

to set it up in current folder

This sets up a folder structure (which you can change) and a config file (lds.config.js) with all the paths and configurations of your project, and a simple example component.

To start up the server run command

$ lds start

This builds your assets, creating a watch task for file changes in your project and starts up a KOA.js server with routes for all your views and for a separate styleguide presenting your components and views, as well as a API, with commands to manage you design system.

Documentation