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

@spike-land-ai/code

v0.9.58

Published

Frontend React application for the spike.land real-time collaborative code editor, featuring Monaco Editor, TypeScript, and live preview.

Readme

@spike-npm-land/code

The frontend React application for spike.land - a real-time collaborative React page editor with TypeScript support.

Features

  • Real-time collaborative editing
  • Monaco Editor integration
  • React components live preview
  • TypeScript support
  • Modern UI with Radix UI and Tailwind CSS
  • Internationalization support
  • WebRTC capabilities
  • Service Worker for offline functionality
  • Comprehensive testing suite

Tech Stack

  • React 19
  • TypeScript
  • Vite
  • Tailwind CSS
  • Monaco Editor
  • Radix UI Components
  • Framer Motion
  • WebRTC
  • Service Workers
  • i18next

UI Component Guidelines

This project is transitioning towards a standardized UI component library built with Tailwind CSS and custom components located in src/@/components/ui. These components are designed to ensure consistency, reusability, accessibility, and performance across the application.

For detailed information on creating and using these UI components, please refer to the UI Component Guidelines.

Development

Prerequisites

  • Node.js (LTS version)
  • Yarn

Installation

yarn install

Available Scripts

Development

  • yarn dev - Start all development processes concurrently (Vite, TypeScript, Workers)
  • yarn dev:vite - Start Vite development server only
  • yarn dev:workers - Start worker development processes

Building

  • yarn build - Clean and run full build process
  • yarn build:all - Build all components concurrently
  • yarn build:vite - Build Vite application
  • yarn build:workers - Build worker files
  • yarn build:types - Build TypeScript declarations

Types

  • yarn types:check - Type check without emitting files
  • yarn types:build - Build TypeScript declarations
  • yarn types:watch - Watch mode for TypeScript compilation

Testing

  • yarn test - Run test suite
  • yarn test:full - Run full test suite with type checking and linting

Utils

  • yarn clean - Clean all build artifacts
  • yarn lint - Run ESLint
  • yarn fmt - Format code using dprint
  • yarn preview - Preview production build locally

Development Server

# Start all development processes
yarn dev

# Or start individual components:
yarn dev:vite    # Just the Vite dev server
yarn dev:workers # Just the worker processes

Open http://localhost:5173 to view it in the browser.

Building

# Full production build
yarn build

# Or individual build steps:
yarn build:vite    # Build Vite application
yarn build:workers # Build worker files
yarn build:types   # Build TypeScript declarations

Build artifacts will be stored in:

  • dist/ - Main application build
  • dist-vite/ - Vite build output
  • dts/ - TypeScript declarations

Architecture

Key Components

  • Monaco Editor integration for code editing
  • Real-time collaboration using SharedWorker
  • React components live preview
  • Service Worker for offline capabilities
  • WebRTC for peer-to-peer communication

Directory Structure

src/
├── @/              # Core utilities and components
├── components/     # React components
├── hooks/         # Custom React hooks
├── i18n/          # Internationalization
├── pages/         # Page components
├── styles/        # Global styles and Tailwind config
└── workers/       # Service and Shared workers

Testing

The project uses Vitest for testing. Run the test suite with:

yarn test

For development, you can run tests in watch mode:

yarn vitest

Contributing

When contributing to the UI, please make sure to follow the UI Component Guidelines.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

BSD-3-Clause - see LICENSE.md for details.