{"id":51136179,"url":"https://github.com/contember/pletivo","last_synced_at":"2026-06-25T18:01:47.946Z","repository":{"id":350500074,"uuid":"1207089850","full_name":"contember/pletivo","owner":"contember","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-17T14:56:51.000Z","size":723,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-17T16:58:21.343Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/contember.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-10T15:05:41.000Z","updated_at":"2026-06-12T15:57:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/contember/pletivo","commit_stats":null,"previous_names":["contember/pletivo"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/contember/pletivo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fpletivo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fpletivo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fpletivo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fpletivo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/contember","download_url":"https://codeload.github.com/contember/pletivo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/contember%2Fpletivo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34786238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-25T18:01:47.009Z","updated_at":"2026-06-25T18:01:47.929Z","avatar_url":"https://github.com/contember.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pletivo\n\nBun-powered static site generator that runs Astro projects ~2x faster.\n\nDrop-in compatible with `.astro` pages, content collections, scoped CSS, Tailwind v4, and the Astro integration ecosystem. Also supports native JSX/TSX pages with Preact islands.\n\n[![CI](https://github.com/contember/pletivo/actions/workflows/ci.yml/badge.svg)](https://github.com/contember/pletivo/actions/workflows/ci.yml)\n\n## Quick start\n\n```bash\n# In an existing Astro project\nbunx pletivo build        # Static build → dist/\nbunx pletivo dev           # Dev server with HMR\n```\n\nOr add it to `package.json`:\n\n```json\n{\n  \"scripts\": {\n    \"dev\": \"pletivo dev\",\n    \"build\": \"pletivo build\"\n  },\n  \"dependencies\": {\n    \"pletivo\": \"*\",\n    \"@astrojs/compiler\": \"^3\"\n  }\n}\n```\n\n## What works\n\nPletivo compiles `.astro` files using `@astrojs/compiler` and renders them with its own Bun-native runtime. Tested against Astro's own test suite:\n\n- `.astro` pages and components (props, slots, `Astro.slots.render()`, scoped CSS, `\u003cstyle is:global\u003e`, `class:list`)\n- Content collections with Zod schemas, `getCollection()`, `getEntry()`, `reference()`\n- `getStaticPaths()` for dynamic routes\n- `.md` pages in `src/pages/`\n- `\u003cscript\u003e` and `\u003cscript is:inline\u003e` tags\n- Tailwind CSS v4 pipeline\n- Astro integrations via Vite host shim\n- Dev server with HMR (CSS hot swap + morphdom DOM patching)\n- Public asset hashing and sitemap generation\n\n## Performance\n\nBenchmarked on a real production site (113 pages, 12 content collections, MDX, Tailwind):\n\n| | Pletivo | Astro | Speedup |\n|---|---|---|---|\n| Build time | **3.5s** | 6.7s | 1.9x |\n| Output | 486 files, 13 MB | 486 files, 13 MB | identical |\n| HTML diff | — | — | 113/113 pages match |\n\n## Project structure\n\nBun workspace monorepo:\n\n```\npackages/\n  pletivo/             Core SSG engine (CLI, router, JSX runtime, islands,\n                      content collections, CSS pipeline, dev server, astro shim)\n  astro-jsx-pages/    Babel+Vite plugin enabling TSX pages inside Astro\n\nexamples/\n  basic/              Pletivo-native example (JSX pages, islands, collections)\n  basic-astro/        Pure Astro baseline (for benchmarking)\n  basic-astro-native/ Pletivo running native .astro files\n```\n\n## Configuration\n\nOptional `pletivo.config.ts`:\n\n```typescript\nimport { defineConfig } from \"pletivo\";\n\nexport default defineConfig({\n  outDir: \"dist\",\n  port: 3000,\n  base: \"/\",\n  srcDir: \"src\",\n  publicDir: \"public\",\n});\n```\n\n## Tests\n\n```bash\nbun install\nbun test tests/unit tests/integration tests/e2e   # Unit + integration + e2e\n\n# Astro compatibility suite (clones Astro repo, runs their tests against pletivo)\ncd tests/astro-e2e\nbun run setup.ts\nnpm run test:integration    # node:test + cheerio (fast)\nnpm run test:e2e            # Playwright browser tests\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontember%2Fpletivo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontember%2Fpletivo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontember%2Fpletivo/lists"}