General

SleekByte is a WordPress code snippets plugin that stores code as files on your filesystem instead of in the database. This approach makes your snippets portable, version-control friendly, and easier to organize as complete features.

Core concepts

File-based storage

Snippets are stored as actual files in your WordPress installation, not database entries. PHP, CSS, JavaScript, and SCSS files are automatically enqueued from any folder structure you create.

Feature organization

Instead of managing CSS, JavaScript, and PHP separately, organize complete features with all their assets in one location. Each snippet can contain multiple file types working together.

Declarative configuration

Every snippet includes a snippet.json file that defines hooks, loading conditions, dependencies, and file organization. Edit this file directly or use the visual interface.

AI integration

Built-in AI assistant can generate snippets, fix errors, and help navigate your code. Works with your own API key from OpenAI, Anthropic, Google, or OpenRouter. For advanced workflows, connect to Claude Code through the terminal integration.

Version history

Every save creates a git commit, giving you a complete timeline of changes with inline diffs. History is stored both locally in the browser and as a real git repository on your server.

Key features

  • File-based snippet storage with automatic enqueueing
  • Built-in CodeMirror editor with PHP error checking
  • Live preview functionality with shareable URLs
  • AI-powered code generation and error fixing
  • Claude Code terminal integration via @sleekwp/agent
  • Per-snippet git history with inline diff viewer
  • SCSS compilation with automatic enqueueing
  • Global search and replace across all files
  • External asset downloading for self-hosting
  • Per-snippet error logging
  • Visual and code-based configuration editing
  • Complete file organization flexibility