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

@finema/finework-layer

v0.2.104

Published

A comprehensive Nuxt Layer providing reusable components, composables, layouts, and utilities for Finework applications.

Readme

@finema/finework-layer

A comprehensive Nuxt Layer providing reusable components, composables, layouts, and utilities for Finework applications.

Version License

📚 Documentation

For Developers

For LLM/AI Assistants

  • LLM Guide - Comprehensive guide for AI code generation

🚀 Features

  • Authentication System - Complete auth flow with permissions
  • Layout Components - Admin and User layouts
  • Data Loading - Smart loading states with StatusBox
  • Form Handling - Validation with Valibot
  • Type Safety - Full TypeScript support
  • Auto-imports - Components, composables, and constants
  • Middleware - Auth, permissions, and route guards
  • UI Components - Built on @nuxt/ui

📦 Installation

pnpm add @finema/finework-layer

🎯 Quick Start

1. Extend the Layer

// nuxt.config.ts
export default defineNuxtConfig({
  extends: ["@finema/finework-layer"],

  runtimeConfig: {
    public: {
      baseAPI: process.env.NUXT_PUBLIC_BASE_API,
    },
  },
});

2. Create Your First Page

<template>
  <LayoutAdmin label="Dashboard" :items="navItems">
    <StatusBox :status="data.status.value" :data="data.data.value">
      <template #default="{ data }">
        <Card>
          <h1>Welcome, {{ data.name }}!</h1>
        </Card>
      </template>
    </StatusBox>
  </LayoutAdmin>
</template>

<script setup lang="ts">
definePageMeta({
  middleware: ["auth"],
});

const data = useObjectLoader({
  method: "GET",
  url: "/api/dashboard",
  getRequestOptions: useRequestOptions().auth,
});

onMounted(() => data.run());

const navItems = [
  { label: "Dashboard", to: "/dashboard", icon: "i-heroicons-home" },
];
</script>

🏗️ Project Structure

@finema/finework-layer/
├── app/
│   ├── components/          # Reusable components
│   │   ├── Button/         # Button variants
│   │   ├── Layout/         # Layout components
│   │   ├── InfoItemList.vue
│   │   └── StatusBox.vue
│   ├── composables/        # Vue composables
│   │   ├── useAuth.ts
│   │   └── useRequestOptions.ts
│   ├── constants/          # App constants
│   │   └── routes.ts
│   ├── middleware/         # Route middleware
│   │   ├── auth.ts
│   │   ├── permissions.ts
│   │   └── guest.ts
│   └── app.config.ts       # App configuration
├── .playground/            # Development playground
└── docs/                   # Documentation

🎨 Key Components

StatusBox

Handles loading, error, and empty states automatically.

<StatusBox :status="loader.status.value" :data="loader.data.value">
  <template #default="{ data }">
    <!-- Your content -->
  </template>
</StatusBox>

InfoItemList

Display key-value information in a clean layout.

<InfoItemList
  :items="[
    { label: 'Name', value: user.name },
    { label: 'Email', value: user.email },
    { label: 'Active', value: user.is_active, type: 'boolean' },
  ]"
/>

Layouts

Pre-built layouts for admin and user interfaces.

<LayoutAdmin label="Admin Panel" :items="navigationItems">
  <!-- Your content -->
</LayoutAdmin>

🔐 Authentication

Built-in authentication system with permission management.

const auth = useAuth();

// Check authentication
if (auth.isAuthenticated.value) {
  console.log("User:", auth.me.value);
}

// Check permissions
if (auth.hasPermission(UserModule.PMO, Permission.ADMIN)) {
  // User has PMO admin access
}

🛠️ Development

Setup

# Install dependencies
pnpm install

# Start development server
pnpm dev

# Build for production
pnpm build

# Run linter
pnpm lint

# Fix linting issues
pnpm lint:fix

Working on the Layer

The .playground directory is used for development and testing. It imports the layer itself, allowing you to test changes in real-time.

# Start playground
pnpm dev

📝 Publishing

# Update version and create changelog
pnpm release

# Or manually
npm publish --access public

🤝 Contributing

  1. Create a feature branch
  2. Make your changes
  3. Run tests and linting
  4. Submit a pull request

📄 License

MIT License - see LICENSE file for details

🔗 Links

📞 Support

For issues and questions:

  1. Check the Troubleshooting Guide
  2. Review Component Examples
  3. Consult the API Reference

Version: 0.2.50 Last Updated: 2025-11-07 Maintained by: Finema Team