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

create-kroxt-app

v1.0.2

Published

Scaffold a new Kroxt BaaS client application with a single command.

Readme

create-kroxt-app

An interactive, zero-configuration CLI scaffolding tool to spin up modern frontend projects pre-configured with the Kroxt BaaS Client SDK.

Features

  • ⚡️ Instant Setup: Start coding in seconds with a single terminal command.
  • 📦 Multi-Template Support: Includes production-ready templates for:
    • Next.js (App Router, TypeScript, modern React 19 / Next.js 16 context).
    • Vite + React (SPA, TypeScript, custom config structure).
    • React Native (Expo, TypeScript, AsyncStorage persistence adapter).
  • 🎨 Optional Tailwind CSS: Prompts you to include Tailwind CSS or strips it automatically to write ultra-premium vanilla CSS stylesheets instead.
  • 🔑 Automatic Credential Binding: Automatically configures .env, .env.local, or config.ts credentials so your application connects to your database collection immediately.

Quickstart

Run the following command in your terminal:

npx create-kroxt-app

Or target a specific directory directly:

npx create-kroxt-app my-new-project

Interactive Prompts

The CLI will walk you through a brief configuration wizard:

  1. Project Name: The folder name where your application will be scaffolded.
  2. Template Framework: Choose between Next.js (App Router), Vite + React (SPA), or React Native (Expo).
  3. Tailwind CSS Choice: Toggle y/n to select your styling paradigm. Choosing no cleans up the package json and replaces Tailwind imports with vanilla layouts.
  4. Project ID & Public API Key: Paste your credentials directly from your Kroxt Dashboard.

Template Structures

Every template contains a ready-to-run Collection Sandbox page that performs CRUD operations on a todos collection in your Kroxt database.

1. Next.js Template

  • SDK Initialization: Pre-configured in lib/kroxt.ts using type-safe configuration bindings.
  • State Management: Uses React 19 state parameters and type-safe Document generics mapping.
  • Environment: Reads from .env.local files automatically.

2. Vite + React Template

  • SDK Initialization: Pre-configured inside the requested modular configuration path: src/config/kroxt.ts.
  • State Management: Fully type-safe React SPA layout.
  • Environment: Reads from .env files automatically.

3. React Native (Expo) Template

  • SDK Initialization: Pre-configured inside src/kroxt.ts and loaded with the Expo AsyncStorage storage adapter.
  • State Management: React Native native components styling.
  • Environment: Reads constants from the compiled src/config.ts configuration file.

Development Workflow

Once your project is created, navigate into your project directory and start the local development server:

Next.js & Vite

cd <project-name>
npm run dev

React Native (Expo)

cd <project-name>
npm run start

SDK Integration Patterns

Your scaffolded applications use the official @kroxt/baas-sdk package.

Type-Safe Collection Operations

To prevent type casting errors (TS2352), pass your document schema interface parameters directly to the collection orchestrator:

import { Document } from "@kroxt/baas-sdk";
import { baas } from "./config/kroxt"; // Vite path representation

// Declare your collection document schema
type Todo = Document<{
  text: string;
  completed: boolean;
}>;

// Fetch documents with schema validation
const fetchTodos = async () => {
  const data = await baas.collection<{ text: string; completed: boolean }>("todos").get();
  const todosList: Todo[] = data as Todo[];
  console.log(todosList[0].data.text); // Access fields inside the nested data envelope
};

License

MIT