Skip to content

togo-framework/to-go.dev

Repository files navigation

togo

to-go.dev

The to-go.dev website — itself a togo app (TanStack + @togo-framework/ui), prerendered to static.

part of the togo-framework


to-go.dev dogfoods the framework: it's a real togo project (Go microkernel + plugins + a TanStack React frontend in web/) whose marketing site, repo index, and per-repo docs are prerendered to static HTML for full SEO/AEO and served behind Caddy/NPM + Let's Encrypt.

What it serves

Route What
/ Landing — built with the @togo-framework/ui kit (Logo, Wordmark, Button, Card)
/repos Every togo-framework repository (live from the GitHub API at build time)
/docs/<repo> That repo's README, rendered via the kit's MarkdownRenderer
/docs/<repo>.md The raw Markdown (agents / AEO)
/llms.txt Agent index of the whole site (every page + repo)
/sitemap.xml, /robots.txt SEO
/install.sh, /update.sh the CLI installers (curl -fsSL https://to-go.dev/install.sh | sh)

Build

cd web
npm install
npm run build      # fetch-repos (gh) → vite build → puppeteer prerender → dist/

web/scripts/fetch-repos.mjs pulls every repo + README from GitHub and emits the route data, per-repo .md, llms.txt, sitemap.xml, robots.txt. web/scripts/prerender.mjs renders every route to static HTML (real <head> per page for SEO). CI (.github/workflows/deploy.yml) runs the same build and ships dist/ to the box on every push to main.

Layout

web/                 TanStack React frontend (the site)
  src/routes/        landing · repos · doc
  src/components/    site chrome + Seo (react-helmet-async)
  scripts/           fetch-repos.mjs · prerender.mjs
deploy/nginx.conf    static serving: clean URLs + raw text/plain for .md/llms.txt
cmd/ internal/ db/   the togo Go app (microkernel + plugins) — the dogfood backend

💎 Premium sponsors

togo is proudly sponsored by ID8 Media and One Studio.

ID8 Media        One Studio

About

to-go.dev — the togo framework website: landing, docs, install.sh/update.sh.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors