Free Schema Markup Generator: Win Google Rich Snippets

JSON-LD Structured Data

Instantly generate perfectly formatted JSON-LD Schema markup for your website. Improve your SEO, achieve Rich Snippets in Google, and boost your click-through rates.

Current Schema
Article
JSON Lines
0
Data Fields
0
JSON Status
Valid
Ready-to-Use Templates by Schema Type
Generated JSON-LD
Generator Features
Real-time Generation
JSON-LD code is generated and syntax-highlighted instantly as you type, ensuring you never have to wait or refresh.
Dynamic FAQ Builder
Easily construct complex FAQ schemas. Add, edit, or remove Question & Answer pairs dynamically with a single click.
Google Compliant
All generated schemas strictly follow Schema.org guidelines and Google's structured data requirements for Rich Results.
Syntax Highlighting
The output code is beautifully formatted and color-coded, making it easy to read, debug, and verify before deployment.
Rich Results Testing
Quickly copy your code and launch Google's Rich Results Testing Tool to validate your markup instantly.
100% Private
Your data is never sent to a server. The entire code generation engine runs securely and instantly within your local browser.
Success
`;if(originalFormattedCode&&originalFormattedCode===i||(originalFormattedCode=i),generatedRawCode=i,isMinified)try{const i=JSON.stringify(n),t=``;generatedRawCode=t;document.getElementById("codeOutput").innerHTML=syntaxHighlight(t)}catch(u){console.error("Minify error:",u);document.getElementById("codeOutput").innerHTML=syntaxHighlight(i)}else document.getElementById("codeOutput").innerHTML=syntaxHighlight(i);document.getElementById("statFields").textContent=t;const f=isMinified?3:r.split("\n").length+2;document.getElementById("statLines").textContent=f}function syntaxHighlight(n){let t=n.replace(/[&<>]/g,function(n){return n==="&"?"&":n==="<"?"<":n===">"?">":n});return t=t.replace(/(<\/?script[^&]*>)/gi,'$1<\/span>'),t=t.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*")\s*:/g,function(n){return''+n+"<\/span>"}),t=t.replace(/:\s*("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*")/g,function(n){return': '+n.substring(2)+"<\/span>"}),t=t.replace(/:\s*(\d+(?:\.\d+)?)/g,function(n){return': '+n.substring(2)+"<\/span>"}),t=t.replace(/:\s*(true|false)/g,function(n){return': '+n.substring(2)+"<\/span>"}),t.replace(/:\s*(null)/g,function(n){return': '+n.substring(2)+"<\/span>"})}function copyCode(){generatedRawCode&&navigator.clipboard.writeText(generatedRawCode).then(()=>{showToast("Code copied to clipboard","success")}).catch(()=>{showToast("Failed to copy","error")})}function downloadCode(){if(generatedRawCode){const t=new Blob([generatedRawCode],{type:"text/html"}),n=document.createElement("a");n.href=URL.createObjectURL(t);n.download=`schema-${currentType.toLowerCase()}-${Date.now()}.html`;n.click();URL.revokeObjectURL(n.href);showToast("HTML script saved","success")}}function testInGoogle(){window.open("https://search.google.com/test/rich-results","_blank");showToast("Opening Google Rich Results Test...","success")}function showToast(n,t="success"){const i=document.getElementById("toast"),r=document.getElementById("toastIcon");document.getElementById("toastMessage").textContent=n;i.className=`toast ${t} show`;r.setAttribute("data-lucide",t==="success"?"check-circle":"alert-triangle");i.style.borderColor=t==="error"?"var(--danger)":"var(--success)";lucide.createIcons({nodes:[i]});setTimeout(()=>{i.classList.remove("show"),i.style.borderColor=""},3e3)}function escapeHtml(n){if(!n)return"";const t=document.createElement("div");return t.textContent=n,t.innerHTML}function renderTemplatesForSchema(n){const t=document.getElementById("templatesContainer");if(t){const r=SCHEMA_TEMPLATES[n];if(r){const u=Object.keys(r);let i=`

${n} Templates (${u.length} available)

