{"id":31283059,"url":"https://github.com/craftile/editor","last_synced_at":"2026-06-03T02:01:06.627Z","repository":{"id":315100396,"uuid":"1055159459","full_name":"craftile/editor","owner":"craftile","description":"A modern, extensible block-based page editor. Perfect for building shopify-like theme customizers, page builders, and structured content editing systems.","archived":false,"fork":false,"pushed_at":"2026-05-25T16:42:36.000Z","size":813,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T18:11:18.758Z","etag":null,"topics":["block-editor","cms","content-management","drag-and-drop","ecommerce","javascript","landing-page-builder","page-builder","shopify","theme-customizer","typescript","visual-editor","vue","wysiwyg-editor"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/craftile.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-11T21:24:22.000Z","updated_at":"2026-05-25T16:18:20.000Z","dependencies_parsed_at":"2025-09-16T19:32:26.560Z","dependency_job_id":null,"html_url":"https://github.com/craftile/editor","commit_stats":null,"previous_names":["craftile/editor"],"tags_count":351,"template":false,"template_full_name":null,"purl":"pkg:github/craftile/editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftile%2Feditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftile%2Feditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftile%2Feditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftile%2Feditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/craftile","download_url":"https://codeload.github.com/craftile/editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/craftile%2Feditor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33844687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-03T02:00:06.370Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["block-editor","cms","content-management","drag-and-drop","ecommerce","javascript","landing-page-builder","page-builder","shopify","theme-customizer","typescript","visual-editor","vue","wysiwyg-editor"],"created_at":"2025-09-24T04:07:29.088Z","updated_at":"2026-06-03T02:01:06.597Z","avatar_url":"https://github.com/craftile.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Craftile Editor\n\n**A modern, extensible block-based page editor for the web**\n\n[![NPM Version](https://img.shields.io/npm/v/@craftile/editor)](https://www.npmjs.com/package/@craftile/editor)\n[![License](https://img.shields.io/github/license/craftile/editor)](https://github.com/craftile/editor/blob/main/LICENSE)\n\n\u003c/div\u003e\n\n## ✨ Features\n\n- 🧱 **Block-based editing** - Compose pages from reusable, configurable blocks\n- ⚡ **Real-time preview** - See changes instantly with live preview iframe\n- 🔌 **Plugin system** - Extend with custom blocks and UI components\n- 📦 **Framework agnostic** - JSON output works with any frontend framework\n\n## 🚀 Quick Start\n\n### Installation\n\n```bash\nnpm install @craftile/editor\n```\n\n### Basic Usage\n\n```typescript\nimport { createCraftileEditor } from '@craftile/editor';\n\nconst editor = createCraftileEditor({\n  el: '#app',\n  blockSchemas: [\n    {\n      type: 'text',\n      properties: [\n        { id: 'content', type: 'text', label: 'Content', default: 'Enter text...' },\n        {\n          id: 'fontSize',\n          type: 'radio',\n          label: 'Font Size',\n          default: 'md',\n          options: [\n            { value: 'sm', label: 'Small' },\n            { value: 'md', label: 'Medium' },\n            { value: 'lg', label: 'Large' },\n            { value: 'xl', label: 'Extra Large' },\n          ],\n        },\n        { id: 'color', type: 'color', label: 'Color', default: '#000000' },\n      ],\n      accepts: [],\n      meta: {\n        name: 'Text',\n        icon: '\u003csvg viewBox=\"0 0 24 24\" fill=\"currentColor\"\u003e\u003cpath d=\"M5 4v3h5.5v12h3V7H19V4z\"/\u003e\u003c/svg\u003e',\n        category: 'Content',\n        description: 'Display text content with customizable styling',\n      },\n    },\n    {\n      type: 'button',\n      properties: [\n        { id: 'text', type: 'text', label: 'Button Text', default: 'Click me' },\n        { id: 'url', type: 'text', label: 'URL', default: '#' },\n        {\n          id: 'style',\n          type: 'select',\n          label: 'Style',\n          default: 'primary',\n          variant: 'segment',\n          options: [\n            { value: 'primary', label: 'Primary' },\n            { value: 'secondary', label: 'Secondary' },\n            { value: 'outline', label: 'Outline' },\n          ],\n        },\n        {\n          id: 'size',\n          type: 'select',\n          label: 'Size',\n          default: 'medium',\n          options: [\n            { value: 'small', label: 'Small' },\n            { value: 'medium', label: 'Medium' },\n            { value: 'large', label: 'Large' },\n          ],\n        },\n      ],\n      accepts: [],\n      meta: {\n        name: 'Button',\n        icon: '\u003csvg viewBox=\"0 0 24 24\" fill=\"currentColor\"\u003e\u003cpath d=\"M8 5a3 3 0 00-3 3v8a3 3 0 003 3h8a3 3 0 003-3V8a3 3 0 00-3-3H8zM6 8a2 2 0 012-2h8a2 2 0 012 2v8a2 2 0 01-2 2H8a2 2 0 01-2-2V8z\"/\u003e\u003cpath d=\"M8 11a1 1 0 011-1h6a1 1 0 110 2H9a1 1 0 01-1-1z\"/\u003e\u003c/svg\u003e',\n        category: 'Interactive',\n        description: 'Clickable button with customizable text and styling',\n      },\n    },\n  ],\n});\n```\n\n### With Plugins\n\n```typescript\nimport { createCraftileEditor } from '@craftile/editor';\nimport CommonPropertiesPlugin from '@craftile/plugin-common-properties';\nimport StaticBlocksRenderer from '@craftile/plugin-static-blocks-renderer';\n\nconst editor = createCraftileEditor({\n  el: '#app',\n  blockSchemas: [\n    /** your block schemas */\n  ],\n  plugins: [\n    CommonPropertiesPlugin,\n    StaticBlocksRenderer({\n      blockRenderers: {\n        text: ({ props, editorAttributes }) =\u003e {\n          return `\u003cdiv class=\"block\" ${editorAttributes} style=\"color: ${props.color}\"\u003e\n            ${props.content || ''}\n          \u003c/div\u003e`;\n        },\n        button: ({ props, editorAttributes }) =\u003e {\n          return `\u003cbutton class=\"block ${props.style}\" ${editorAttributes}\u003e\n            ${props.text || 'Button'}\n          \u003c/button\u003e`;\n        },\n      },\n      scripts: ['https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4'],\n    }),\n  ],\n  initialPage: {\n    blocks: {\n      'welcome-text': {\n        id: 'welcome-text',\n        type: 'text',\n        properties: {\n          content: 'Welcome to Craftile Editor!',\n          fontSize: 'lg',\n          color: '#1f2937',\n        },\n        children: [],\n      },\n    },\n    regions: [\n      {\n        name: 'main',\n        blocks: ['welcome-text'],\n      },\n    ],\n  },\n});\n```\n\n## 🔌 Official Plugins\n\n- **@craftile/plugin-common-properties** - Common property field types (text, color, range, etc.)\n- **@craftile/plugin-static-blocks-renderer** - static html blocks renderer\n\n## 📁 Directory Structure\n\n```\ncraftile-editor/\n├── packages/                      # Core packages\n│   ├── core/                     # Framework-agnostic editor engine\n│   ├── editor/                   # Vue.js-based editor UI\n│   ├── types/                    # Shared TypeScript definitions\n│   ├── event-bus/                # Generic event bus utility\n│   ├── messenger/                # Window.postMessage wrapper\n│   ├── preview-client/           # Browser client for preview iframe\n│   └── preview-client-html/      # HTML preview client for static rendering\n├── plugins/                      # Official plugins\n│   ├── common-properties/        # Common property field types\n│   └── static-blocks-renderer/   # Static HTML block rendering\n```\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature/amazing-feature`\n3. Commit changes: `git commit -m 'Add amazing feature'`\n4. Push to branch: `git push origin feature/amazing-feature`\n5. Open a Pull Request\n\n## 📄 License\n\nMIT © [Craftile Team](https://github.com/craftile)\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\nMade with ❤️ by the Craftile community\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftile%2Feditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcraftile%2Feditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcraftile%2Feditor/lists"}