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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@optionfactory/ful

v6.0.0

Published

- Import the lib via CDN:

Downloads

58

Readme

Getting started

  • Import the lib via CDN:
<script src="https://cdn.jsdelivr.net/npm/@optionfactory/ful@{VERSION}/dist/ful.iife.min.js" integrity="sha384-{INTEGRITY}" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://cdn.jsdelivr.net/npm/@optionfactory/ful@{VERSION}/dist/ful-client-errors.iife.min.js" integrity="sha384-{INTEGRITY}" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

🧱 Elements

📊 <ful-table> :

It allows you to display and interact with paginated, sortable, and filterable data

⚙️ Attributes

| Attribute | Type | Description | |------------|------|-------------| | src | string | The API endpoint to fetch data from. | | method | string | HTTP method to use . Default: GET. | | autoload | boolean | Automatically loads data when the component is mounted. | | page-size | number | Number of items per page. | | loader | string | Optional custom loader (default: loaders:table). |

🧩 Structure

  • <schema> — defines the columns and how data is rendered. Each <column> can have:
    • title: Column header label
    • sorter: Field name for sorting
    • order: Initial order (asc or desc)

💡 Example

<ful-table src="/api/users/" autoload page-size="5">
  <schema>
    <column title="ID" sorter="id" order="asc">{{ id }}</column>
    <column title="Name" sorter="name">{{ name }}</column>
    <column title="Email">{{ email }}</column>
  </schema>
</ful-table>
  • Loads user data from /api/users/
  • Displays a paginated, sortable table
  • Allows searching by name via the filter input
  • Requires no additional JavaScript

🧮 Filters

Filters are placed inside a container with the slot filters : <div slot="filters"> , and are sent automatically with the table request.

Each filter returns a structured value automatically :

| Filter | Example Value | | ------------------------- | ----------------------------------------- | | <ful-filter-text> | ["CONTAINS", "IGNORE_CASE", "mario"] | | <ful-filter-local-date> | ["BETWEEN", "2024-01-01", "2024-12-31"] | | <ful-filter-instant> | ["GTE", "2024-03-12T08:00:00.000Z"] |


✨ Available Filters

| Filter Tag | | Input Type | Operators | | ------------------------- | ------------------------------------------------------- | -------------- | ------------------------------------------------ | | <ful-filter-text> | | text | CONTAINS, STARTS_WITH, ENDS_WITH, EQ | | <ful-filter-local-date> | | date | EQ, NEQ, LT, GT, LTE, GTE, BETWEEN | | <ful-filter-instant> | | datetime-local | same as LocalDate |


💡 Example

<ful-table src="/your_api/" autoload page-size="10">
  <div slot="filters" class="row mb-3">
    <ful-filter-text class="col" name="byName">Nome</ful-filter-text>
    <ful-filter-instant class="col" name="byCreatedAt">Data</ful-filter-instant>
    <div class="col-auto align-content-end">
      <button type="submit" class="btn btn-primary">
        <i class="bi bi-search"></i>
      </button>
    </div>
  </div>

  <schema>
    <column title="Nome" sorter="byName">{{ name }}</column>
    <column title="Email">{{ email }}</column>
    <column title="Data">{{ createdAt }}</column>
  </schema>
</ful-table>

⚙️ Filter Attributes

| Attribute | Type | Description | | ------------ | -------------- | --------------------------------------------------------------- | | name | string | Parameter name sent with the request | value | array (JSON) | Sets an initial operator and value.


⚙️ Backend Integration

Filters work seamlessly with the backend using net.optionfactory.spring.data.jpa.filtering.filters.

📝 Note: Annotate the fields in your entity with the appropriate filter annotations (e.g. @InstantCompare, @LocalDateCompare, @TextCompare). The values sent from <ful-table> are automatically matched and processed by the backend.