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

@combinejs/core

v0.2.2

Published

main combinejs module

Downloads

13

Readme

──────────████──████──█───██─████───███──█──█──███─────────██──███
──────────█──█──█──█──██─███─█──██───█───██─█──█────────────█──█
███──███──█─────█──█──█─█─██─████────█───█─██──███──███─────█──███──███──███
──────────█──█──█──█──█───██─█──██───█───█──█──█─────────█──█────█
──────────████──████──█───██─████───███──█──█──███───────████──███

Current version 0.2.1

> npm i -S @combinejs/core

Это повторно используемые конпоненты разметки и стилей основанные на БЭМ подходе, компилируемые под фронт или бэк, можно компилить одни и теже структуры в динамические вьюхи в идеале под любой стёк. (от языка нужна только поддержка if и циклов, c angular'ом конечно всё будет посложнее) В планах сделать под php, ejs, erb, angular, react, nativejs.

А ещё это будет модульный css с наследованием и примесями с возможностью компиляции в любой выходной формат.

Roadmap:

  1. Упростить формат.
  • Формат по типу json
  • Формат основанный на отступах
  1. Попробовать компиляцию ещё под ruby, nodejs, angular, react.
  2. Сделать несколько разных выходных форматов css (БЭМ и ещё парочка)

На сегодня:

  1. Версия 0.2.1
  2. Больше половины компонентов покрыто тестами

Наглядно:

Главный блок ORDERS

Блок Orders содержит заголовок caption на который примешивается блок OrdersCaption, и повторяемый элемент order на который будет примиксован блок Order. На сам блок Orders примискован блок TableBeauty, что делает его таблицей с заголовком c правильной семантикой. TableBeauty похож на стандартную структуру и будет позже помешен в STD lib.

Orders
  rule.mix = 'TableBeauty'

    caption
      rule.mix = 'OrdersCaption'

    order
      rule.each = 'order of orders'
      rule.mix  = 'Order'
Примесь TABLE_BEAUTY

Примесь таблицы TableBeauty задает семантику html и добавляет стили (в выходном формате пока только инлайны), плавило match уточняет как именно накладываються дочерние узлы примеси на узлы целевого блока. th с жирным шрифтом и фоном станут все дочернии узлы только первого узла tr.

TableBeauty
  html.tag    = 'table'
  css.display = 'table'

    row
      rule.match  = '*'
      html.tag    = 'tr'
      css.display = 'table-row'

        cell
          rule.match  = '*'
          html.tag    = 'td'
          css.display = 'table-cell'

    head
      rule.match      = '1'
      css.background  = '#eee'
      css.fontWeight  = '900'

        headCell
          rule.match  = '*'
          html.tag    = 'th'
Примесь ORDERS_CAPTION

В этом случае примесь является обычный require/include. В будущем будет возможно указывать можно ли совмешать элемент caption c блоком OrdersCaption на одном узле. (А ещё возможно будет умная обработка css со сложением отступов)

OrdersCaption
    id
      rule.output = '"номер"'

    title
      rule.output = '"название"'

    summary
      rule.output = '"сумма"'
Примесь ORDER

И в окончании всего на элемент order накладывается структура Order. Структура Order отвечает за вывод одного заказа, таким образом реализуется разделение логики компонентов.

Order
    id
      rule.output = 'order.id'

    title
      rule.output = 'order.title'

    summary
      rule.output = 'order.summary'

Преобразуем все это в php:

> node index -php

В результате получаем готовую view.php, которая с нетерпением ждет данные из контроллера!

<table class="orders table-beauty" styles="display:table">
  <tr class="orders__caption orders-caption table-beauty__row table-beauty__head" styles="display:table-row;background:#eee;font-weight:900">
    <th class="orders-caption__id table-beauty__cell table-beauty__head-cell" styles="display:table-cell"></th>
    <th class="orders-caption__title table-beauty__cell table-beauty__head-cell" styles="display:table-cell"></th>
    <th class="orders-caption__summary table-beauty__cell table-beauty__head-cell" styles="display:table-cell"></th>
  </tr>
  <? foreach ($orders as $order) { ?>
    <tr class="orders__order order table-beauty__row" styles="display:table-row">
      <td class="order__id table-beauty__cell" styles="display:table-cell"></td>
      <td class="order__title table-beauty__cell" styles="display:table-cell"></td>
      <td class="order__summary table-beauty__cell" styles="display:table-cell"></td>
    </tr>
    <?}?>
</table>

Скоро ещё больше фич!