pickstack

Astro content site starter

Astro, Tailwind, SEO, AI visibility with llms.txt. A tested combination you can create in one command and keep extending.

$ npm create pickstack@latest my-app -- --framework astro --modules tailwind,seo,aio,eslint,prettier --yes
Customize in the configurator

Packages

PackageVersionType
@astrojs/sitemap^3.7.6runtime
@eslint/js^10.0.1dev
@tailwindcss/vite^4.3.5dev
eslint^10.15.0dev
eslint-config-prettier^10.1.8dev
eslint-plugin-astro^3.2.1dev
globals^17.14.0dev
prettier^3.10.1dev
prettier-plugin-astro^1.1.2dev
tailwindcss^4.3.5dev
typescript-eslint^8.74.0dev

New files

.prettierignore
dist
.astro
pnpm-lock.yaml
package-lock.json
yarn.lock
bun.lock
.prettierrc
{
  "plugins": ["prettier-plugin-astro"],
  "overrides": [
    {
      "files": "*.astro",
      "options": {
        "parser": "astro"
      }
    }
  ]
}
eslint.config.js
import js from "@eslint/js";
import { defineConfig, globalIgnores } from "eslint/config";
import eslintConfigPrettier from "eslint-config-prettier/flat";
import eslintPluginAstro from "eslint-plugin-astro";
import globals from "globals";
import tseslint from "typescript-eslint";

export default defineConfig([
  globalIgnores(["dist", ".astro"]),
  js.configs.recommended,
  tseslint.configs.recommended,
  eslintPluginAstro.configs.recommended,
  {
    languageOptions: {
      globals: { ...globals.browser, ...globals.node },
    },
  },
  eslintConfigPrettier,
]);
src/pages/llms.txt.ts
import type { APIRoute } from "astro";

export const GET: APIRoute = ({ site }) => {
  const siteUrl = (site?.href ?? "/").replace(/\/$/, "");
  return new Response(`# my-app

> my-app: a web app.

## Pages

- [Home](${siteUrl}/)
- [About](${siteUrl}/about)

## Optional

- [Sitemap](${siteUrl}/sitemap.xml)
`);
};
src/pages/robots.txt.ts
import type { APIRoute } from "astro";

export const GET: APIRoute = ({ site }) => {
  const siteUrl = (site?.href ?? "/").replace(/\/$/, "");
  return new Response(`User-agent: *
Content-Signal: search=yes, ai-input=yes, ai-train=no
Allow: /

User-agent: GPTBot
User-agent: ClaudeBot
User-agent: Google-Extended
User-agent: Applebot-Extended
User-agent: meta-externalagent
User-agent: CCBot
User-agent: Bytespider
Disallow: /

Sitemap: ${siteUrl}/sitemap-index.xml
`);
};

Changes to existing files

astro.config.mjs (changed)
 // @ts-check+import sitemap from "@astrojs/sitemap";+import tailwindcss from "@tailwindcss/vite"; import { defineConfig } from "astro/config";   // https://astro.build/config+export default defineConfig({+  site: process.env.SITE_URL ?? "https://example.com",+  integrations: [sitemap()],+  vite: {+    plugins: [tailwindcss()],+  },+});−export default defineConfig({});  
src/components/Counter.astro (changed)
 <counter-card>+  <div class="rounded-2xl bg-white p-8 text-center shadow-sm ring-1 ring-slate-200">+    <p class="text-5xl font-bold tabular-nums" data-count>−  <div class="card">−    <p class="count" data-count>       0     </p>+    <div class="mt-6 flex justify-center gap-3">+      <button+        type="button"+        class="rounded-lg bg-slate-900 px-4 py-2 text-white hover:bg-slate-700"+        data-step="-1"+      >−    <div class="row">−      <button type="button" class="btn" data-step="-1">         -1       </button>+      <button+        type="button"+        class="rounded-lg bg-slate-900 px-4 py-2 text-white hover:bg-slate-700"+        data-step="1"+      >−      <button type="button" class="btn" data-step="1">         +1       </button>     </div>⋯ 20 unchanged lines