`;const f={"tech-article":{name:"Tech Article",desc:"Programming, AI, Tech"},"news-article":{name:"News Article",desc:"Breaking news, Updates"},"blog-post":{name:"Blog Post",desc:"Personal blog, Stories"},"review-article":{name:"Review Article",desc:"Product reviews, Ratings"},tutorial:{name:"Tutorial",desc:"Step-by-step guides"},"simple-product":{name:"Simple Product",desc:"Basic product info"},"digital-product":{name:"Digital Product",desc:"Software, eBooks, Courses"},"clothing-product":{name:"Clothing Product",desc:"Fashion, Apparel, Sizes"},electronics:{name:"Electronics",desc:"Gadgets, Devices, Tech"},"food-product":{name:"Food Product",desc:"Restaurant, Grocery"},restaurant:{name:"Restaurant",desc:"Cuisine type, Hours, Menu"},"retail-store":{name:"Retail Store",desc:"Physical shop, Inventory"},salon:{name:"Salon & Spa",desc:"Services, Appointments"},"medical-clinic":{name:"Medical Clinic",desc:"Doctors, Specialties, Hours"},"real-estate":{name:"Real Estate",desc:"Properties, Agents, Listings"},"general-faq":{name:"General FAQ",desc:"Common questions"},"shipping-faq":{name:"Shipping FAQ",desc:"Delivery, Returns, Policies"},"product-faq":{name:"Product FAQ",desc:"Features, Usage, Support"},"service-faq":{name:"Service FAQ",desc:"Pricing, Process, Support"},"technical-faq":{name:"Technical FAQ",desc:"Troubleshooting, Setup"},conference:{name:"Conference",desc:"Speakers, Sessions, Venue"},webinar:{name:"Webinar",desc:"Online, Registration, Link"},concert:{name:"Concert",desc:"Artists, Venue, Tickets"},workshop:{name:"Workshop",desc:"Hands-on, Training, Materials"},"sports-event":{name:"Sports Event",desc:"Teams, Location, Tickets"}};for(const t of u){const r=f[t]||{name:t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase()),desc:"Ready to use template"};i+=` `}i+=`
`;t.innerHTML=i;typeof lucide!="undefined"&&lucide.createIcons&&lucide.createIcons({nodes:[t]});const e=document.querySelectorAll(".template-btn");e.forEach(n=>{const t=n.cloneNode(!0);n.parentNode.replaceChild(t,n);t.addEventListener("click",n=>{n.preventDefault();const i=t.dataset.schema,r=t.dataset.template;applySchemaTemplate(i,r)})})}}}function getTemplateIcon(n){return{"tech-article":"cpu","news-article":"newspaper","blog-post":"pen-tool","review-article":"star",tutorial:"graduation-cap","simple-product":"package","digital-product":"download-cloud","clothing-product":"shirt",electronics:"smartphone","food-product":"coffee",restaurant:"utensils","retail-store":"shopping-cart",salon:"scissors","medical-clinic":"heart-pulse","real-estate":"home","general-faq":"help-circle","shipping-faq":"truck","product-faq":"package","service-faq":"briefcase","technical-faq":"wrench",conference:"users",webinar:"video",concert:"music",workshop:"palette","sports-event":"trophy"}[n]||"layout-template"}function applySchemaTemplate(n,t){const i=SCHEMA_TEMPLATES[n][t];if(i){if(n==="FAQPage")faqItems=JSON.parse(JSON.stringify(i)),renderForm("FAQPage");else{const t=schemaConfig[n].fields;t.forEach(n=>{const t=document.getElementById(`in_${n.id}`);t&&i[n.id]!==undefined&&(n.type==="checkbox"?t.checked=i[n.id]:t.value=n.type==="datetime-local"?i[n.id]:i[n.id])})}updateSchema();const r=t.replace(/-/g," ").replace(/\b\w/g,n=>n.toUpperCase());showToast(`${n} template "${r}" applied successfully`,"success")}}function minifyJSON(){if(generatedRawCode){const n=generatedRawCode.match(/`;generatedRawCode=i;document.getElementById("codeOutput").innerHTML=syntaxHighlight(i);isMinified=!0;const n=document.querySelector('button[onclick="minifyJSON()"]');n&&(n.innerHTML='<\/i> Format',lucide.createIcons({nodes:[n]}));showToast("JSON-LD minified successfully","success")}catch(i){showToast("Error minifying JSON","error");console.error("Minify error:",i)}}}}}const SCHEMA_TEMPLATES={Article:{"tech-article":{headline:"The Ultimate Guide to Artificial Intelligence in 2026",description:"Comprehensive exploration of AI technologies, machine learning advancements, and their impact on various industries.",image:["https://example.com/images/1x1/ai-guide.jpg","https://example.com/images/4x3/ai-guide.jpg","https://example.com/images/16x9/ai-guide.jpg"],author:{type:"Person",name:"Dr. Sarah Johnson",url:"https://example.com/author/sarah-johnson"},publisher:{type:"Organization",name:"Tech Insights Media",logo:"https://example.com/logos/tech-insights.png"},datePublished:"2026-03-15T08:00:00+00:00",dateModified:"2026-03-28T09:00:00+00:00"},"news-article":{headline:"Breaking: Major Tech Merger Announced - Industry Shift Expected",description:"Two of the largest tech companies join forces in a landmark deal worth $50 billion.",image:["https://example.com/images/news-merger.jpg"],author:{type:"Person",name:"Michael Chen",url:"https://example.com/author/michael-chen"},publisher:{type:"Organization",name:"Global News Network",logo:"https://example.com/logos/gnn.png"},datePublished:"2026-03-27T14:30:00+00:00",dateModified:"2026-03-27T15:00:00+00:00"},"blog-post":{headline:"10 Essential Tips for Starting Your First Blog in 2026",description:"A beginner-friendly guide to launching a successful blog, from choosing your niche to monetization strategies.",image:["https://example.com/images/blogging-tips.jpg"],author:{type:"Person",name:"Emma Rodriguez",url:"https://example.com/author/emma-rodriguez"},publisher:{type:"Organization",name:"Blogger's Hub",logo:"https://example.com/logos/bloggers-hub.png"},datePublished:"2026-03-20T10:00:00+00:00",dateModified:"2026-03-25T11:20:00+00:00"},"review-article":{headline:"Sony WH-1000XM6 Headphones: In-Depth Review",description:"Comprehensive review of Sony's latest noise-canceling headphones with testing results, comparisons, and final verdict.",image:["https://example.com/images/sony-headphones-review.jpg"],author:{type:"Person",name:"Alex Thompson",url:"https://example.com/author/alex-thompson"},publisher:{type:"Organization",name:"Audio Tech Reviews",logo:"https://example.com/logos/audio-tech.png"},datePublished:"2026-03-10T09:00:00+00:00",dateModified:"2026-03-22T10:00:00+00:00"},tutorial:{headline:"Building Your First React App: Complete Tutorial",description:"Step-by-step tutorial covering React fundamentals, component creation, state management, and deployment.",image:["https://example.com/images/react-tutorial.jpg"],author:{type:"Person",name:"James Wilson",url:"https://example.com/author/james-wilson"},publisher:{type:"Organization",name:"Dev Education",logo:"https://example.com/logos/dev-edu.png"},datePublished:"2026-03-05T08:00:00+00:00",dateModified:"2026-03-18T09:00:00+00:00"}},Product:{"simple-product":{name:"Premium Wireless Headphones - Noise Cancelling",description:"High-quality wireless headphones with advanced noise cancellation, 30-hour battery life.",image:["https://example.com/images/wireless-headphones.jpg"],brand:{type:"Brand",name:"AudioTech"},sku:"ATH-WH1000-2026",gtin13:"1234567890123",offers:{type:"Offer",url:"https://example.com/product/headphones",priceCurrency:"USD",price:"249.99",priceValidUntil:"2026-12-31",itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",seller:{type:"Organization",name:"AudioTech Official"}},aggregateRating:{type:"AggregateRating",ratingValue:"4.7",reviewCount:"1250"}},"digital-product":{name:"Complete Web Development Course Bundle",description:"Full-stack web development course covering HTML, CSS, JavaScript, React, Node.js, and MongoDB.",image:["https://example.com/images/webdev-course.jpg"],brand:{type:"Brand",name:"CodeAcademy Pro"},sku:"WD-BUNDLE-2026",offers:{type:"Offer",url:"https://example.com/product/web-dev-course",priceCurrency:"USD",price:"199.99",priceValidUntil:"2026-12-31",itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",seller:{type:"Organization",name:"CodeAcademy"}},aggregateRating:{type:"AggregateRating",ratingValue:"4.9",reviewCount:"3420"}},"clothing-product":{name:"Premium Organic Cotton T-Shirt",description:"Sustainable, comfortable, and stylish 100% organic cotton t-shirt available in multiple colors and sizes.",image:["https://example.com/images/organic-tshirt.jpg"],brand:{type:"Brand",name:"EcoWear"},sku:"EW-TEE-ORG-001",gtin13:"9876543210987",offers:{type:"Offer",url:"https://example.com/product/organic-tshirt",priceCurrency:"USD",price:"34.99",priceValidUntil:"2026-12-31",itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",seller:{type:"Organization",name:"EcoWear Store"}},aggregateRating:{type:"AggregateRating",ratingValue:"4.5",reviewCount:"890"}},electronics:{name:"UltraBook Pro X1 Laptop",description:"High-performance laptop with Intel Core i7, 16GB RAM, 1TB SSD, and 4K display for professionals.",image:["https://example.com/images/ultrabook-pro.jpg"],brand:{type:"Brand",name:"TechMaster"},sku:"TM-UBX1-2026",gtin13:"5678901234567",offers:{type:"Offer",url:"https://example.com/product/ultrabook-pro",priceCurrency:"USD",price:"1499.99",priceValidUntil:"2026-12-31",itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",seller:{type:"Organization",name:"TechMaster Official"}},aggregateRating:{type:"AggregateRating",ratingValue:"4.8",reviewCount:"2340"}},"food-product":{name:"Artisanal Coffee Beans - Single Origin",description:"Premium single-origin coffee beans from Ethiopia, medium roast with notes of chocolate and citrus.",image:["https://example.com/images/coffee-beans.jpg"],brand:{type:"Brand",name:"RoastMasters"},sku:"RM-ETH-SO-001",gtin13:"3456789012345",offers:{type:"Offer",url:"https://example.com/product/coffee-beans",priceCurrency:"USD",price:"24.99",priceValidUntil:"2026-12-31",itemCondition:"https://schema.org/NewCondition",availability:"https://schema.org/InStock",seller:{type:"Organization",name:"RoastMasters Shop"}},aggregateRating:{type:"AggregateRating",ratingValue:"4.9",reviewCount:"567"}}},LocalBusiness:{restaurant:{type:"Restaurant",name:"The Golden Dragon Restaurant",image:["https://example.com/images/golden-dragon.jpg"],telephone:"+1-555-123-4567",priceRange:"$$",address:{type:"PostalAddress",streetAddress:"123 Main Street",addressLocality:"San Francisco",addressRegion:"CA",postalCode:"94105",addressCountry:"US"},geo:{type:"GeoCoordinates",latitude:37.7749,longitude:-122.4194},openingHoursSpecification:[{type:"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"11:00",closes:"23:00"}]},"retail-store":{type:"Store",name:"Fashion Hub Boutique",image:["https://example.com/images/fashion-hub.jpg"],telephone:"+1-555-987-6543",priceRange:"$$$",address:{type:"PostalAddress",streetAddress:"456 Fashion Avenue",addressLocality:"New York",addressRegion:"NY",postalCode:"10001",addressCountry:"US"},geo:{type:"GeoCoordinates",latitude:40.7128,longitude:-74.006},openingHoursSpecification:[{type:"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],opens:"09:00",closes:"21:00"}]},salon:{type:"HealthAndBeautyBusiness",name:"Serenity Salon & Spa",image:["https://example.com/images/serenity-salon.jpg"],telephone:"+1-555-456-7890",priceRange:"$$",address:{type:"PostalAddress",streetAddress:"789 Wellness Blvd",addressLocality:"Los Angeles",addressRegion:"CA",postalCode:"90001",addressCountry:"US"},geo:{type:"GeoCoordinates",latitude:34.0522,longitude:-118.2437},openingHoursSpecification:[{type:"OpeningHoursSpecification",dayOfWeek:["Tuesday","Wednesday","Thursday","Friday","Saturday"],opens:"10:00",closes:"20:00"}]},"medical-clinic":{type:"MedicalClinic",name:"City Medical Center",image:["https://example.com/images/medical-center.jpg"],telephone:"+1-555-789-0123",priceRange:"$$$",address:{type:"PostalAddress",streetAddress:"321 Health Street",addressLocality:"Chicago",addressRegion:"IL",postalCode:"60601",addressCountry:"US"},geo:{type:"GeoCoordinates",latitude:41.8781,longitude:-87.6298},openingHoursSpecification:[{type:"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday"],opens:"08:00",closes:"18:00"}]},"real-estate":{type:"RealEstateAgent",name:"Premier Real Estate Group",image:["https://example.com/images/real-estate.jpg"],telephone:"+1-555-234-5678",priceRange:"$$$$",address:{type:"PostalAddress",streetAddress:"654 Property Lane",addressLocality:"Miami",addressRegion:"FL",postalCode:"33101",addressCountry:"US"},geo:{type:"GeoCoordinates",latitude:25.7617,longitude:-80.1918},openingHoursSpecification:[{type:"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],opens:"09:00",closes:"17:00"}]}},FAQPage:{"general-faq":[{question:"What is your return policy?",answer:"We offer a 30-day money-back guarantee on all products. Simply contact our support team to initiate a return."},{question:"How long does shipping take?",answer:"Standard shipping takes 3-5 business days. Express shipping is available for 1-2 business days."},{question:"Do you offer international shipping?",answer:"Yes, we ship to over 50 countries worldwide. Shipping costs and times vary by location."},{question:"How can I track my order?",answer:"Once your order ships, you'll receive a tracking number via email to monitor your delivery."}],"shipping-faq":[{question:"What are your shipping costs?",answer:"Free standard shipping on orders over $50. Otherwise, shipping costs $5.99 for standard delivery."},{question:"Do you ship to PO boxes?",answer:"Yes, we ship to PO boxes via USPS for standard delivery only."},{question:"Can I change my shipping address after ordering?",answer:"Address changes can be made within 1 hour of placing your order by contacting our support team."}],"product-faq":[{question:"Is this product compatible with all devices?",answer:"Yes, our products are designed to work with all major operating systems and devices."},{question:"What warranty do you offer?",answer:"All products come with a standard 1-year manufacturer warranty against defects."},{question:"How do I install/use this product?",answer:"Installation instructions are included in the package and available on our website."}],"service-faq":[{question:"How do I book an appointment?",answer:"Appointments can be booked online through our website or by calling our customer service team."},{question:"What is your cancellation policy?",answer:"Cancellations must be made at least 24 hours in advance to avoid a cancellation fee."},{question:"Do you offer group discounts?",answer:"Yes, we offer special rates for groups of 5 or more. Please contact us for a custom quote."}],"technical-faq":[{question:"What are the system requirements?",answer:"Requires Windows 10/11, macOS 11+, or Linux with at least 8GB RAM and 500MB storage."},{question:"How do I troubleshoot common issues?",answer:"Visit our support page for detailed troubleshooting guides and video tutorials."},{question:"Is technical support available?",answer:"24/7 technical support is available via live chat and email for all customers."}]},Event:{conference:{name:"Tech Innovation Summit 2026",description:"Annual technology conference featuring industry leaders, workshops, and networking opportunities.",image:["https://example.com/images/tech-summit.jpg"],startDate:"2026-06-15T09:00:00-07:00",endDate:"2026-06-17T18:00:00-07:00",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",location:{type:"Place",name:"Convention Center",address:{type:"PostalAddress",streetAddress:"100 Convention Way",addressLocality:"San Francisco",addressRegion:"CA",postalCode:"94103",addressCountry:"US"}},offers:{type:"Offer",url:"https://example.com/tickets/tech-summit",price:"299.00",priceCurrency:"USD",availability:"https://schema.org/InStock",validFrom:"2026-01-01T00:00:00-07:00"},organizer:{type:"Organization",name:"Tech Innovators Association",url:"https://example.com/organizer"}},webinar:{name:"Digital Marketing Masterclass",description:"Live online training covering SEO, social media, email marketing, and analytics strategies.",image:["https://example.com/images/digital-marketing.jpg"],startDate:"2026-04-10T14:00:00-04:00",endDate:"2026-04-10T16:30:00-04:00",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OnlineEventAttendanceMode",location:{type:"VirtualLocation",url:"https://zoom.us/webinar/register/123456"},offers:{type:"Offer",url:"https://example.com/webinar/register",price:"49.00",priceCurrency:"USD",availability:"https://schema.org/InStock",validFrom:"2026-01-01T00:00:00-04:00"},organizer:{type:"Organization",name:"Marketing Pros",url:"https://example.com/marketing-pros"}},concert:{name:"Summer Music Festival 2026",description:"Outdoor concert featuring top artists, food vendors, and entertainment for all ages.",image:["https://example.com/images/music-festival.jpg"],startDate:"2026-07-20T18:00:00-04:00",endDate:"2026-07-22T23:00:00-04:00",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",location:{type:"Place",name:"Central Park Amphitheater",address:{type:"PostalAddress",streetAddress:"Central Park",addressLocality:"New York",addressRegion:"NY",postalCode:"10022",addressCountry:"US"}},offers:{type:"Offer",url:"https://example.com/tickets/summer-fest",price:"150.00",priceCurrency:"USD",availability:"https://schema.org/InStock",validFrom:"2026-02-01T00:00:00-04:00"},performer:{type:"MusicGroup",name:"The Rockers"},organizer:{type:"Organization",name:"Live Events Co.",url:"https://example.com/live-events"}},workshop:{name:"Creative Writing Workshop",description:"Intensive 2-day workshop for aspiring writers covering storytelling, character development, and publishing.",image:["https://example.com/images/writing-workshop.jpg"],startDate:"2026-05-05T10:00:00-05:00",endDate:"2026-05-06T17:00:00-05:00",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",location:{type:"Place",name:"Community Arts Center",address:{type:"PostalAddress",streetAddress:"250 Arts Lane",addressLocality:"Austin",addressRegion:"TX",postalCode:"78701",addressCountry:"US"}},offers:{type:"Offer",url:"https://example.com/tickets/writing-workshop",price:"85.00",priceCurrency:"USD",availability:"https://schema.org/InStock",validFrom:"2026-01-15T00:00:00-05:00"},performer:{type:"Person",name:"Jane Austen Jr."},organizer:{type:"Organization",name:"Austin Writers Guild",url:"https://example.com/austin-writers"}},"sports-event":{name:"City Marathon 2026",description:"Annual marathon event with full, half, and 5K categories for runners of all levels.",image:["https://example.com/images/marathon.jpg"],startDate:"2026-08-15T07:00:00-04:00",endDate:"2026-08-15T14:00:00-04:00",eventStatus:"https://schema.org/EventScheduled",eventAttendanceMode:"https://schema.org/OfflineEventAttendanceMode",location:{type:"Place",name:"City Stadium",address:{type:"PostalAddress",streetAddress:"500 Sports Avenue",addressLocality:"Boston",addressRegion:"MA",postalCode:"02101",addressCountry:"US"}},offers:{type:"Offer",url:"https://example.com/register/marathon",price:"120.00",priceCurrency:"USD",availability:"https://schema.org/InStock",validFrom:"2026-01-01T00:00:00-04:00"},organizer:{type:"Organization",name:"Boston Athletics",url:"https://example.com/boston-athletics"}}}},bgCv=document.getElementById("bgCanvas"),bgCtx=bgCv.getContext("2d");let BW,BH,pts=[];resize();mkPts();drawBg();window.addEventListener("resize",()=>{resize(),mkPts()});const schemaConfig={Article:{icon:"file-text",fields:[{id:"headline",label:"Article Headline",type:"text",placeholder:"e.g., Ultimate Guide to SEO",req:!0},{id:"description",label:"Description",type:"textarea",placeholder:"Brief summary of the article..."},{id:"image",label:"Image URL",type:"url",placeholder:"https://example.com/image.jpg",req:!0},{id:"authorName",label:"Author Name",type:"text",placeholder:"e.g., John Doe"},{id:"publisherName",label:"Publisher (Brand) Name",type:"text",placeholder:"e.g., Tech Blog Inc."},{id:"publisherLogo",label:"Publisher Logo URL",type:"url",placeholder:"https://example.com/logo.png"},{id:"datePublished",label:"Date Published",type:"date"},{id:"dateModified",label:"Date Modified",type:"date"}]},Product:{icon:"shopping-bag",fields:[{id:"name",label:"Product Name",type:"text",placeholder:"e.g., Wireless Headphones",req:!0},{id:"description",label:"Description",type:"textarea",placeholder:"Product details..."},{id:"image",label:"Product Image URL",type:"url",placeholder:"https://example.com/product.jpg",req:!0},{id:"brand",label:"Brand",type:"text",placeholder:"e.g., Sony"},{id:"sku",label:"SKU",type:"text",placeholder:"e.g., WH-1000XM4"},{id:"price",label:"Price",type:"number",placeholder:"e.g., 299.99",req:!0},{id:"currency",label:"Currency",type:"text",placeholder:"e.g., USD",req:!0},{id:"availability",label:"Availability",type:"select",options:["InStock","OutOfStock","PreOrder"]},{id:"ratingValue",label:"Rating Value (1-5)",type:"number",placeholder:"e.g., 4.5"},{id:"reviewCount",label:"Review Count",type:"number",placeholder:"e.g., 120"}]},LocalBusiness:{icon:"store",fields:[{id:"name",label:"Business Name",type:"text",placeholder:"e.g., Joe's Coffee Shop",req:!0},{id:"image",label:"Image URL",type:"url",placeholder:"https://example.com/shop.jpg",req:!0},{id:"telephone",label:"Telephone",type:"text",placeholder:"e.g., +1-555-0123"},{id:"priceRange",label:"Price Range",type:"text",placeholder:"e.g., $$"},{id:"streetAddress",label:"Street Address",type:"text",placeholder:"e.g., 123 Main St"},{id:"addressLocality",label:"City",type:"text",placeholder:"e.g., New York"},{id:"postalCode",label:"Zip / Postal Code",type:"text",placeholder:"e.g., 10001"},{id:"addressCountry",label:"Country Code",type:"text",placeholder:"e.g., US"}]},FAQPage:{icon:"message-circle-question",fields:[]},Event:{icon:"calendar-days",fields:[{id:"name",label:"Event Name",type:"text",placeholder:"e.g., Tech Conference 2026",req:!0},{id:"description",label:"Description",type:"textarea",placeholder:"Event details..."},{id:"image",label:"Image URL",type:"url",placeholder:"https://example.com/event.jpg"},{id:"startDate",label:"Start Date & Time",type:"datetime-local",req:!0},{id:"endDate",label:"End Date & Time",type:"datetime-local",req:!0},{id:"eventAttendanceMode",label:"Event Mode",type:"select",options:["OfflineEventAttendanceMode","OnlineEventAttendanceMode","MixedEventAttendanceMode"]},{id:"locationName",label:"Location/Venue Name",type:"text",placeholder:"e.g., Convention Center"},{id:"locationAddress",label:"Location Address",type:"text",placeholder:"e.g., 123 Event St, City"}]}};let currentType="Article",generatedRawCode="",faqItems=[{q:"",a:""}];document.addEventListener("DOMContentLoaded",()=>{renderTabs();renderForm(currentType);const n=localStorage.getItem("theme");n==="light"?toggleTheme(!0,!1):toggleTheme(!0,!0)});const originalSwitchType=window.switchType;window.switchType=function(n,t){originalSwitchType&&originalSwitchType(n,t);renderTemplatesForSchema(n)};document.addEventListener("DOMContentLoaded",()=>{document.getElementById("templatesContainer")&&renderTemplatesForSchema("Article")});let isMinified=!1,originalFormattedCode=""