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

@filo-cms/sdk

v0.3.2

Published

SDK for sites consuming Filo CMS: typed API client (any framework or plain JS), section renderers for Vue and React, resolveSections() for Svelte/Angular, live-preview bridge.

Readme

@filo-cms/sdk

Typed client SDK for sites consuming a Filo CMS instance: delivery-API client, section renderers and a live-preview bridge.

Works in any JavaScript environment — the core is plain fetch with zero dependencies, shipped as ESM and CommonJS with full TypeScript types.

| Environment | Import | Section rendering | |---|---|---| | Nuxt / Vue | @filo-cms/sdk + @filo-cms/sdk/vue | <FiloSections> component | | React / Next.js | @filo-cms/sdk + @filo-cms/sdk/react | <FiloSections> component | | Svelte / Angular / Solid | @filo-cms/sdk | resolveSections() helper | | Node / vanilla JS | @filo-cms/sdk (import or require) | — |

Install

npm install @filo-cms/sdk

Fetching content

import { createFiloClient } from "@filo-cms/sdk";

const cms = createFiloClient({
  baseUrl: "https://cms.example.com",
  apiKey: process.env.FILO_API_KEY, // only needed for drafts (?preview=true)
});

const { items, total } = await cms.entries.list("post", {
  limit: 10,
  sort: "publishedAt:desc",                    // entry columns or data fields
  filter: { featured: true, price: { gte: 100 } }, // eq/ne/lt/lte/gt/gte/contains/in/notIn
  search: "nuxt",                              // slug + content search
  locale: "en",
});

const post = await cms.entries.bySlug("post", "hello-world");
const page = await cms.pages.bySlug("home");
const url  = cms.mediaUrl(post.data.coverImage);
const ok   = await cms.health(); // { status, db, version }

Errors throw a typed FiloError with status and path.

Tip: GET https://your-instance/api/v1 returns a machine-readable index of every endpoint available on that instance.

Rendering page sections

Register your own components per section type — the CMS supplies data only, you keep full control of markup:

<!-- Vue -->
<script setup>
import { FiloSections } from "@filo-cms/sdk/vue";
</script>
<template>
  <FiloSections :sections="page.sections" :registry="{ hero: Hero, 'rich-text': RichText }" />
</template>
// React
import { FiloSections } from "@filo-cms/sdk/react";
<FiloSections sections={page.sections} registry={{ hero: Hero, "rich-text": RichText }} />
<!-- Svelte (resolveSections is framework-agnostic) -->
<script>
  import { resolveSections } from "@filo-cms/sdk";
  const registry = { hero: Hero, "rich-text": RichText };
</script>
{#each resolveSections(page.sections, registry) as s (s.props.sectionId)}
  <svelte:component this={s.component} {...s.props} />
{/each}

Live preview

Let editors see drafts rendered by your site inside the CMS entry editor, updating as they type. Configure the preview URL in the CMS (Settings → Live preview), then in your preview route:

// Vue (from @filo-cms/sdk/vue) or React (from @filo-cms/sdk/react):
const live = useFiloPreviewEntry(entry, { allowedOrigins: ["https://cms.example.com"] });
// outside the CMS iframe `live` stays === entry; inside it becomes the streamed draft

// Any framework — raw bridge:
import { connectPreviewBridge } from "@filo-cms/sdk";
const stop = connectPreviewBridge(
  { onEntry: ({ contentType, entry }) => render(entry) },
  { allowedOrigins: ["https://cms.example.com"] },
);

Always pass allowedOrigins in production — the bridge ignores messages from any other origin.

Links