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

agentic-astra-catalog

v0.0.1

Published

Next.js frontend for managing Astra DB tool catalog

Downloads

13

Readme

Agentic-Astra Catalog

A Next.js frontend application for viewing and editing tools stored in an Astra DB catalog collection.

Features

  • Dark/Light Mode: Toggle between dark and light themes
  • Tool List: Browse all tools from the catalog collection
  • Tool Editor: Edit tool details including parameters, configuration, and metadata
  • Server-Side API: All database interactions happen on the server for security
  • Real-time Updates: Connect directly to Astra DB using @datastax/astra-db-ts

Prerequisites

  • Node.js 18+ and npm/yarn/pnpm
  • Astra DB credentials (token, endpoint, database name)

Setup

  1. Install dependencies:
npm install
  1. Configure environment variables:

Create a .env.local file in the frontend/ directory:

ASTRA_DB_APPLICATION_TOKEN=your_astra_db_token
ASTRA_DB_API_ENDPOINT=https://your-database-id-your-region.apps.astra.datastax.com
ASTRA_DB_DB_NAME=your_database_name
ASTRA_DB_CATALOG_COLLECTION=tool_catalog

Note: Next.js automatically loads environment variables from .env.local for local development. These variables are only available on the server side, keeping your credentials secure.

Development

Run the development server:

npm run dev

The app will be available at http://localhost:3000.

Building

Build for production:

npm run build

Start the production server:

npm start

Usage

Local Development

  1. Set up environment variables (see Setup above)
  2. Run npm run dev
  3. Open the app in your browser at http://localhost:3000

Environment Variables

| Variable | Required | Description | Default | |----------|----------|-------------|---------| | ASTRA_DB_APPLICATION_TOKEN | Yes | Astra DB application token | - | | ASTRA_DB_API_ENDPOINT | Yes | Astra DB API endpoint URL | - | | ASTRA_DB_DB_NAME | Yes | Name of the Astra DB database | - | | ASTRA_DB_CATALOG_COLLECTION | No | Name of the catalog collection | tool_catalog |

Project Structure

frontend/
├── app/
│   ├── api/
│   │   └── tools/
│   │       └── route.ts        # API route for tools (GET, POST)
│   ├── globals.css              # Global styles with Tailwind
│   ├── layout.tsx               # Root layout
│   └── page.tsx                 # Main page component
├── components/
│   ├── ThemeToggle.tsx          # Dark/light mode toggle
│   ├── ToolList.tsx             # Tool list sidebar
│   └── ToolEditor.tsx           # Tool editing form
├── lib/
│   └── astraClient.ts           # Astra DB client (server-side only)
├── next.config.js
├── package.json
├── tailwind.config.js
└── tsconfig.json

Technologies

  • Next.js 14: React framework with App Router
  • React 18: UI framework
  • TypeScript: Type safety
  • Tailwind CSS: Styling with dark mode support
  • @datastax/astra-db-ts: Official Astra DB TypeScript client (server-side only)

Architecture

This application uses Next.js API routes to handle all database interactions on the server:

  • Client-side: React components make fetch requests to /api/tools
  • Server-side: API routes in app/api/tools/route.ts handle database operations
  • Security: Database credentials are never exposed to the client

API Endpoints

GET /api/tools

Fetches all tools from the catalog collection.

Response:

{
  "success": true,
  "tools": [...]
}

POST /api/tools

Creates or updates a tool in the catalog collection.

Request Body:

{
  "_id": "...",
  "name": "...",
  "description": "...",
  ...
}

Response:

{
  "success": true
}

License

Same as the parent project.