{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "description": "Preview the Smart Local AI plugin — browser-based private AI tools for WordPress.",
  "landingPage": "/wp-admin/admin.php?page=smart-local-ai",
  "preferredVersions": {
    "php": "8.2",
    "wp": "6.9"
  },
  "steps": [
    {
      "step": "login",
      "username": "admin",
      "password": "password"
    },
    {
      "step": "installPlugin",
      "pluginZipFile": {
        "resource": "wordpress.org/plugins",
        "slug": "smart-local-ai"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "writeFile",
      "path": "/wordpress/wp-content/mu-plugins/smart-local-ai-demo.php",
      "data": "<?php\nadd_action('admin_init', function() {\n\tif (get_option('atlas_ai_demo_done')) return;\n\t$tech = wp_create_category('Technology');\n\t$ai = wp_create_category('Artificial Intelligence');\n\t$posts = array(\n\t\tarray('title' => 'Getting Started with Machine Learning in the Browser', 'content' => 'Machine learning is transforming how we build software. From recommendation engines to image recognition, ML models are becoming essential tools for modern developers. Browser-based inference using WebAssembly and WebGPU is making AI accessible to everyone without cloud dependencies or API costs. Learn how client-side ML works and why it matters for privacy.', 'excerpt' => 'An introduction to browser-based machine learning and why it matters.', 'cat' => $ai),\n\t\tarray('title' => 'Privacy-First AI: Why Client-Side Processing Matters', 'content' => 'As data privacy regulations like GDPR and CCPA tighten worldwide, the demand for privacy-first AI solutions is growing rapidly. Client-side machine learning allows websites to offer intelligent features without sending user data to external servers. This approach ensures compliance while delivering powerful AI capabilities directly in the browser.', 'excerpt' => 'How client-side ML is reshaping privacy-compliant AI tools.', 'cat' => $ai),\n\t\tarray('title' => 'Understanding Semantic Search and Vector Embeddings', 'content' => 'Semantic search goes beyond keyword matching to understand the meaning behind queries. Using vector embeddings and cosine similarity algorithms, semantic search delivers more relevant results by understanding context and intent. This technology powers modern recommendation engines and content discovery systems.', 'excerpt' => 'How semantic search and vector embeddings deliver smarter content discovery.', 'cat' => $tech),\n\t\tarray('title' => 'Building Accessible Websites with AI-Powered Alt Text', 'content' => 'Web accessibility ensures that everyone, including people with disabilities, can use your website. Alt text for images is a critical component of accessibility and SEO. AI-powered tools can automatically generate descriptive alt text using vision models, making your entire media library accessible without manual effort.', 'excerpt' => 'Why accessibility matters and how AI generates descriptive alt text.', 'cat' => $tech),\n\t\tarray('title' => 'WordPress Performance Optimization: A Complete Guide', 'content' => 'Speed matters for SEO rankings and user experience. Learn how to optimize your WordPress site with caching strategies, image optimization, lazy loading, code splitting, and modern hosting solutions. A faster site means better search rankings, lower bounce rates, and happier visitors who stay longer.', 'excerpt' => 'Essential tips to speed up your WordPress site for better SEO and UX.', 'cat' => $tech),\n\t\tarray('title' => 'How Transformer Models Are Revolutionizing NLP', 'content' => 'Transformer architecture has fundamentally changed natural language processing. Models like BERT, GPT, and MiniLM can understand context, generate text, and perform semantic similarity matching with remarkable accuracy. These models are now small enough to run directly in web browsers using optimized ONNX runtimes.', 'excerpt' => 'Exploring transformer models and their impact on browser-based NLP.', 'cat' => $ai),\n\t\tarray('title' => 'Content Personalization Without Tracking Cookies', 'content' => 'Traditional content personalization relies on third-party cookies and server-side tracking. But with cookie deprecation and privacy laws, a new approach is needed. Client-side behavioral analysis can deliver personalized recommendations using only local browser storage, respecting user privacy while improving engagement and time-on-site.', 'excerpt' => 'Personalize content recommendations without compromising visitor privacy.', 'cat' => $ai),\n\t\tarray('title' => 'WebAssembly and WebGPU: The Future of Browser Computing', 'content' => 'WebAssembly enables near-native performance for compute-intensive tasks in the browser. Combined with WebGPU for hardware-accelerated graphics and computation, these technologies make it possible to run sophisticated machine learning models entirely client-side. This opens new possibilities for privacy-preserving AI applications.', 'excerpt' => 'How WASM and WebGPU enable powerful AI inference in the browser.', 'cat' => $tech),\n\t\tarray('title' => 'Image Captioning with Vision Transformer Models', 'content' => 'Vision transformer models like ViT-GPT2 can analyze images and generate natural language descriptions automatically. These models combine visual feature extraction with language generation to produce accurate, contextual captions. When run in the browser, they enable automatic alt text generation without uploading images to any external service.', 'excerpt' => 'How vision transformers generate automatic image descriptions.', 'cat' => $ai),\n\t\tarray('title' => 'The Complete Guide to WordPress REST API Development', 'content' => 'The WordPress REST API provides a powerful interface for building modern web applications. Learn how to create custom endpoints, handle authentication with nonces, validate and sanitize input data, and build React-powered admin interfaces that communicate with your WordPress backend seamlessly.', 'excerpt' => 'Master WordPress REST API for building modern plugin interfaces.', 'cat' => $tech),\n\t);\n\tforeach ($posts as $p) {\n\t\twp_insert_post(array('post_title' => $p['title'], 'post_content' => $p['content'], 'post_excerpt' => $p['excerpt'], 'post_status' => 'publish', 'post_category' => array($p['cat'])));\n\t}\n\tupdate_option('atlas_ai_modules', array('relevantflow' => true, 'altgenius' => true, 'personaflow' => true));\n\tupdate_option('blogname', 'Smart Local AI Demo');\n\tupdate_option('blogdescription', 'Privacy-First Browser ML Suite for WordPress');\n\tupdate_option('atlas_ai_demo_done', true);\n});\n"
    }
  ],
  "features": {
    "networking": true
  }
}
