Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

Grain

Free#30 of 35 in Static Site Generators

Grain: A flexible open-source choice for Groovy or Java static sites. Ranked #30 of 35 in Static Site Generators by our editors (6.3/10); pricing: Free plan; best for groovy or Java static sites.

6.3/10Editor score
Grain6.3 Visit Grain

At a glance

  • Editor score
    6.3 / 10
  • Pricing
    Free plan
  • Best for
    Groovy or Java static sites
  • Free plan
    Yes
  • Paid from
    Free
  • Content sources
    Markdown
  • Facts checked
    22 Sep 2026
Grain screenshot
  • Where it wins

    • Supports Markdown, reStructuredText, and AsciiDoc
    • Includes live reload, layouts, includes, and template nesting
    • Provides URL mapping, minification, syntax highlighting, and Sass support
  • Where it doesn't

    • Requires a JDK and Gradle-based themes
    • Deployment uses configured shell commands
    • Lacks incremental builds, multilingual support, and broader CMS features

Our verdict on Grain

Grain is an open-source static website generator and framework written in Groovy. It generates static websites from content and theme files for personal blogs, company websites, and documentation sites. Its supported platforms are Windows, Linux, and macOS, while its supported languages are Groovy and Java. Grain is suited to solo developers and small or mid-market teams that want self-hosted static sites with customizable themes.

The strongest part of Grain is its markup and templating flexibility. Content can be processed as Markdown, reStructuredText, or AsciiDoc, while templates support embedded Groovy code, layouts, includes, and nesting. A local preview server with live reload supports iterative authoring. URL and resource mapping, source compression, minification, Python Pygments syntax highlighting, and Sass or SCSS support extend the publishing workflow beyond basic page generation. These capabilities make Grain a practical fit for projects that need custom theme behavior and varied documentation or content formats.

The main trade-off is the project setup and its narrower ecosystem. Projects require a JDK to run and use Gradle-based themes, which adds development tooling requirements before content work begins. Deployment is handled through configured shell commands, and Grain is self-hosted rather than presented as a managed publishing service. It also does not provide incremental builds, multilingual support, or broader content-management features. Choose Grain when Groovy or Java integration, flexible markup processing, and theme control matter most; consider an alternative when a wider integration ecosystem, multilingual publishing, incremental builds, or more extensive CMS capabilities are central requirements.

Your product? Our editors can test Grain in depth and publish a review, labelled as paid · from $149/mo →

Grain pricing

Plans Free planFree Free to use — no paid tier required for the core job.
See plans on github.com

Grain fact sheet

Free planYes
Paid fromFree
Content sourcesMarkdown
CMS integrationNot verified
Incremental buildsNot verified
Multilingual supportNot verified
Local preview serverYes
Supported languagesGroovy, Java
DeploymentSelf-hosted
PlatformsWindows, Linux, macOS
SupportEmail, Community, Docs
Built forSolo, Small business, Mid-market (editorial estimate)
PricingFree plan
Websitegithub.com
Facts checked22 Sep 2026

Alternatives to Grain

See all Grain alternatives →

Used Grain? Be the first to review it

The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Grain for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.

Write a reviewTwo minutes · verified accounts only · read by an editor before it appears

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — Grain 6.3/10

Grain is listed in our Static Site Generators directory. Add the badge to your site — it links back to this page.

<a href="https://www.itechguides.com/products/grain-static-site-generator/"><img src="https://www.itechguides.com/best/badge/grain-static-site-generator.svg" alt="Featured on iTechGuides" width="230" height="46"></a>

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update