A lightweight static site generator that uses plain JavaScript template literals. No framework lock-in, just simple and flexible page generation.
npm install @plushveil/pages
Create a file named index.page:
<!DOCTYPE html> <html lang="${lang}"> <head> <meta charset="UTF-8"> <title>${title}</title> <link rel="canonical" href="/" /> </head> <body> <h1>${title}</h1> <p>Welcome to my site!</p> </body> </html> <script target="html"> export const lang = 'en' export const title = 'My Website' </script>
Development Server:
npx pages serve pages/
Build for Production:
npx pages build pages/
Use template literals you already know. No new syntax to learn.
Hot reload built-in. See changes instantly as you develop.
Deploy directly from GitHub with our official action.
Built-in support for Tailwind with automatic purging.
Automatic minification, compression, and optimization.
Syntax highlighting and IntelliSense for .page files.
Write your scripts with full TypeScript support.
Build complete websites with multiple pages and routes.
Reuse HTML snippets and components across pages.
Build fast, searchable documentation with minimal overhead.
Create beautiful landing pages without framework bloat.
Personal sites and blogs with simple, maintainable code.
Add this to .github/workflows/pages.ymlto automatically build and deploy your site:
name: Build and Deploy Pages on: push: branches: [main] jobs: build-and-deploy: runs-on: ubuntu-latest permissions: contents: read pages: write id-token: write steps: - uses: actions/checkout@v4 - id: build name: Build pages uses: plushveil/pages@latest with: folder: pages config: pages.config.mjs - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: path: ${{steps.build.outputs.folder}} - name: Deploy to GitHub Pages uses: actions/deploy-pages@v4
💡 Tip:The build step outputs the build folder path via ${{steps.build.outputs.folder}}. Use this in subsequent steps for custom deployment workflows.
View source code, report issues, and contribute.
github.com/plushveil/pages →
View package details, versions, and installation instructions.
npmjs.com/package/@plushveil/pages →
Get syntax highlighting, formatting, and dev server integration.
Install from VS Code Marketplace →
Automate your builds and deployments with CI/CD.
View on GitHub Marketplace →