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

@flotiq/flotiq-astro-sdk

v0.0.3

Published

Astro collection generator for connecting with Flotiq CMS

Readme

Flotiq ASTRO SDK

Dedicated Astro collections generator for Flotiq Headless CMS.

Generated content.config.ts collections can be either committed with your code, or .gitignore-d and generated during development and CI/CD.

The project is not production-ready! Versioning may reset, features and api may be changed, project may be removed. Do not use for anything other than playing around. See State of Alpha section for more details of what might change before v1.

To use collections you need @flotiq/flotiq-api-sdk and types generated by it.

Installation from npm

  1. run npm install @flotiq/flotiq-api-sdk @flotiq/flotiq-astro-sdk
  2. (optional) Generate typescript types for your data definitions
    1. Create .env file and add FLOTIQ_API_KEY env variable inside
    2. Run npm exec flotiq-api-typegen to generate account type definitions
    3. RUN npm exec flotiq-astro-typegen to generate collections

Installation from yarn

  1. run yarn add @flotiq/flotiq-api-sdk @flotiq/flotiq-astro-sdk
  2. (optional) Generate typescript types for your data definitions
    1. Create .env file and add FLOTIQ_API_KEY env variable inside
    2. Run yarn exec flotiq-api-typegen to generate account type definitions
    3. RUN yarn exec flotiq-astro-typegen to generate collections

Installation from pnpm

  1. run pnpm add @flotiq/flotiq-api-sdk @flotiq/flotiq-astro-sdk
  2. (optional) Generate typescript types for your data definitions
    1. Create .env file and add FLOTIQ_API_KEY env variable inside
    2. Run pnpm exec flotiq-api-typegen to generate account type definitions
    3. RUN pnpm exec flotiq-astro-typegen to generate collections

Usage example

Project with tags:

---
import { getCollection, getEntry } from 'astro:content';
const allProjects = await getCollection('project');
---

<html lang="en">
	<head>
		<meta charset="utf-8" />
		<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
		<meta name="viewport" content="width=device-width" />
		<meta name="generator" content={Astro.generator} />
		<title>Astro</title>
	</head>
	<body>
		<h1>Astro</h1>
		{allProjects.map((project) => (
			<section>
				<h2>{project.data.name}</h2>
				{project.data.tags.map(async (tag) => {
					const tagContent = await getEntry(tag.collection, tag.id);
					return (<span>{tagContent.data.name}</span>)
				})}
			</section>
		))}
	</body>
</html>

flotiq-astro-typegen

flotiq-astro-typegen

Generates Astro collections for Flotiq API based on the content type definitions on your account

Options

| Option | Description | Default | | ------ | ----------- | ------- | | --flotiq-key | Flotiq API key with read only access | | | --flotiq-api-url | Url to the Flotiq API | https://api.flotiq.com | | --output | Path to target filename | ./src/content.config.ts | | --watch | Watch for changes in the content type definitions and regenerate collections | false |

Development

See CONTRIBUTING.md

State of Alpha

Features that might appear in the future (not necessarily before v1):

  • [x] basic collections with references
  • [ ] correct enums for selects
  • [ ] filters
  • [ ] draft
  • [ ] easy access to images
  • [ ] more usage examples
  • [ ] slug as id