Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A free Astro template for showcasing and selling digital products, with Sanity Studio and Polar checkout integration.
Sanity Astro Club is a free Astro template for showcasing and selling digital products, pairing a frontend built with Astro with an extendable Sanity Studio and a Polar API integration for generating checkout sessions.
Sanity Astro Club is an open-source template that lets you display artworks or other digital products on a static Astro site while managing that content through Sanity Studio. It was originally a proof of concept by Codrops and Alex Tkachev, then extended by Soufiane with Sanity and Polar support. The repository uses a pnpm workspace with two folders: frontend for the Astro application and studio for Sanity Studio. The frontend builds to a static ./dist folder and can be deployed to any hosting provider, while the studio can be deployed to Sanity Cloud. The design is based on Alex Tkachev’s ‘Players Club’ Dribbble shot.
pnpm run dev to start it at localhost:4321.pnpm --filter=studio run deploy.package.json defines workspaces for frontend and studio, so pnpm install installs both projects at once.env.example files listing the relevant secrets that need to be filled.pnpm install.checkout_links, checkouts, and products.pnpm run dev — Astro on localhost:4321 and Sanity on localhost:3333.Yes, the template is released under the MIT license, so it is free to use and modify. You still need your own Sanity and Polar accounts; both require separate sign-ups.
It includes Astro for the static site, Sanity Studio for content management, and Polar for generating checkout sessions. A webhook can be configured to trigger rebuilds when content changes.
First log in to your Sanity account with npx sanity login, then run pnpm --filter=studio run deploy to deploy the studio to Sanity Cloud.
