{
  "id": "packing-list",
  "name": "Packing List",
  "category": "travel",
  "tags": ["packing", "travel", "list", "trip", "checklist", "luggage"],
  "description": "Trip packing checklist with categories and progress tracking.",
  "triggers": ["packing list", "what to pack", "travel checklist", "packing", "trip prep"],
  "defaultSize": { "w": 4, "h": 6 },
  "source": "function PackingList() {\n  const [items, setItems] = React.useState([\n    {cat:'Clothes',list:[{text:'REPLACE_WITH_ITEM_1',done:false},{text:'Underwear (3)',done:false},{text:'Jacket',done:false}]},\n    {cat:'Toiletries',list:[{text:'Toothbrush',done:false},{text:'Shampoo',done:false},{text:'Deodorant',done:false}]},\n    {cat:'Tech',list:[{text:'Phone charger',done:false},{text:'Power bank',done:false},{text:'Headphones',done:false}]},\n    {cat:'Docs',list:[{text:'Passport',done:false},{text:'Boarding pass',done:false},{text:'Hotel booking',done:false}]}\n  ]);\n\n  const toggle = (ci,li)=>{\n    setItems(items.map((c,i)=>i===ci?{...c,list:c.list.map((l,j)=>j===li?{...l,done:!l.done}:l)}:c));\n  };\n\n  const total = items.reduce((a,c)=>a+c.list.length,0);\n  const done = items.reduce((a,c)=>a+c.list.filter(l=>l.done).length,0);\n\n  return (\n    <div style={{padding:16,fontFamily:'system-ui',height:'100%',display:'flex',flexDirection:'column'}}>\n      <div style={{fontSize:18,fontWeight:700,marginBottom:8}}>Packing List</div>\n      <div style={{height:6,background:'#eee',borderRadius:3,marginBottom:12}}>\n        <div style={{width:`${(done/total)*100}%`,height:'100%',background:'#34C759',borderRadius:3,transition:'width 0.3s'}}/>\n      </div>\n      <div style={{fontSize:12,color:'#888',marginBottom:10}}>{done} of {total} packed</div>\n      <div style={{flex:1,overflow:'auto'}}>\n        {items.map((cat,ci)=> (\n          <div key={ci} style={{marginBottom:12}}>\n            <div style={{fontSize:13,fontWeight:700,color:'#555',marginBottom:6}}>{cat.cat}</div>\n            {cat.list.map((item,li)=> (\n              <label key={li} style={{display:'flex',alignItems:'center',gap:8,padding:'4px 0',cursor:'pointer'}}>\n                <input type=\"checkbox\" checked={item.done} onChange={()=>toggle(ci,li)}/>\n                <span style={{fontSize:13,textDecoration:item.done?'line-through':'none',color:item.done?'#888':'#000'}}>\n                  {item.text}\n                </span>\n              </label>\n            ))}\n          </div>\n        ))}\n      </div>\n    </div>\n  );\n}\nrender(<PackingList/>);",
  "placeholders": [
    { "name": "REPLACE_WITH_ITEM_1", "description": "First clothing item", "default": "T-shirts (3)" }
  ]
}
