MCPcopy Index your code
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 3 documented · 2%
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

DefaultModulesConfig (Interface)
* Config for the inbuild stuff the framework offers.
packages/vite/types/config.d.ts
Blog (Interface)
(no doc)
example/pages/index.ts
Options (Interface)
(no doc)
packages/utils/lib/cache.ts
IHighlighterPaths (Interface)
(no doc)
packages/compiler/types/options.d.ts
Blog (Interface)
(no doc)
packages/playground/pages/index.ts
IconsModuleConfig (Interface)
(no doc)
packages/vite/types/config.d.ts
IconsConfig (Interface)
(no doc)
packages/compiler/types/options.d.ts
ImageModuleConfig (Interface)
(no doc)
packages/vite/types/config.d.ts

Core symbols most depended-on inside this repo

set
called by 32
packages/vite/src/node/swr-cache.ts
get
called by 29
packages/vite/src/node/swr-cache.ts
has
called by 28
packages/vite/src/node/swr-cache.ts
useContext
called by 14
packages/vite/src/node/context.ts
createElement
called by 12
packages/vite/src/node/utils.ts
useVite
called by 5
packages/vite/src/node/context.ts
save
called by 5
packages/vite/src/node/swr-cache.ts
compile
called by 4
packages/compiler/lib/index.ts

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