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

cloud-code-editor

v1.0.2

Published

Highly customizable cloud code editor with glassmorphism UI - Zero config, works out of the box

Readme

Cloud Code Editor

A highly customizable, modular cloud code editor package for Next.js with beautiful glassmorphism UI, multiple storage backends, and optional code execution.

✨ Zero Config - Works out of the box with sensible defaults!

🚀 Demo

Try the live demo →

⚠️ Project Status

This project was built in 24 hours as a foundation. While it's functional and ready to use, it's not production-perfect yet. We're actively working on improvements and welcome contributions!

Current Status:

  • ✅ Core functionality working
  • ✅ Zero-config setup
  • ✅ Beautiful glassmorphism UI
  • ✅ Multiple storage backends
  • ⚠️ Needs automated tests
  • ⚠️ Needs better error handling
  • ⚠️ Needs performance optimizations

Features

  • 🎨 Glassmorphism UI - Beautiful translucent design with customizable blur and opacity
  • 📦 Modular Components - Enable/disable terminal, sidebar, tabs, and more
  • 💾 Multiple Storage Backends - In-memory (default), local files, Google Cloud Storage, or custom adapters
  • Optional E2B Execution - Run code in isolated sandboxes
  • 🎯 Full TypeScript Support - Complete type definitions included
  • 🎨 Theme Customization - Extensive theming options
  • 💾 Auto-save - Configurable auto-save with debouncing
  • 📱 Responsive - Works on all screen sizes
  • Zero Config - Works out of the box with minimal setup

Installation

npm install cloud-code-editor

Optional Dependencies

For Google Cloud Storage support:

npm install @google-cloud/storage

For E2B execution support:

npm install @e2b/code-interpreter

Quick Start (Zero Config!)

The simplest way to use the editor - no configuration needed:

import { EditorLayout } from 'cloud-code-editor';
import 'cloud-code-editor/styles';

export default function EditorPage() {
  return <EditorLayout />;
}

That's it! The editor will:

  • ✅ Use in-memory storage (no setup needed)
  • ✅ Work out of the box with default settings
  • ✅ Show file tree, editor, and terminal
  • ✅ Auto-save enabled by default
  • ✅ Beautiful glassmorphism UI

With Initial Files

Want to start with some files? Just pass them in:

import { EditorLayout } from 'cloud-code-editor';
import 'cloud-code-editor/styles';

export default function EditorPage() {
  return (
    <EditorLayout
      config={{
        initialState: {
          files: {
            'index.js': {
              content: `console.log('Hello World!');`
            },
            'README.md': {
              content: `# My Project\n\nWelcome!`
            }
          }
        }
      }}
    />
  );
}

Configuration

Minimal Config (Recommended)

Only configure what you need - everything else has sensible defaults:

<EditorLayout
  config={{
    initialState: {
      files: { /* your files */ }
    },
    callbacks: {
      onSave: async (files) => {
        // Your save logic
      }
    }
  }}
/>

Full Configuration

See EXAMPLES.md for complete configuration options.

Storage Options

In-Memory (Default - No Config Needed!)

// No storage config needed - uses in-memory by default
<EditorLayout />

Local File Storage

<EditorLayout
  config={{
    storage: {
      type: 'local',
      local: {
        basePath: './my-project',
      }
    }
  }}
/>

Google Cloud Storage

<EditorLayout
  config={{
    storage: {
      type: 'gcs',
      gcs: {
        projectId: 'my-project',
        bucketName: 'my-bucket',
      }
    }
  }}
/>

Execution (Optional)

Only configure if you want code execution:

<EditorLayout
  config={{
    execution: {
      enabled: true,
      provider: 'e2b',
      e2b: {
        apiKey: process.env.E2B_API_KEY, // Only required if enabled
      }
    }
  }}
/>

Components

EditorLayout

Main layout component - use this for the full editor experience.

<EditorLayout config={config} />

Individual Components

You can also use components individually:

import { CodeEditor, FileTree, Terminal } from 'cloud-code-editor';

// Use components separately
<CodeEditor files={files} activeFile={activeFile} />
<FileTree files={files} onFileSelect={handleSelect} />
<Terminal output={output} />

Documentation

For Users

For Contributors

🤝 Contributing

We welcome contributions! This project was built in 24 hours as a foundation, so there's plenty of room for improvement.

👉 Read our Contributing Guide to get started!

Quick Links

Areas That Need Help

Since this was built quickly, we especially need help with:

  • Automated tests - Unit tests, integration tests
  • Error handling - Better error messages and recovery
  • Performance - Optimize rendering, reduce bundle size
  • Accessibility - ARIA labels, keyboard navigation
  • Documentation - More examples, API docs
  • TypeScript - Stricter types, better type coverage

See CONTRIBUTING.md for detailed information on how to contribute.

Examples

Basic Usage

import { EditorLayout } from 'cloud-code-editor';
import 'cloud-code-editor/styles';

function MyEditor() {
  return <EditorLayout />;
}

With Custom Save Handler

<EditorLayout
  config={{
    callbacks: {
      onSave: async (files) => {
        await fetch('/api/save', {
          method: 'POST',
          body: JSON.stringify({ files }),
        });
      }
    }
  }}
/>

With Local Files

<EditorLayout
  config={{
    storage: {
      type: 'local',
      local: {
        basePath: './my-project',
      }
    }
  }}
/>

For more examples, see EXAMPLES.md and SIMPLE_USAGE.md.

TypeScript

Full TypeScript support with comprehensive type definitions:

import { EditorConfig, FileMap, ExecutionResult } from 'cloud-code-editor';

License

MIT

Acknowledgments

Built with ❤️ in 24 hours as a foundation for cloud-based code editing. Special thanks to all contributors!


Ready to get started? Check out SIMPLE_USAGE.md for the quickest way to use this package!