src/layouts/Layout.astro (changed)
⋯ 5 unchanged lines }   const { title } = Astro.props;+const canonical = new URL(Astro.url.pathname, Astro.site);+const jsonLd = JSON.stringify({+  "@context": "https://schema.org",+  "@type": "WebSite",+  name: "my-app",+  url: Astro.site?.href,+}); ---   <html lang="en">⋯ 2 unchanged lines     <meta name="viewport" content="width=device-width" />     <meta name="generator" content={Astro.generator} />     <title>{title}</title>+    <meta name="description" content="my-app: a web app." />+    <link rel="canonical" href={canonical} />+    <link rel="sitemap" href="/sitemap-index.xml" />+    <meta property="og:type" content="website" />+    <meta property="og:title" content={title} />+    <meta property="og:url" content={canonical} />+    <meta name="twitter:card" content="summary" />+    <script type="application/ld+json" set:html={jsonLd} />   </head>   <body>+    <main class="flex min-h-screen flex-col items-center justify-center gap-8 bg-slate-50 p-8 text-slate-900">+      <nav class="flex gap-4 text-sm font-medium">+        <a class="text-slate-600 hover:text-slate-900" href="/">−    <main class="app">−      <nav class="nav">−        <a class="link" href="/">           Home         </a>+        <a class="text-slate-600 hover:text-slate-900" href="/about">−        <a class="link" href="/about">           About         </a>       </nav>⋯ 5 unchanged lines
src/pages/about.astro (changed)
⋯ 2 unchanged lines ---   <Layout title="About">+  <section class="flex flex-col items-center gap-6">+    <h1 class="text-3xl font-bold tracking-tight">About</h1>+    <p class="max-w-md text-center text-slate-600">+      Built with Astro, TypeScript, Tailwind CSS, ESLint, Prettier, SEO,+      llms.txt.+    </p>−  <section class="page">−    <h1 class="title">About</h1>−    <p class="text">Built with Astro, TypeScript.</p>   </section> </Layout>  
src/pages/index.astro (changed)
⋯ 3 unchanged lines ---   <Layout title="Home">+  <section class="flex flex-col items-center gap-6">+    <h1 class="text-3xl font-bold tracking-tight">my-app</h1>−  <section class="page">−    <h1 class="title">my-app</h1>     <Counter />   </section> </Layout>⋯ 1 unchanged lines
src/styles/global.css (changed)
+@import "tailwindcss";−:root {−  font-family: system-ui, sans-serif;−  color: #0f172a;−  background: #f8fafc;−}  −body {−  margin: 0;−}− −.app {−  min-height: 100vh;−  display: flex;−  flex-direction: column;−  align-items: center;−  justify-content: center;−  gap: 2rem;−  padding: 2rem;−  box-sizing: border-box;−}− −.title {−  font-size: 1.875rem;−  margin: 0;−}− −.nav {−  display: flex;−  gap: 1rem;−}− −.link {−  color: #475569;−  text-decoration: none;−  font-weight: 500;−}− −.link:hover {−  color: #0f172a;−}− −.page {−  display: flex;−  flex-direction: column;−  align-items: center;−  gap: 1.5rem;−}− −.text {−  max-width: 28rem;−  text-align: center;−  color: #475569;−}− −.card {−  background: #fff;−  padding: 2rem;−  border-radius: 1rem;−  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);−  text-align: center;−}− −.count {−  font-size: 3rem;−  font-weight: 700;−  margin: 0;−  font-variant-numeric: tabular-nums;−}− −.row {−  margin-top: 1.5rem;−  display: flex;−  justify-content: center;−  gap: 0.75rem;−}− −.btn {−  background: #0f172a;−  color: #fff;−  border: 0;−  border-radius: 0.5rem;−  padding: 0.5rem 1rem;−  font: inherit;−  cursor: pointer;−}− −.btn:hover {−  background: #334155;−}− 

Project files

Related templates