Files
neuron-web/dist/page_schema.c
T
will.anderson 90609c7aaf
Dev — Build & local smoke test / build-smoke (pull_request) Failing after 1m57s
Convert page_open to native El; fix corrupted CSS
elc's heredoc tokenizer was corrupting the inline CSS:
- #FAFAF8 -> FAFAF8 (# treated as comment character)
- 'Playfair Display' -> PlayfairDisplay (quotes + space stripped)
- padding: 0 2.5rem -> padding:02.5rem (spaces between tokens stripped)

The CSS and other complex head content (GA script, JSON-LD schema)
have been pre-compiled to C functions (page_css, page_ga_script,
page_schema) so they bypass the tokenizer entirely and are stored as
properly-escaped C string literals.

page_head() now assembles the <head> content using el-html vessel
calls (el_meta_charset, el_meta, el_title, el_link_stylesheet, etc.)
plus string literals for the vessel gaps. page_open() returns the
complete document prologue as a string concatenation with no heredocs.

page_close() remains pre-compiled in dist/page_close.c (unchanged).
2026-05-09 13:07:06 -05:00

111 lines
5.1 KiB
C

#include <stdint.h>
#include <stdlib.h>
#include "el_runtime.h"
el_val_t page_schema(void);
el_val_t page_schema(void) {
return EL_STR("<script type=\"application/ld+json\">\n"
" {\n"
" \"@context\": \"https://schema.org\",\n"
" \"@graph\": [\n"
" {\n"
" \"@type\": \"Organization\",\n"
" \"name\": \"Neuron, LLC\",\n"
" \"url\": \"https://neurontechnologies.ai\",\n"
" \"founder\": {\n"
" \"@type\": \"Person\",\n"
" \"name\": \"Will Anderson\",\n"
" \"jobTitle\": \"Founder\"\n"
" },\n"
" \"description\": \"Neuron builds AI that runs on your machine, builds a memory over time, and gets sharper the longer you use it. One builder. Built different.\",\n"
" \"foundingDate\": \"2026\",\n"
" \"sameAs\": [\"https://github.com/neuron-technologies\"]\n"
" },\n"
" {\n"
" \"@type\": \"SoftwareApplication\",\n"
" \"name\": \"Neuron\",\n"
" \"applicationCategory\": \"AIApplication\",\n"
" \"operatingSystem\": \"macOS, Windows, Linux\",\n"
" \"offers\": [\n"
" {\n"
" \"@type\": \"Offer\",\n"
" \"name\": \"Free\",\n"
" \"price\": \"0\",\n"
" \"priceCurrency\": \"USD\"\n"
" },\n"
" {\n"
" \"@type\": \"Offer\",\n"
" \"name\": \"Professional\",\n"
" \"price\": \"19\",\n"
" \"priceCurrency\": \"USD\",\n"
" \"billingIncrement\": \"monthly\"\n"
" },\n"
" {\n"
" \"@type\": \"Offer\",\n"
" \"name\": \"Founding Member\",\n"
" \"description\": \"Lifetime access for the first 1,000 members.\",\n"
" \"price\": \"199\",\n"
" \"priceCurrency\": \"USD\"\n"
" }\n"
" ],\n"
" \"description\": \"The AI that remembers you. Runs locally on your machine. Builds a persistent memory over every conversation. Gets sharper the longer you use it. Your data never leaves your device.\",\n"
" \"featureList\": [\n"
" \"Persistent memory — runs locally, never resets\",\n"
" \"Bring your own API keys (OpenAI, Anthropic, Grok)\",\n"
" \"Local inference via Ollama — coming, offline, zero cloud\",\n"
" \"Neuron Inference coming soon — priced below major APIs\",\n"
" \"Two devices included per plan\",\n"
" \"Enterprise deployment — Q1 2027\"\n"
" ]\n"
" },\n"
" {\n"
" \"@type\": \"FAQPage\",\n"
" \"mainEntity\": [\n"
" {\n"
" \"@type\": \"Question\",\n"
" \"name\": \"What is Neuron?\",\n"
" \"acceptedAnswer\": {\n"
" \"@type\": \"Answer\",\n"
" \"text\": \"Neuron is an AI that runs on your machine and builds a persistent memory over time. Every other AI forgets you when you close the tab. Neuron doesn&#39;t. The longer you use it, the less you have to explain.\"\n"
" }\n"
" },\n"
" {\n"
" \"@type\": \"Question\",\n"
" \"name\": \"Does Neuron send my data to the cloud?\",\n"
" \"acceptedAnswer\": {\n"
" \"@type\": \"Answer\",\n"
" \"text\": \"No. Your memory lives on your machine and never leaves it. Neuron does not collect your data, train on your conversations, or require cloud storage. For inference you choose: local via Ollama, your own API keys, or Neuron Inference (coming soon).\"\n"
" }\n"
" },\n"
" {\n"
" \"@type\": \"Question\",\n"
" \"name\": \"How much does Neuron cost?\",\n"
" \"acceptedAnswer\": {\n"
" \"@type\": \"Answer\",\n"
" \"text\": \"Neuron has a free tier that never expires. Professional is $19/month. Founding Member is $199 lifetime — available to the first 1,000 members only. All plans include two devices.\"\n"
" }\n"
" },\n"
" {\n"
" \"@type\": \"Question\",\n"
" \"name\": \"Who built Neuron?\",\n"
" \"acceptedAnswer\": {\n"
" \"@type\": \"Answer\",\n"
" \"text\": \"Will Anderson. On April 22nd, 2026 he had a meeting with one of the largest technology companies in the world. Within two days their lawyers were engaged. He decided to build it himself. On April 25th he published the proof.\"\n"
" }\n"
" },\n"
" {\n"
" \"@type\": \"Question\",\n"
" \"name\": \"When does Neuron launch?\",\n"
" \"acceptedAnswer\": {\n"
" \"@type\": \"Answer\",\n"
" \"text\": \"Neuron is available for preorder now. Enterprise deployment launches Q1 2027.\"\n"
" }\n"
" }\n"
" ]\n"
" }\n"
" ]\n"
" }\n"
" </script>");
}