{"id":3226,"date":"2026-03-07T20:22:56","date_gmt":"2026-03-07T20:22:56","guid":{"rendered":"https:\/\/garyhengeveld.com\/wordpress\/?p=3226"},"modified":"2026-03-07T20:26:54","modified_gmt":"2026-03-07T20:26:54","slug":"losod","status":"publish","type":"post","link":"https:\/\/garyhengeveld.com\/wordpress\/losod\/","title":{"rendered":"LOSOD"},"content":{"rendered":"\n<p>LOW SODIUM FOOD FINDER<\/p>\n\n\n\n<p>This tool is designed to help find lower sodium options for everyday foods. results no guaranteed. please always refer to food label on item you are purchasing. tis tool is still in it&#8217;s infancy stages.<\/p>\n\n\n\n<p>search take some time. be patient.<\/p>\n\n\n\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"UTF-8\">\n<title>Low-Sodium Food Finder (v4.0)<\/title>\n<style>\n    body { font-family: Arial, sans-serif; margin: 40px; background: #f5f5f5; }\n    h1 { color: #333; }\n    input { padding: 10px; width: 300px; }\n    button { padding: 10px 20px; margin-left: 10px; cursor: pointer; }\n    .results { margin-top: 30px; }\n    table { width: 100%; border-collapse: collapse; margin-top: 20px; }\n    th, td { padding: 10px; border: 1px solid #ccc; text-align: left; }\n    th { background: #eee; }\n<\/style>\n<\/head>\n<body>\n\n<h1>Low-Sodium Food Finder<\/h1>\n<p>Enter a food item to find <strong>no-salt-added<\/strong> and <strong>reduced-sodium<\/strong> varieties.<\/p>\n\n<input type=\"text\" id=\"query\" placeholder=\"e.g., tomato sauce\">\n<button onclick=\"searchFood()\">Search<\/button>\n\n<div class=\"results\" id=\"results\"><\/div>\n\n<script>\n\/\/ VERSION STAMP \u2014 CONFIRM THIS SHOWS IN YOUR BROWSER CONSOLE\nconsole.log(\"Low Sodium App v4.0 loaded\");\n\nasync function searchFood() {\n    const q = document.getElementById(\"query\").value.trim();\n    if (!q) return alert(\"Please enter a food item.\");\n\n    const resultsDiv = document.getElementById(\"results\");\n    resultsDiv.innerHTML = \"<p>Searching...<\/p>\";\n\n    const url = `https:\/\/world.openfoodfacts.org\/cgi\/search.pl?search_terms=${encodeURIComponent(q)}&search_simple=1&action=process&json=1`;\n\n    try {\n        const response = await fetch(url, { mode: \"cors\" });\n        const data = await response.json();\n\n        let products = data.products || [];\n\n        const norm = s => (s || \"\").toLowerCase();\n\n        \/\/ FINAL, BULLETPROOF SODIUM FILTER\n        const sodiumMg = p => {\n            let s = p.nutriments?.sodium_100g;\n\n            \/\/ Convert ANYTHING to a number\n            s = Number(s);\n\n            \/\/ Reject:\n            \/\/ - missing\n            \/\/ - empty\n            \/\/ - NaN\n            \/\/ - zero\n            \/\/ - negative\n            if (!s || isNaN(s) || s <= 0) return null;\n\n            return Math.round(s * 1000);\n        };\n\n        \/\/ Only keep products with valid sodium values\n        products = products.filter(p => sodiumMg(p) !== null);\n\n        \/\/ Sort by sodium ascending\n        products.sort((a, b) => sodiumMg(a) - sodiumMg(b));\n\n        \/\/ Filters\n        const noSaltAdded = products.filter(p =>\n            norm(p.labels).includes(\"no salt added\") ||\n            norm(p.product_name).includes(\"no salt added\")\n        );\n\n        const reducedSodium = products.filter(p => {\n            const s = sodiumMg(p);\n            return s !== null && s > 0 && s < 120;\n        });\n\n        resultsDiv.innerHTML = `\n            <h2>Results for \"${q}\"<\/h2>\n            ${makeTable(\"No Salt Added\", noSaltAdded, sodiumMg)}\n            ${makeTable(\"Reduced Sodium (<120 mg)\", reducedSodium, sodiumMg)}\n            <p style=\"color:#b00; font-size:0.9em;\">\n                Note: All 0 mg sodium results are excluded because OpenFoodFacts often reports missing sodium as 0.\n            <\/p>\n        `;\n    } catch (err) {\n        resultsDiv.innerHTML = \"<p>Error fetching data.<\/p>\";\n        console.error(err);\n    }\n}\n\nfunction makeTable(title, items, sodiumFn) {\n    if (!items.length) return `<h3>${title}<\/h3><p>No items found.<\/p>`;\n\n    let rows = items.map(p => `\n        <tr>\n            <td>${p.product_name || \"Unknown\"}<\/td>\n            <td>${p.brands || \"Unknown\"}<\/td>\n            <td>${p.quantity || \"Unknown\"}<\/td>\n            <td>${sodiumFn(p)} mg<\/td>\n        <\/tr>\n    `).join(\"\");\n\n    return `\n        <h3>${title}<\/h3>\n        <table>\n            <tr>\n                <th>Product<\/th>\n                <th>Brand<\/th>\n                <th>Package Size<\/th>\n                <th>Sodium<\/th>\n            <\/tr>\n            ${rows}\n        <\/table>\n    `;\n}\n<\/script>\n\n<\/body>\n<\/html>\n\n","protected":false},"excerpt":{"rendered":"<p>LOW SODIUM FOOD FINDER This tool is designed to help find lower sodium options for everyday foods. results no guaranteed. please always refer to food label on item you are&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","footnotes":""},"categories":[23,1],"tags":[],"class_list":["post-3226","post","type-post","status-publish","format-standard","hentry","category-food","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\r\n<title>LOSOD - GaryHengeveld<\/title>\r\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\r\n<link rel=\"canonical\" href=\"https:\/\/garyhengeveld.com\/wordpress\/losod\/\" \/>\r\n<meta property=\"og:locale\" content=\"en_US\" \/>\r\n<meta property=\"og:type\" content=\"article\" \/>\r\n<meta property=\"og:title\" content=\"LOSOD - GaryHengeveld\" \/>\r\n<meta property=\"og:description\" content=\"LOW SODIUM FOOD FINDER This tool is designed to help find lower sodium options for everyday foods. results no guaranteed. please always refer to food label on item you are&hellip;\" \/>\r\n<meta property=\"og:url\" content=\"https:\/\/garyhengeveld.com\/wordpress\/losod\/\" \/>\r\n<meta property=\"og:site_name\" content=\"GaryHengeveld\" \/>\r\n<meta property=\"article:published_time\" content=\"2026-03-07T20:22:56+00:00\" \/>\r\n<meta property=\"article:modified_time\" content=\"2026-03-07T20:26:54+00:00\" \/>\r\n<meta name=\"author\" content=\"ghd796\" \/>\r\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\r\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ghd796\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\r\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/\"},\"author\":{\"name\":\"ghd796\",\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/a56bd109b9611da934105651f63c1988\"},\"headline\":\"LOSOD\",\"datePublished\":\"2026-03-07T20:22:56+00:00\",\"dateModified\":\"2026-03-07T20:26:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/\"},\"wordCount\":65,\"publisher\":{\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/a56bd109b9611da934105651f63c1988\"},\"articleSection\":[\"Food\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/\",\"url\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/\",\"name\":\"LOSOD - GaryHengeveld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/#website\"},\"datePublished\":\"2026-03-07T20:22:56+00:00\",\"dateModified\":\"2026-03-07T20:26:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/losod\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LOSOD\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/\",\"name\":\"GaryHengeveld\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/a56bd109b9611da934105651f63c1988\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/a56bd109b9611da934105651f63c1988\",\"name\":\"ghd796\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/GLOGO.png\",\"url\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/GLOGO.png\",\"contentUrl\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/GLOGO.png\",\"width\":150,\"height\":150,\"caption\":\"ghd796\"},\"logo\":{\"@id\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/GLOGO.png\"},\"url\":\"https:\\\/\\\/garyhengeveld.com\\\/wordpress\\\/author\\\/ghd796\\\/\"}]}<\/script>\r\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LOSOD - GaryHengeveld","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/garyhengeveld.com\/wordpress\/losod\/","og_locale":"en_US","og_type":"article","og_title":"LOSOD - GaryHengeveld","og_description":"LOW SODIUM FOOD FINDER This tool is designed to help find lower sodium options for everyday foods. results no guaranteed. please always refer to food label on item you are&hellip;","og_url":"https:\/\/garyhengeveld.com\/wordpress\/losod\/","og_site_name":"GaryHengeveld","article_published_time":"2026-03-07T20:22:56+00:00","article_modified_time":"2026-03-07T20:26:54+00:00","author":"ghd796","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ghd796","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/garyhengeveld.com\/wordpress\/losod\/#article","isPartOf":{"@id":"https:\/\/garyhengeveld.com\/wordpress\/losod\/"},"author":{"name":"ghd796","@id":"https:\/\/garyhengeveld.com\/wordpress\/#\/schema\/person\/a56bd109b9611da934105651f63c1988"},"headline":"LOSOD","datePublished":"2026-03-07T20:22:56+00:00","dateModified":"2026-03-07T20:26:54+00:00","mainEntityOfPage":{"@id":"https:\/\/garyhengeveld.com\/wordpress\/losod\/"},"wordCount":65,"publisher":{"@id":"https:\/\/garyhengeveld.com\/wordpress\/#\/schema\/person\/a56bd109b9611da934105651f63c1988"},"articleSection":["Food"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/garyhengeveld.com\/wordpress\/losod\/","url":"https:\/\/garyhengeveld.com\/wordpress\/losod\/","name":"LOSOD - GaryHengeveld","isPartOf":{"@id":"https:\/\/garyhengeveld.com\/wordpress\/#website"},"datePublished":"2026-03-07T20:22:56+00:00","dateModified":"2026-03-07T20:26:54+00:00","breadcrumb":{"@id":"https:\/\/garyhengeveld.com\/wordpress\/losod\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/garyhengeveld.com\/wordpress\/losod\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/garyhengeveld.com\/wordpress\/losod\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/garyhengeveld.com\/wordpress\/"},{"@type":"ListItem","position":2,"name":"LOSOD"}]},{"@type":"WebSite","@id":"https:\/\/garyhengeveld.com\/wordpress\/#website","url":"https:\/\/garyhengeveld.com\/wordpress\/","name":"GaryHengeveld","description":"","publisher":{"@id":"https:\/\/garyhengeveld.com\/wordpress\/#\/schema\/person\/a56bd109b9611da934105651f63c1988"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/garyhengeveld.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/garyhengeveld.com\/wordpress\/#\/schema\/person\/a56bd109b9611da934105651f63c1988","name":"ghd796","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/garyhengeveld.com\/wordpress\/wp-content\/uploads\/2026\/03\/GLOGO.png","url":"https:\/\/garyhengeveld.com\/wordpress\/wp-content\/uploads\/2026\/03\/GLOGO.png","contentUrl":"https:\/\/garyhengeveld.com\/wordpress\/wp-content\/uploads\/2026\/03\/GLOGO.png","width":150,"height":150,"caption":"ghd796"},"logo":{"@id":"https:\/\/garyhengeveld.com\/wordpress\/wp-content\/uploads\/2026\/03\/GLOGO.png"},"url":"https:\/\/garyhengeveld.com\/wordpress\/author\/ghd796\/"}]}},"_links":{"self":[{"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/posts\/3226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/comments?post=3226"}],"version-history":[{"count":3,"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/posts\/3226\/revisions"}],"predecessor-version":[{"id":3230,"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/posts\/3226\/revisions\/3230"}],"wp:attachment":[{"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/media?parent=3226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/categories?post=3226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/garyhengeveld.com\/wordpress\/wp-json\/wp\/v2\/tags?post=3226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}