{"id":13426555,"url":"https://github.com/xcatliu/pagic","last_synced_at":"2025-05-15T07:04:10.557Z","repository":{"id":18149156,"uuid":"83543333","full_name":"xcatliu/pagic","owner":"xcatliu","description":"A static site generator powered by Deno + React","archived":false,"fork":false,"pushed_at":"2023-09-19T01:16:18.000Z","size":6793,"stargazers_count":1656,"open_issues_count":11,"forks_count":104,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-05-09T22:25:46.502Z","etag":null,"topics":["deno","markdown","pagic","static-site-generator"],"latest_commit_sha":null,"homepage":"https://pagic.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xcatliu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":["xcatliu"],"patreon":"xcatliu","open_collective":"pagic","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://github.com/xcatliu/buy-me-a-coffee"]}},"created_at":"2017-03-01T10:40:20.000Z","updated_at":"2025-04-24T06:54:14.000Z","dependencies_parsed_at":"2023-09-23T14:37:53.842Z","dependency_job_id":null,"html_url":"https://github.com/xcatliu/pagic","commit_stats":{"total_commits":357,"total_committers":19,"mean_commits":"18.789473684210527","dds":0.07563025210084029,"last_synced_commit":"d884af6285b120d292e9d315cd2929d8de0ca48c"},"previous_names":[],"tags_count":88,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Fpagic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Fpagic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Fpagic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xcatliu%2Fpagic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xcatliu","download_url":"https://codeload.github.com/xcatliu/pagic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101555,"owners_count":22014917,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["deno","markdown","pagic","static-site-generator"],"created_at":"2024-07-31T00:01:37.776Z","updated_at":"2025-05-15T07:04:10.535Z","avatar_url":"https://github.com/xcatliu.png","language":"JavaScript","funding_links":["https://github.com/sponsors/xcatliu","https://patreon.com/xcatliu","https://opencollective.com/pagic","https://github.com/xcatliu/buy-me-a-coffee"],"categories":["JavaScript","基础设施","Tools","static-site-generator","Modules"],"sub_categories":["JAM Stack/静态站点","Online Playgrounds","Assistants","Static site generator"],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003ca href=\"https://pagic.org\"\u003e\n    \u003cimg alt=\"P\" src=\"./pagic.org/assets/pagic_logo.png\" width=\"64\" align=\"center\" /\u003eagic\n  \u003c/a\u003e\n\u003c/h1\u003e\n\n\u003ch3 align=\"center\"\u003e\n  A static site generator powered by Deno + React\n\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://pagic.org/zh-CN/\"\u003e简体中文\u003c/a\u003e | \u003ca href=\"https://pagic.org\"\u003eWebsite\u003c/a\u003e | \u003ca href=\"https://pagic.org/docs/introduction.html\"\u003eDocs\u003c/a\u003e | \u003ca href=\"https://pagic.org/docs/config.html\"\u003eConfig\u003c/a\u003e | \u003ca href=\"#demos\"\u003eDemos\u003c/a\u003e | \u003ca href=\"https://pagic.org/themes/\"\u003eThemes\u003c/a\u003e | \u003ca href=\"https://pagic.org/plugins/\"\u003ePlugins\u003c/a\u003e | \u003ca href=\"https://pagic.org/blog/\"\u003eBlog\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://deno.land\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Deno-1.34.1-brightgreen.svg?logo=deno\" alt=\"deno\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://pagic.org\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Pagic-v1.6.3-orange.svg\" alt=\"pagic\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.gg/vn3VvdUycW\"\u003e\n    \u003cimg src=\"https://img.shields.io/discord/785366263823335424\" alt=\"discord\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/xcatliu/pagic/actions\"\u003e\n    \u003cimg src=\"https://github.com/xcatliu/pagic/workflows/ci/badge.svg\" alt=\"ci\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n### Easy to configure\n\n- Convention over configuration\n- Single config file `pagic.config.ts`\n- Intuitive design\n\n### Support md and tsx\n\n- Render `md/tsx` to static HTML page\n- Support React Hooks\n- Pre-render to static HTML, run as an SPA once loaded\n\n### Themes and plugins\n\n- Official themes default/docs/blog with dark mode\n- Combine plugins to build process\n- Import third-party themes or plugins through URL\n\n## Demos\n\n- Templates: [docs](https://github.com/xcatliu/pagic_template_docs)\n- [TypeScript 入门教程](https://ts.xcatliu.com/) ([GitHub](https://github.com/xcatliu/typescript-tutorial))\n- [流浪小猫的博客](https://blog.xcatliu.com/) ([GitHub](https://github.com/xcatliu/blog))\n- [Deno X ranking](https://yoshixmk.github.io/deno-x-ranking/) ([GitHub](https://github.com/yoshixmk/deno-x-ranking))\n- [Deno 钻研之术](https://deno-tutorial.js.org/) ([GitHub](https://github.com/hylerrix/deno-tutorial))\n- [Deno 中文手册](https://manual.deno.js.cn/) ([GitHub](https://github.com/denocn/deno_manual))\n- [JavaScript 20 年](https://cn.history.js.org/) ([GitHub](https://github.com/doodlewind/jshistory-cn))\n- [ECMAScript+ 面试宝典](https://es-interview.js.org/) ([GitHub](https://github.com/hylerrix/es-interview))\n- [Blitz.js + React 全栈开发手册](https://blitzjs-tutorial.js.org/) ([GitHub](https://github.com/hylerrix/blitzjs-tutorial))\n- [自然醒的博客](https://blog.shenfq.com/)（[GitHub](https://github.com/Shenfq/blog)）\n- [Viktor's Docs](https://docs.itdongdong.com/)（[GitHub](https://github.com/ViktorWong/my-docs)）\n- [0xzhang 的博客](https://blog.0xzhang.com/)（[GitHub](https://github.com/0xzhang)）\n- [Add my site as a demo](https://github.com/xcatliu/pagic/issues/new?assignees=xcatliu\u0026labels=demo\u0026template=add-a-demo.md\u0026title=Add+my+site+as+a+demo+https%3A%2F%2Fexample.com) 😝\n\n## Get started\n\n### Installation\n\n```bash\n# Install deno https://deno.land/#installation\ncurl -fsSL https://deno.land/x/install/install.sh | sh\n# Install Pagic\ndeno install --unstable --allow-read --allow-write --allow-net --allow-env --allow-run --name=pagic https://deno.land/x/pagic/mod.ts\n```\n\n### Initialize the project\n\nTo use `pagic` to build a static website, the project must include at least one `pagic.config.ts` config file and one `md/tsx` page file:\n\n```\nsite/\n├── pagic.config.ts\n└── README.md\n```\n\nYou can create the above `site` project by running the following command:\n\n```bash\nmkdir site \u0026\u0026 cd site \u0026\u0026 echo \"export default {};\" \u003e pagic.config.ts \u0026\u0026 echo \"# Hello world\" \u003e README.md\n```\n\n### Run `pagic`\n\n```bash\npagic build --watch --serve\n```\n\n## More information\n\n- Visit the [official website](https://pagic.org)\n- Read the [documentation](https://pagic.org/docs/introduction.html)\n- [Configure](https://pagic.org/docs/config.html) your site\n- Checkout the [theme list](https://pagic.org/themes/) and the [plugin list](https://pagic.org/plugins/)\n- Read the [blog](https://pagic.org/blog/) of Pagic\n- Join our [discord channel](https://discord.com/channels/785366263823335424)\n\n## Special thanks\n\n- [StrawBerry Icon](http://chuangzaoshi.com/icon/): A free and open iconic font library for developer and creator\n\n## Backers\n\n[![Backers](https://opencollective.com/pagic/tiers/backers.svg?avatarHeight=114\u0026width=838)](https://opencollective.com/pagic)\n\n## Contributors\n\n[![Contributors](https://opencollective.com/pagic/contributors.svg?avatarHeight=44\u0026width=838\u0026button=false)](https://github.com/xcatliu/pagic/graphs/contributors)\n\n## LICENSE\n\n[MIT](./LICENSE)\n\n---\n\nHave fun with Pagic!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcatliu%2Fpagic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxcatliu%2Fpagic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxcatliu%2Fpagic/lists"}