{
    "schemaVersion": "1.0.0",
    "@context": "https://schema.org",
    "@type": "WebPage",
    "@id": "https://nrlc.ai/en-us/promptware/json-stream-seo-ai/#webpage",
    "url": "https://nrlc.ai/en-us/promptware/json-stream-seo-ai/",
    "name": "JSON Stream + SEO AI · Promptware · NRLC.ai",
    "description": "Open-source JSON streaming (NDJSON) utilities and AI manifests for LLM/RAG and internal crawlers.",
    "inLanguage": "en-US",
    "content": {
        "format": "text/markdown",
        "wordCount": 2170,
        "headings": [
            {
                "level": 1,
                "text": "JSON Stream + SEO AI"
            },
            {
                "level": 2,
                "text": "What this installs"
            },
            {
                "level": 2,
                "text": "Cursor one-shot"
            },
            {
                "level": 2,
                "text": "Verify"
            }
        ],
        "markdown": "---\ntitle: JSON Stream + SEO AI · Promptware · NRLC.ai\ndescription: Open-source JSON streaming (NDJSON) utilities and AI manifests for LLM/RAG and internal crawlers.\norganization: Neural Command LLC\ncanonical: https://nrlc.ai/en-us/promptware/json-stream-seo-ai/\n---\n\n## What this installs\n\nPath\n\nDescription\n\n`/api/stream`Live\n\n`application/x-ndjson`stream (one JSON-LD object per line).\n\n`/public/sitemaps/sitemap-ai.ndjson`AI manifest (NDJSON). Built from CSV.\n\n`/scripts/build_ai_manifest.php`CSV → NDJSON generator.\n\n`/scripts/verify_ndjson.sh`Verifier using\n\n`jq`.\n\n`/Makefile`Convenience targets to build/verify/test.\n\n`/public/robots.txt`Adds\n\n`AI-Manifest:`discovery line.\n\n`/public/.htaccess`NDJSON headers + cache policy (Apache).\n\n## Cursor one-shot\n\nOpen to copy\n\n`You are editing a PHP 8+ project named \"NRLC.ai\". Create/overwrite the files below EXACTLY as specified. After writing, run `php -l` on all PHP files and print:\n\nDONE: Promptware — JSON Stream + SEO AI (Style-Agnostic) installed.\n\n1) STREAMING API (NDJSON; no buffering)\nCreate file: public/api/stream/index.php\n<?php\ndeclare(strict_types=1);\nheader('Content-Type: application/x-ndjson; charset=utf-8');\nheader('Cache-Control: no-cache, no-store, must-revalidate');\nheader('X-Accel-Buffering: no');\n@ini_set('output_buffering','off'); @ini_set('zlib.output_compression','0'); @ob_implicit_flush(true); while (ob_get_level()>0) ob_end_flush();\n$domain='https://nrlc.ai'; $limit=isset($_GET['limit'])?max(1,min(500,(int)$_GET['limit'])):10;\n$rows=[\n  [\"@context\"=>\"https://schema.org\",\"@type\"=>\"WebPage\",\"url\"=>$domain.\"/\",\"name\"=>\"NRLC.ai — Home\",\"inLanguage\"=>\"en\",\"dateModified\"=>date('Y-m-d')],\n  [\"@context\"=>\"https://schema.org\",\"@type\"=>\"CreativeWork\",\"url\"=>$domain.\"/promptware/\",\"name\"=>\"Promptware\",\"about\"=>[\"NDJSON\",\"AI manifest\",\"RAG\",\"LLMO\"],\"dateModified\"=>date('Y-m-d')],\n  [\"@context\"=>\"https://schema.org\",\"@type\"=>\"HowTo\",\"url\"=>$domain.\"/promptware/json-stream-seo-ai/\",\"name\"=>\"JSON Stream + SEO AI\",\"totalTime\"=>\"PT20M\",\"dateModified\"=>date('Y-m-d')],\n];\n$c=0; foreach($rows as $r){ if($c>=$limit) break; echo json_encode($r,JSON_UNESCAPED_SLASHES).\"\\n\"; $c++; usleep(150000);} exit;\n\n2) AI MANIFEST (seed rows; build can overwrite)\nCreate file: public/sitemaps/sitemap-ai.ndjson\n{\"@context\":\"https://schema.org\",\"@type\":\"WebPage\",\"url\":\"https://nrlc.ai/\",\"name\":\"Home\",\"inLanguage\":\"en\",\"dateModified\":\"2025-10-27\"}\n{\"@context\":\"https://schema.org\",\"@type\":\"CollectionPage\",\"url\":\"https://nrlc.ai/promptware/\",\"name\":\"Promptware\",\"inLanguage\":\"en\",\"dateModified\":\"2025-10-27\"}\n{\"@context\":\"https://schema.org\",\"@type\":\"TechArticle\",\"url\":\"https://nrlc.ai/promptware/json-stream-seo-ai/\",\"name\":\"JSON Stream + SEO AI\",\"inLanguage\":\"en\",\"dateModified\":\"2025-10-27\",\"keywords\":[\"NDJSON\",\"AI manifest\",\"LLM seeding\",\"RAG\"]}\n\n3) CSV → NDJSON builder\nCreate file: scripts/build_ai_manifest.php\n<?php\ndeclare(strict_types=1);\n$csv=__DIR__.'/../data/ai_manifest_seed.csv'; $out=__DIR__.'/../public/sitemaps/sitemap-ai.ndjson';\nif(!is_file($csv)){ @mkdir(dirname($csv),0775,true); file_put_contents($csv,\"url,name,type,lang,lastmod,keywords\\nhttps://nrlc.ai/,NRLC.ai — Home,WebPage,en,\".date('Y-m-d').\",brand\\n\"); }\n$fp=fopen($csv,'r'); $hdr=fgetcsv($fp); @mkdir(dirname($out),0775,true); $fo=fopen($out,'w');\nwhile(($row=fgetcsv($fp))!==false){ $rec=array_combine($hdr,$row);\n  $obj=[\"@context\"=>\"https://schema.org\",\"@type\"=>$rec['type']?:'WebPage',\"url\"=>$rec['url'],\"name\"=>$rec['name'],\"inLanguage\"=>$rec['lang']?:'en',\"dateModified\"=>$rec['lastmod']?:date('Y-m-d')];\n  if(!empty($rec['keywords'])){ $obj['keywords']=array_values(array_filter(array_map('trim',explode('|',$rec['keywords'])))); }\n  fwrite($fo,json_encode($obj,JSON_UNESCAPED_SLASHES).\"\\n\");\n} fclose($fp); fclose($fo); echo \"WROTE: $out\\n\";\n\n4) Verifier (bash + jq)\nCreate file: scripts/verify_ndjson.sh\n#!/usr/bin/env bash\nset -euo pipefail\nAI_NDJSON=\"public/sitemaps/sitemap-ai.ndjson\"\n[[ -s \"$AI_NDJSON\" ]] || { echo \"Missing AI manifest: $AI_NDJSON\"; exit 1; }\nhead -n 1 \"$AI_NDJSON\" | jq . >/dev/null 2>&1 || { echo \"First line not valid JSON\"; exit 1; }\nLINES=$(wc -l < \"$AI_NDJSON\" | tr -d ' ')\necho \"OK: $AI_NDJSON ($LINES rows)\"\n\n5) Makefile targets\nCreate file: Makefile\nSHELL := /bin/bash\n.PHONY: sitemap:ai ndjson:verify stream:test\nsitemap:ai:\n\tphp scripts/build_ai_manifest.php\nndjson:verify:\n\tbash scripts/verify_ndjson.sh\nstream:test:\n\tcurl -s https://nrlc.ai/api/stream?limit=3 | head -n 3 | jq .\n\n6) robots.txt (append)\nCreate file if missing: public/robots.txt\nUser-agent: *\nDisallow:\n\nSitemap: https://nrlc.ai/sitemap.xml\nAI-Manifest: https://nrlc.ai/sitemaps/sitemap-ai.ndjson\n\nIf robots.txt exists, ensure a single AI-Manifest line.\n\n7) .htaccess (Apache headers; safe no-op on Nginx)\nCreate/append file: public/.htaccess\n\n  Header set Content-Type \"application/x-ndjson; charset=utf-8\"\n  Header set Cache-Control \"public, max-age=86400, immutable\"\n\n\n  \n    Header set Cache-Control \"no-cache, no-store, must-revalidate\"\n  \n\n\nValidation\n- php -l public/api/stream/index.php\n- php -l scripts/build_ai_manifest.php\n\nThen print:\nDONE: Promptware — JSON Stream + SEO AI (Style-Agnostic) installed.`## Verify\n\n`make sitemap-ai\nmake ndjson-verify\ncurl -s https://nrlc.ai/api/stream?limit=3 | head -n 3 | jq .`\n\n---\n\nSource: https://nrlc.ai/en-us/promptware/json-stream-seo-ai/\nPublisher: Neural Command LLC\nLicense: Editorial use with attribution\n"
    },
    "structuredData": [
        {
            "@context": "https://schema.org",
            "@graph": [
                {
                    "@type": "Organization",
                    "@id": "https://nrlc.ai/#organization",
                    "name": "Neural Command, LLC",
                    "legalName": "Neural Command, LLC",
                    "alternateName": [
                        "NRLC.ai",
                        "Neural Command"
                    ],
                    "url": "https://nrlc.ai",
                    "telephone": "+1 844-568-4624",
                    "address": {
                        "@type": "PostalAddress",
                        "streetAddress": "1639 11th St suite 110-a",
                        "addressLocality": "Santa Monica",
                        "addressRegion": "CA",
                        "postalCode": "90404",
                        "addressCountry": "US"
                    },
                    "logo": {
                        "@type": "ImageObject",
                        "url": "https://nrlc.ai/assets/images/nrlc-logo.png",
                        "width": 43,
                        "height": 43
                    },
                    "sameAs": [
                        "https://www.linkedin.com/company/neural-command/",
                        "https://www.crunchbase.com/organization/neural-command",
                        "https://g.co/kgs/EP6p5de"
                    ],
                    "description": "NRLC.ai designs semantic and knowledge architecture so organizations can be identified, related, evidenced, represented, and retrieved as reliable context for search engines, LLMs, agents, and other machine systems. Neural Command, LLC (NRLC.ai) structures identity, relationships, evidence, provenance, and machine-readable representations — Search Architecture, AI Discovery Systems, and Search Intelligence. SEO, GEO, and AI visibility remain capability modules, not the company definition."
                },
                {
                    "@type": "WebSite",
                    "@id": "https://nrlc.ai/en-us/#website",
                    "url": "https://nrlc.ai/en-us/",
                    "name": "NRLC.ai",
                    "alternateName": [
                        "Neural Command, LLC",
                        "Neural Command"
                    ],
                    "description": "NRLC.ai designs semantic and knowledge architecture so organizations can be identified, related, evidenced, represented, and retrieved as reliable context for search engines, LLMs, agents, and other machine systems. Neural Command, LLC (NRLC.ai) structures identity, relationships, evidence, provenance, and machine-readable representations — Search Architecture, AI Discovery Systems, and Search Intelligence. SEO, GEO, and AI visibility remain capability modules, not the company definition.",
                    "inLanguage": "en-US",
                    "publisher": {
                        "@type": "Organization",
                        "@id": "https://nrlc.ai/#organization"
                    }
                },
                {
                    "@type": "BreadcrumbList",
                    "itemListElement": [
                        {
                            "@type": "ListItem",
                            "position": 1,
                            "name": "Home",
                            "item": "https://nrlc.ai/"
                        }
                    ]
                },
                {
                    "@type": "WebPage",
                    "@id": "https://nrlc.ai/en-us/promptware/json-stream-seo-ai/#webpage",
                    "url": "https://nrlc.ai/en-us/promptware/json-stream-seo-ai/",
                    "name": "JSON Stream + SEO AI · Promptware · NRLC.ai",
                    "isPartOf": {
                        "@type": "WebSite",
                        "@id": "https://nrlc.ai/en-us/#website"
                    },
                    "publisher": {
                        "@type": "Organization",
                        "@id": "https://nrlc.ai/#organization"
                    },
                    "description": "Open-source JSON streaming (NDJSON) utilities and AI manifests for LLM/RAG and internal crawlers."
                }
            ]
        },
        {
            "@context": "https://schema.org",
            "@type": "BreadcrumbList",
            "itemListElement": [
                {
                    "@type": "ListItem",
                    "position": 1,
                    "name": "Home",
                    "item": "https://nrlc.ai/"
                },
                {
                    "@type": "ListItem",
                    "position": 2,
                    "name": "Promptware",
                    "item": "https://nrlc.ai/promptware/"
                },
                {
                    "@type": "ListItem",
                    "position": 3,
                    "name": "JSON Stream + SEO AI",
                    "item": "https://nrlc.ai/promptware/json-stream-seo-ai/"
                }
            ]
        },
        {
            "@context": "https://schema.org",
            "@type": "TechArticle",
            "headline": "JSON Stream + SEO AI — Promptware",
            "about": [
                "NDJSON",
                "AI manifest",
                "RAG",
                "LLMO"
            ],
            "author": {
                "@type": "Organization",
                "name": "NRLC.ai"
            },
            "publisher": {
                "@type": "Organization",
                "name": "NRLC.ai"
            },
            "datePublished": "2025-10-27",
            "dateModified": "2025-10-27",
            "inLanguage": "en",
            "mainEntityOfPage": "https://nrlc.ai/promptware/json-stream-seo-ai/"
        },
        {
            "@context": "https://schema.org",
            "@type": "HowTo",
            "name": "Install JSON Stream + SEO AI",
            "totalTime": "PT20M",
            "tool": [
                {
                    "@type": "HowToTool",
                    "name": "PHP 8+"
                },
                {
                    "@type": "HowToTool",
                    "name": "jq"
                }
            ],
            "step": [
                {
                    "@type": "HowToStep",
                    "name": "Install API",
                    "text": "Add /api/stream returning application/x-ndjson."
                },
                {
                    "@type": "HowToStep",
                    "name": "Build AI Manifest",
                    "text": "Generate sitemap-ai.ndjson from CSV."
                },
                {
                    "@type": "HowToStep",
                    "name": "Verify",
                    "text": "Use jq/head to validate JSON lines."
                }
            ]
        },
        {
            "@context": "https://schema.org",
            "@type": "SoftwareSourceCode",
            "name": "Promptware — JSON Stream + SEO AI",
            "codeRepository": "https://nrlc.ai/promptware/json-stream-seo-ai/",
            "programmingLanguage": "PHP",
            "runtimePlatform": "PHP 8+",
            "license": "https://opensource.org/licenses/MIT"
        },
        {
            "@context": "https://schema.org",
            "@type": "APIReference",
            "name": "NDJSON Stream API",
            "description": "Streams JSON-LD objects one per line with content-type application/x-ndjson.",
            "url": "https://nrlc.ai/api/stream",
            "programmingLanguage": "HTTP",
            "targetPlatform": "Web"
        },
        {
            "@context": "https://schema.org",
            "@type": "Dataset",
            "name": "NRLC.ai AI Manifest (NDJSON)",
            "description": "Compact JSON-LD rows for site pages to aid LLM/RAG ingestion.",
            "creator": {
                "@type": "Organization",
                "name": "NRLC.ai"
            },
            "license": "https://opensource.org/licenses/MIT",
            "distribution": [
                {
                    "@type": "DataDownload",
                    "encodingFormat": "application/x-ndjson",
                    "contentUrl": "https://nrlc.ai/sitemaps/sitemap-ai.ndjson"
                }
            ]
        }
    ],
    "representations": {
        "html": "https://nrlc.ai/en-us/promptware/json-stream-seo-ai/",
        "markdown": "https://nrlc.ai/en-us/promptware/json-stream-seo-ai.md",
        "json": "https://nrlc.ai/en-us/promptware/json-stream-seo-ai.json"
    },
    "publisher": {
        "@id": "https://nrlc.ai/#organization",
        "name": "Neural Command, LLC"
    }
}
