MCPcopy Create free account
hub / github.com/Borrus-sudo/tinypages

github.com/Borrus-sudo/tinypages @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
184 symbols 517 edges 85 files ⚖ MIT 3 documented · 2% updated 3y ago★ 110

Browse by type

Functions 145 Types & classes 39
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

awesome-stack hero icon

tinypages

⚡ At times you might wanna do something small with losing SEO, tinypages for the win!

<img src="https://img.shields.io/github/issues/Borrus-sudo/tinypages" align="center" alt="Issue Badge" />
<img src="https://img.shields.io/github/stars/Borrus-sudo/tinypages" align="center" alt="Stars Badge" />

tinypages is a Vite based SSG, using markdown interpolated with Preact components to build MPA websites tiny and fast! The main aim of this project is to leverage vitejs to provide a tight knit dev experience and optimized builds for prod

Features

  • 🔌 Supercharged markdown syntax
  • 🏝️ Islands architecture with partial hydration support
  • ⏩ Fast builds facilitated by granular caching with support for incremental rebuilds!
  • 🔋 First class integration with preact!
  • 🎯 tiny client foot print (~ 3kb)
  • ⚡️ Fast and granular HMR via million and prefresh!
  • 📂 Fast File based routing with auto type generation and remix like layout system!
  • 📑 Layout system support
  • 📲 PWA ready
  • 🎨 UnoCSS - default integration with unocss with proper HMR and dev tools support
  • 🍱 Use any icon directly in markdown or in preact components!
  • 🔥 Suspense support and easy component based code splitting!
  • 🖨 Static-site generation (SSG) at build time
  • 🦔 Critical CSS via critters
  • 🦦 SEO goodies: on demand lighthouse score with unlighthouse, auto rss generation by analysing schema
  • ⚙️ Unit Testing with Vitest and Enzyme
  • 🔨 Smart link prefetching support!
  • 📦 Components auto imported in markdown
  • 🗜 Use Liquidjs templating in markdown for preactjs components
  • 🦾 All batteries included: flexible build process, image optimization support, live debugging and designing, grammar checking, component error boundaries during dev

Note

The framework is heavy WIP with most of the features still being implemented, lookout for a beta version in the near future

Test

  • cd into vite and compiler and run yarn build
  • cd into playground and run node index.mjs

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Function 133
Interface 35
Method 12
Class 4

Languages

TypeScript100%

Modules by API surface

packages/vite/src/node/swr-cache.ts11 symbols
packages/vite/types/types.ts9 symbols
packages/vite/types/config.d.ts9 symbols
packages/vite/src/node/utils.ts8 symbols
packages/vite/src/node/router/radix.ts8 symbols
packages/vite/src/node/render/page.ts8 symbols
packages/vite/src/node/plugins/isomorphic/svg-resolver.ts7 symbols
packages/vite/src/node/plugins/dev/markdown-dev.ts7 symbols
packages/compiler/lib/utils.ts7 symbols
packages/compiler/lib/plugins/code.ts6 symbols
packages/vite/src/node/render/render-utils.ts5 symbols
packages/vite/src/node/plugin.ts5 symbols

For agents

$ claude mcp add tinypages \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page