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

@construct-space/ui

v0.7.4

Published

Construct UI — Vue 3 component library for Construct services

Readme

@construct-space/ui

Vue 3 component library for Construct services. Shared components, layouts, composables, and design tokens for apps, infra surfaces, and spaces.

Install

npm install @construct-space/ui
# or
bun add @construct-space/ui

Peer Dependencies

npm install vue reka-ui @iconify/vue

Usage

// Always import shared styles once in your app entry.
// No extra Tailwind setup is required in the consumer.
import '@construct-space/ui/style.css'

// Import components individually
import { Button, Input, Modal, Notification, SplitPane } from '@construct-space/ui'

// Or register all components globally with a C prefix:
// CButton, CInput, CModal, CNotification, ...
import { createApp } from 'vue'
import ConstructUI from '@construct-space/ui'

const app = createApp(App)
app.use(ConstructUI)

Tabs And Groups

<script setup lang="ts">
import { ref } from 'vue'
import { Tabs, Tab, Group, Button } from '@construct-space/ui'

const activeTab = ref('developer')
</script>

<template>
  <Tabs v-model="activeTab" variant="segmented">
    <Tab label="Developer" value="developer">
      <Group gap="sm">
        <Button label="Install CLI" />
        <Button label="Run Dev" variant="soft" />
      </Group>
    </Tab>

    <Tab label="Environment" value="environment">
      Runtime checks go here.
    </Tab>
  </Tabs>
</template>

Tabs supports both patterns:

  • :items="[{ label, value }]" plus named slots
  • Declarative <Tab label="..." value="...">...</Tab> children

Components

| Category | Components | |----------|-----------| | Form | Button, Input, Textarea, Select, SelectMenu, Autocomplete, DatePicker, FileInput, MultiSelect, Checkbox, RadioGroup, Switch, Slider, ColorPicker, FormField, ToggleGroup | | Layout | Card, Modal, ConfirmationModal, Drawer, Slideover, Popover, DashboardPanel, PanelSection, PropRow, Separator, ScrollArea, SplitPane, Group | | Data | Table, Calendar, Tree, Timeline, Pagination | | Feedback | Alert, Badge, Chip, Progress, Skeleton, Empty, Notification | | Menu | Dropdown, DropdownMenu, DropdownMenuItem, ContextMenu, Tabs, Tab | | Display | Icon, Avatar, Accordion, Tooltip, Kbd, Breadcrumbs | | Shell | Sidebar3D, Toolbar3D, SidebarLayout, HeaderLayout |

Layouts

<!-- 60px icon sidebar (billing, delivery pattern) -->
<SidebarLayout
  :nav-items="[{ icon: 'home', label: 'Dashboard', to: '/', active: true }]"
  user-name="John"
  @navigate="router.push($event)"
  @logout="auth.logout()"
>
  <router-view />
</SidebarLayout>

<!-- Top header bar -->
<HeaderLayout
  service-name="domains"
  :nav-items="[{ label: 'Dashboard', to: '/' }]"
>
  <router-view />
</HeaderLayout>

Composables

import { useNotification, useAuth } from '@construct-space/ui'

// Notification state
const { add, remove, clear } = useNotification()
add({ title: 'Saved', color: 'success' })

// Auth session management
const { user, login, logout, checkSession } = useAuth({
  mePath: '/api/auth/me',
  loginPath: '/api/auth/login',
})

Notes

  • Prefer Notification and useNotification(). They are the primary feedback API.
  • Import @construct-space/ui/style.css once per app. Components rely on that stylesheet for tokens and generated utility CSS.

Theming

Override CSS variables to customize colors per service:

:root {
  --app-accent: #d4a843;      /* billing: gold */
  --app-accent: #ec4899;      /* domains: pink */
  --app-accent: #FF2D55;      /* delivery: red */
  --app-background: #18181b;
  --app-foreground: #fafafa;
  --app-border: #27272a;
}

License

MIT