From b19ec88ed38ce90e80770a37f54ec2428a3a856b Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 27 Jul 2026 13:07:48 +0000 Subject: [PATCH] content: add SEO guide "Next.js data grid pivot table" Add marketing guide for the keyword "Next.js data grid pivot table" at slug nextjs-datagrid-pivot-table. Covers App Router and Pages Router integration, free-tier feature set, bundle size, and Pro upgrade path. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01KgsDMtMbN5FL9NFQz1t22a --- demo/pages/MarketingGuide.vue | 56 ++++++++++++++++++++++++++++ demo/router/routes.ts | 5 +++ demo/sitemap.xml | 6 +++ docs/distribution/keyword-backlog.md | 2 +- 4 files changed, 68 insertions(+), 1 deletion(-) diff --git a/demo/pages/MarketingGuide.vue b/demo/pages/MarketingGuide.vue index 00b37bd..1c32591 100644 --- a/demo/pages/MarketingGuide.vue +++ b/demo/pages/MarketingGuide.vue @@ -347,6 +347,62 @@ const guides: Record = { }, ], }, + 'nextjs-datagrid-pivot-table': { + title: 'Next.js Data Grid with Pivot Table', + eyebrow: 'Next.js Feature Guide', + description: 'Add a data grid and pivot table to a Next.js app with TinyPivot React. Free tier includes sorting, filtering, CSV export, and Sum aggregation — no subscription.', + intro: 'TinyPivot for React works in Next.js projects with both the Pages Router and the App Router. The free tier gives your Next.js application a complete data grid with filtering, sorting, CSV export, and a pivot table — no account or subscription required.', + sections: [ + { + title: 'Using TinyPivot with the Next.js App Router', + paragraphs: [ + 'TinyPivot renders client-side. In a Next.js App Router project, add the "use client" directive to any component that imports from @smallwebco/tinypivot-react. The component itself has no server-side rendering requirement, so this is typically a one-line change to the file that wraps the grid.', + 'Because TinyPivot handles all data operations in the browser, there is no additional Next.js configuration needed for route handlers or server components.', + ], + bullets: [ + 'Add "use client" to the file that imports DataGrid', + 'Pass an array of plain objects to the data prop', + 'Column definitions are derived from your object keys automatically', + 'No getServerSideProps or server component changes required', + ], + }, + { + title: 'Pages Router integration', + paragraphs: [ + 'In a Pages Router project, import TinyPivot inside the page component or a child component directly. Because the grid runs client-side, you can fetch data with getStaticProps, getServerSideProps, or a client-side hook and pass the result to the DataGrid prop.', + 'If you use dynamic imports with next/dynamic, set ssr: false to skip server-side rendering of the grid component entirely. Either approach works — the key constraint is that TinyPivot needs a browser environment.', + ], + }, + { + title: 'What the free tier includes', + paragraphs: [ + 'The free tier of TinyPivot for React is a complete data grid and pivot workflow, not a restricted trial. Install @smallwebco/tinypivot-react, import the DataGrid component and its stylesheet, then pass your data array.', + 'Free features include sorting, filtering, full-text search, pagination, column resize, CSV export, calculated fields, Sum aggregation with row and column totals, and 22 built-in themes. A small watermark is shown in the free tier.', + ], + bullets: [ + 'Sort, filter, search, and paginate any array of records', + 'Pivot table with Sum aggregation, row and column totals — free', + 'Calculated fields for derived metrics like margin or growth rate', + 'CSV export and column resize built in', + '22 themes including dark variants — no custom CSS needed', + ], + }, + { + title: 'Bundle size in a Next.js project', + paragraphs: [ + 'The @smallwebco/tinypivot-react package is approximately 40 KB gzipped. It has no mandatory runtime dependencies beyond React itself, so the addition to your Next.js bundle is straightforward to reason about.', + 'TinyPivot does not add server-side weight. All rendering is client-side, and the component is tree-shaken like any other React library in a Next.js build.', + ], + }, + { + title: 'Upgrade to Pro for advanced analytics', + paragraphs: [ + 'TinyPivot Pro adds the full aggregation set (Count, Count Distinct, Average, Min, Max, Median, Standard Deviation), a drag-and-drop chart builder, pivot drill-through to underlying rows, styled XLSX export, session persistence, and watermark removal.', + 'Pro also includes an optional BYOK AI Data Analyst. You configure the provider — OpenAI, Anthropic, or OpenRouter — and queries run through your own API key, keeping data in your environment. Pro is a one-time perpetual purchase: Single ($49), Unlimited ($149), or Team ($399). One license covers both @smallwebco/tinypivot-react and @smallwebco/tinypivot-vue.', + ], + }, + ], + }, 'react-datagrid-csv-export': { title: 'React Data Grid with CSV Export', eyebrow: 'React Feature Guide', diff --git a/demo/router/routes.ts b/demo/router/routes.ts index f396a1e..cb8dbf6 100644 --- a/demo/router/routes.ts +++ b/demo/router/routes.ts @@ -63,6 +63,11 @@ export const marketingGuides = [ title: 'React Data Grid with Calculated Fields | TinyPivot', description: 'Add calculated fields to a React data grid for free with TinyPivot. Define derived metrics like margin or growth rate — no backend changes required.', }, + { + slug: 'nextjs-datagrid-pivot-table', + title: 'Next.js Data Grid with Pivot Table | TinyPivot', + description: 'Add a data grid and pivot table to a Next.js app with TinyPivot React. Free tier includes sorting, filtering, CSV export, and Sum aggregation — no subscription.', + }, ] as const export type MarketingGuideSlug = typeof marketingGuides[number]['slug'] diff --git a/demo/sitemap.xml b/demo/sitemap.xml index 9dbc0cb..5db9fa8 100644 --- a/demo/sitemap.xml +++ b/demo/sitemap.xml @@ -84,4 +84,10 @@ monthly 0.8 + + https://tiny-pivot.com/nextjs-datagrid-pivot-table + 2026-07-27 + monthly + 0.8 + diff --git a/docs/distribution/keyword-backlog.md b/docs/distribution/keyword-backlog.md index eca917c..3de32ce 100644 --- a/docs/distribution/keyword-backlog.md +++ b/docs/distribution/keyword-backlog.md @@ -36,7 +36,7 @@ All keywords below are `queued` and ready for content generation. | Vue data grid filter sort search | feature | vue-datagrid-filter-sort-search | drafted | | React data grid calculated fields | feature | react-datagrid-calculated-fields | drafted | | Vue 3 data grid column resize | feature | vue-datagrid-column-resize | queued | -| Next.js data grid pivot table | feature | nextjs-datagrid-pivot-table | queued | +| Next.js data grid pivot table | feature | nextjs-datagrid-pivot-table | drafted | | Nuxt 3 data grid pivot table | feature | nuxt-datagrid-pivot-table | queued | | React pivot table with charts | feature | react-pivot-table-charts | queued | | Vue pivot table with charts | feature | vue-pivot-table-charts | queued |