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

@ambita/infoland-component-library

v0.0.18

Published

Component library with models, views, and API services, for Vue and Riot.js (with Vue wrappers)

Readme

Infoland Component Library

Vue 3 component library with Riot.js wrappers (Vue-mounted).

📦 This library replaces infoland-flex-search

If you're migrating from infoland-flex-search, see the Migration Guide.

🎯 Quick Start

Vue 3

npm install @ambita/infoland-component-library
// main.ts
import { initLibraryConfig } from '@ambita/infoland-component-library/vue'
import '@ambita/infoland-component-library/vue/style.css'

initLibraryConfig({
  environment: import.meta.env.VITE_INFOLAND_ENV
})
<script setup lang="ts">
import { SearchComponent } from '@ambita/infoland-component-library/vue'
</script>

<template>
  <SearchComponent />
</template>

Riot.js (recommended lifecycle helper)

import { initLibraryConfig, useOfsInRiot } from '@ambita/infoland-component-library/riot'
import '@ambita/infoland-component-library/riot/style.css'

initLibraryConfig({
  environment: 'beta'
})

this.on('before-mount', () => {
  this.ofs = useOfsInRiot(this, {
    ref: 'container',
    getProps: () => ({ autofocus: true }),
    onSearchResult: (result) => console.log('OFS result', result),
  })
})

For lower-level/manual lifecycle control, createOfsWrapper and createVueWrapper are still available.

📚 Documentation

🛠️ Development

Available Scripts

npm run dev              # Storybook at http://localhost:6006
npm run build            # Production build (Vue + Riot)
npm run build:vue        # Build Vue only
npm run build:riot       # Build Riot bundle only
npm run build:watch      # Watch mode (Vue + Riot)
npm test                 # Run tests
npm run type-check       # TypeScript check

🎨 Features

  • Vue 3 components with full TypeScript support
  • Riot.js wrappers for Vue components
  • Design System Styling via DS tokens and components
  • Shared Services for API access
  • Tested with Vitest

📦 What's Included

Components

  • SearchComponent - Multi-step search interface
  • SearchInput - Search input field
  • MapComponent - Map display component

Services

  • userService
  • apiService

Utilities

  • Riot.js event helpers (on, onMany, withData, debounce, throttle)
  • Vue composables (useApi, useConfig)
  • TypeScript types

🧱 Project Structure

src/
├── components/          # Vue 3 components
├── composables/         # Vue composables
├── styles/              # Design system styles and tokens
│   └── components/
├── services/            # API and domain services
├── models/              # Shared models and types
├── config/              # Library configuration
├── utils/               # Shared utilities
└── riot/                # Riot.js wrappers/helpers

🔧 Configuration

Vue and Riot wrappers share the same configuration API:

import { initLibraryConfig } from '@ambita/infoland-component-library/vue'
// or
import { initLibraryConfig } from '@ambita/infoland-component-library/riot'

initLibraryConfig({
  environment: 'beta',
  apiTimeout: 30000,
  enableLogging: true
})

📦 Package Exports

{
  "@ambita/infoland-component-library": "Vue components (default)",
  "@ambita/infoland-component-library/vue": "Vue 3 components",
  "@ambita/infoland-component-library/riot": "Riot.js wrappers",
  "@ambita/infoland-component-library/vue/style.css": "Vue styles",
  "@ambita/infoland-component-library/riot/style.css": "Riot styles"
}

📝 License

MIT