Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(pricing): prepare launch discount and pricing plans (#36)

Corentin Thomasset7553fef5d54d
diff --git a/.gitignore b/.gitignore
index 016b59ea..a8520d32 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,3 +22,4 @@ pnpm-debug.log*
# jetbrains setting folder
.idea/
+.eslintcache
\ No newline at end of file
diff --git a/src/app.config.ts b/src/app.config.ts
index 14a7c490..b4154a90 100644
--- a/src/app.config.ts
+++ b/src/app.config.ts
@@ -1,8 +1,20 @@
+const isLaunched = false;
+
+export const requestEarlyAccessLink = 'https://tally.so/r/npz6BE';
+const getStartedLink = 'https://dashboard.papra.app';
+
export const config = {
site: {
name: 'Papra',
},
+ isLaunched,
discordInvite: 'https://discord.gg/8UPjzsrBNF',
- requestEarlyAccessLink: 'https://tally.so/r/npz6BE',
sponsorLink: 'https://github.com/sponsors/CorentinTh',
+ getStartedLink: isLaunched ? getStartedLink : requestEarlyAccessLink,
+ launchDiscount: {
+ enabled: isLaunched,
+ percentage: 50,
+ // 31 december 2025 Paris time
+ endsAt: new Date('2025-12-31T23:59:59+01:00'),
+ },
} as const;
diff --git a/src/components/FaqAccordion.astro b/src/components/FaqAccordion.astro
index 5166d8bb..8e2774f7 100644
--- a/src/components/FaqAccordion.astro
+++ b/src/components/FaqAccordion.astro
@@ -1,43 +1,22 @@
---
-const title = 'Frequently Asked Questions';
-const description = 'Everything you need to know about Papra';
-const items = [
- {
- question: 'What is Papra?',
- answer: 'Papra is an open-source document management platform designed to help you organize, secure, and archive your files effortlessly. It provides a centralized solution for managing all your documents in one place.',
- },
- {
- question: 'Is Papra really open-source?',
- answer: 'Yes! Papra is completely open-source and available under the AGPL-3.0 license. You can view the source code on GitHub and even self-host it if you prefer.',
- },
- {
- question: 'How does document organization work?',
- answer: 'Papra uses a combination of organizations, tags, and powerful search functionality to help you organize your documents. You can create organizations for teams or companies, add tags for categorization, and find documents quickly with our search feature.',
- },
- {
- question: 'Can I self-host Papra?',
- answer: 'Absolutely! Since Papra is open-source, you can self-host it on your own infrastructure. This gives you complete control over your data and allows you to customize the platform to your specific needs.',
- },
- {
- question: 'What file types does Papra support?',
- answer: 'Papra supports a wide range of document types including PDFs, text files, code files, invoices, spreadsheets, and many more. The platform is designed to handle various file formats commonly used in business and personal document management.',
- },
- {
- question: 'Are my documents secure?',
- answer: 'Yes! Papra uses industry-standard in-transit and at-rest encryption to protect your documents.',
- },
- {
- question: 'Are my data stored in Europe?',
- answer: 'Yes! Papra is hosted in Europe and all data is stored in Europe.',
- },
- {
- question: 'How can I get started with Papra?',
- answer: 'Getting started with Papra is easy! Simply sign up for a free account, upload your documents, and start organizing them. You can also check out our documentation for more detailed instructions on how to use the platform.',
- },
-];
+import { cn } from '../utils/cn';
+
+
+
+type Props = {
+ title: string;
+ description: string;
+ items: {
+ question: string;
+ answer: string;
+ }[];
+ class?: string;
+};
+
+const { title, description, items, class: className } = Astro.props;
---
-<div class="max-w-800px mx-auto px-6 py-42">
+<div class={cn(`max-w-800px mx-auto px-6 py-42`, className)}>
<h2 class="text-3xl font-semibold text-pretty mb-4 text-center">{title}</h2>
<p class="text-muted-foreground text-lg text-center mb-24">{description}</p>
diff --git a/src/components/FeaturesBento.astro b/src/components/FeaturesBento.astro
index e298a184..618cd16c 100644
--- a/src/components/FeaturesBento.astro
+++ b/src/components/FeaturesBento.astro
@@ -34,8 +34,8 @@ curl -X POST https://api.papra.ai/v1/documents \\
---
-<div class="pt-32 pb-64 bg-card p-6 relative overflow-hidden">
- <div class="z-10 bg-primary w-90% max-w-1000px h-60px rounded-full blur-64 op-15 absolute bottom--50px left-50% -translate-x-50% "></div>
+<div class="pt-32 pb-48 bg-card p-6 relative overflow-hidden">
+ <!-- <div class="z-10 bg-primary w-90% max-w-1000px h-60px rounded-full blur-64 op-15 absolute bottom--50px left-50% -translate-x-50% "></div> -->
<h2 class="text-3xl font-semibold text-pretty mb-2 text-center">
Some Features
diff --git a/src/components/Header.astro b/src/components/Header.astro
index d3387e91..723af1a9 100644
--- a/src/components/Header.astro
+++ b/src/components/Header.astro
@@ -1,5 +1,5 @@
---
-import { config } from '../app.config';
+import { config, requestEarlyAccessLink } from '../app.config';
import { cn } from '../utils/cn';
const socials = [
@@ -37,15 +37,25 @@ const navigation = [
name: 'Self-host',
url: 'https://docs.papra.app/self-hosting/using-docker/',
},
+ ...(config.isLaunched
+? [
{
- name: 'Roadmap',
- url: 'https://github.com/orgs/papra-hq/projects/2',
+ name: 'Pricing',
+ url: '/pricing',
},
+]
+: []),
];
+
+type Props = {
+ class?: string;
+};
+
+const { class: className } = Astro.props;
---
<nav
- class="z-100 border-0 border-b md:max-w-4xl pl-4 pr-3 py-4 mx-auto flex items-center justify-between md:(py-2 border-1px rounded-full mt-4) fixed top-0 left-0 right-0 bg-background bg-op-40 backdrop-blur-sm shadow-lg"
+ class={`z-100 border-0 border-b md:max-w-4xl pl-4 pr-3 py-4 mx-auto flex items-center justify-between md:(py-2 border-1px rounded-full mt-4) fixed top-0 left-0 right-0 bg-background bg-op-40 backdrop-blur-sm shadow-lg ${className}`}
>
<a href="/" class="text-lg font-bold flex items-center group">
<div class="i-tabler-file-text size-6 group-hover:rotate-25deg text-primary transition transform rotate-12deg"></div>
@@ -74,11 +84,11 @@ const navigation = [
</div>
<a
- class="flex gap-1.5 items-center bg-primary font-bold rounded py-1.5 px-3 rounded-xl text-primary-foreground text-xs transition hover:bg-primary/80"
- href={config.requestEarlyAccessLink}
+ class="flex gap-1.5 items-center bg-primary font-bold rounded py-1 px-3 rounded-xl text-primary-foreground text-sm transition hover:bg-primary/80"
+ href={config.getStartedLink}
target="_blank"
>
- Private Beta
+ {config.getStartedLink === requestEarlyAccessLink ? 'Early Access' : 'Get Started'}
<div class="i-tabler-arrow-right size-4"></div>
</a>
</div>
diff --git a/src/components/LaunchBanner.astro b/src/components/LaunchBanner.astro
new file mode 100644
index 00000000..873a172c
--- /dev/null
+++ b/src/components/LaunchBanner.astro
@@ -0,0 +1,50 @@
+---
+import { config } from '../app.config';
+---
+
+<a
+ class="launch-banner bg-primary text-primary-foreground py-3 px-6 text-center text-sm font-semibold flex items-center justify-center gap-6"
+ role="alert"
+ href={config.getStartedLink}
+ target="_blank"
+ rel="noopener"
+>
+ <span class="flex items-center">
+ <span class="i-tabler-speakerphone size-5.5 align-middle hidden sm:inline-block mr-1 flex-shrink-0"></span>
+ <span>
+ Launch Special: Get {config.launchDiscount.percentage}% off <span class="underline">lifetime</span> - Offer ends <span
+ class="end-date"
+ data-end-date={config.launchDiscount.endsAt.toISOString()}
+ >{config.launchDiscount.endsAt.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' })}</span
+ >
+ </span>
+ </span>
+</a>
+
+<script>
+ (() => {
+ // Replace the end date text with a countdown in days if the date is in the future
+ const endDateElement = document.querySelector('.end-date');
+
+ if (endDateElement) {
+ const endDate = new Date(endDateElement.getAttribute('data-end-date')!);
+ const now = new Date();
+ if (endDate < now) {
+ document.querySelector('.launch-banner')?.remove();
+ return;
+ }
+
+ const diff = endDate.getTime() - now.getTime();
+ const days = Math.ceil(diff / (1000 * 60 * 60 * 24));
+ const hours = Math.ceil(diff / (1000 * 60 * 60));
+
+ if (days > 0) {
+ endDateElement.textContent = `in ${days} day${days !== 1 ? 's' : ''}`;
+ return;
+ }
+ if (hours > 0) {
+ endDateElement.textContent = `in ${hours} hour${hours !== 1 ? 's' : ''}`;
+ }
+ }
+ })();
+</script>
diff --git a/src/components/ValuesSection.astro b/src/components/ValuesSection.astro
new file mode 100644
index 00000000..683fba19
--- /dev/null
+++ b/src/components/ValuesSection.astro
@@ -0,0 +1,59 @@
+---
+const values = [
+ {
+ icon: 'i-tabler-heart-handshake',
+ title: 'Ethical by Design',
+ description: 'No dark patterns, no manipulative tactics. We build software that respects you.',
+ },
+ {
+ icon: 'i-tabler-building-bank',
+ title: 'Bootstrapped & Independent',
+ description: 'No VC funding, no diluted financing, debt-free. We answer to our users, not investors.',
+ },
+ {
+ icon: 'i-tabler-shield-lock',
+ title: 'Your Data is Yours',
+ description: 'We never sell your data. Period. Privacy is a right, not a feature.',
+ },
+ {
+ icon: 'i-tabler-brand-open-source',
+ title: 'Fully Open Source',
+ description: 'Complete transparency. Audit our code, contribute, or self-host anytime.',
+ },
+ {
+ icon: 'i-tabler-trees',
+ title: 'Environmentally Conscious',
+ description: 'We prioritize sustainability and eco-friendliness in our operations and product design.',
+ },
+ {
+ icon: 'i-tabler-users',
+ title: 'Community-Driven',
+ description: 'Built with and for the community. Your feedback shapes our roadmap.',
+ },
+];
+---
+
+<section class="py-32 border-t bg-background relative overflow-hidden">
+ <div class="z-10 bg-primary w-80% max-w-800px h-300px rounded-full blur-96 op-10 absolute top-50% left-50% -translate-x-50% -translate-y-50%"></div>
+
+ <div class="max-w-1200px mx-auto px-6 relative z-20">
+ <div class="text-center mb-24">
+ <h2 class="text-3xl sm:text-4xl font-bold mb-4">Built on Principles, Not Profit</h2>
+ <p class="text-lg text-muted-foreground max-w-2xl mx-auto">
+ We're committed to building software the right way. <br /> No shortcuts, no compromises.
+ </p>
+ </div>
+
+ <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
+ {
+ values.map(value => (
+ <div class="border rounded-xl p-6 bg-card group">
+ <div class={`${value.icon} size-10 text-primary mb-4 group-hover:(scale-105 rotate-12) transition transform`} />
+ <h3 class="text-xl font-bold mb-1">{value.title}</h3>
+ <p class="text-muted-foreground">{value.description}</p>
+ </div>
+ ))
+ }
+ </div>
+ </div>
+</section>
diff --git a/src/layouts/MdPage.astro b/src/layouts/MdPage.astro
index bde230be..bced19e5 100644
--- a/src/layouts/MdPage.astro
+++ b/src/layouts/MdPage.astro
@@ -6,7 +6,7 @@ import Layout from './Layout.astro';
<Layout>
<div class="bg-card">
- <Header variant="block" />
+ <Header />
<div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24">
<div class="max-w-700px mx-auto p-4">
diff --git a/src/pages/contact.astro b/src/pages/contact.astro
index 31d82bfb..3138e15e 100644
--- a/src/pages/contact.astro
+++ b/src/pages/contact.astro
@@ -35,7 +35,7 @@ const contactOptions = [
<Layout>
<div class="bg-card flex flex-col w-full min-h-screen">
- <Header variant="block" />
+ <Header />
<div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24">
<div class="max-w-700px mx-auto p-4">
diff --git a/src/pages/index.astro b/src/pages/index.astro
index e5cce27c..5c611881 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -6,15 +6,21 @@ import FaqAccordion from '../components/FaqAccordion.astro';
import FeaturesBento from '../components/FeaturesBento.astro';
import Footer from '../components/Footer.astro';
import Header from '../components/Header.astro';
+import LaunchBanner from '../components/LaunchBanner.astro';
+import ValuesSection from '../components/ValuesSection.astro';
import Layout from '../layouts/Layout.astro';
+
+const discount = config.launchDiscount;
---
<Layout>
+ {discount.enabled && <LaunchBanner />}
+
<div class="relative overflow-hidden pb-300px bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px]">
<div class="z-9 bg-gradient-to-b from-background to-transparent w-full h-full absolute top-0 left-0"></div>
<div class="z-10 bg-primary w-80% max-w-1000px h-400px rounded-xl blur-64 op-20 absolute bottom--100px left-50% -translate-x-50%"></div>
- <Header />
+ <Header class={discount.enabled ? 'absolute! top-0' : undefined} />
<div class="max-w-2xl mx-auto pt-20 pb-32 px-4 mt-24 text-center z-50 relative">
<h1 class="text-4xl font-bold mb-4 text-pretty">Your Open-Source Solution to Document Chaos</h1>
@@ -23,8 +29,8 @@ import Layout from '../layouts/Layout.astro';
<div class="flex items-center justify-center gap-2 mt-8">
<a href="https://demo.papra.app" class="border text-sm font-bold rounded py-2 px-4 rounded-xl hover:border-primary hover:text-primary transition" target="_blank"> Live Demo </a>
- <a href={config.requestEarlyAccessLink} class="text-sm flex items-center gap-1.5 bg-primary hover:bg-primary/80 font-bold rounded py-2 px-4 rounded-xl text-primary-foreground transition">
- Join the private beta
+ <a href={config.getStartedLink} class="text-sm flex items-center gap-1.5 bg-primary hover:bg-primary/80 font-bold rounded py-2 px-4 rounded-xl text-primary-foreground transition">
+ Get started
<div class="i-tabler-arrow-right size-5"></div>
</a>
</div>
@@ -37,6 +43,8 @@ import Layout from '../layouts/Layout.astro';
<FeaturesBento />
+ <ValuesSection />
+
<div class="bg-card py-64 border-t flex items-center justify-center gap-8 sm:gap-12 flex-col sm:flex-row relative overflow-hidden">
<div class="max-w-600px px-6 text-center sm:text-left">
<h2 class="text-2xl sm:text-4xl font-bold max-w-650px mx-auto">
@@ -60,32 +68,61 @@ import Layout from '../layouts/Layout.astro';
</div>
</div>
- <!-- <div class="py-64 relative overflow-hidden border-y relative">
- <div class="z-10 bg-primary w-90% max-w-1000px h-80px rounded-full blur-64 op-15 absolute top--50px left-50% -translate-x-50%"></div>
-
- <div class="z-10 bg-primary size-64 rounded-full blur-84 op-20 transform translate-x--80% translate-y--33% absolute"></div>
- <div class="z-10 bg-primary size-128 rounded-full blur-84 op-20 transform translate-x-80% translate-y-33% absolute right-0"></div>
-
- <div class="max-w-800px mx-auto p-6">
- <div class="text-center">
- <p class="text-3xl font-bold text-pretty">"With Papra, we've streamlined our document management process."</p>
- <div class="text-lg mt-4">- Ada, FICSIT Inc.</div>
- </div>
- </div>
- </div> -->
- <FaqAccordion />
+ <FaqAccordion
+ title="Frequently Asked Questions"
+ description="Everything you need to know about Papra"
+ items={[
+ {
+ question: 'What is Papra?',
+ answer:
+ 'Papra is an open-source document management platform designed to help you organize, secure, and archive your files effortlessly. It provides a centralized solution for managing all your documents in one place.',
+ },
+ {
+ question: 'Is Papra really open-source?',
+ answer: 'Yes! Papra is completely open-source and available under the AGPL-3.0 license. You can view the source code on GitHub and even self-host it if you prefer.',
+ },
+ {
+ question: 'How does document organization work?',
+ answer:
+ 'Papra uses a combination of organizations, tags, and powerful search functionality to help you organize your documents. You can create organizations for teams or companies, add tags for categorization, and find documents quickly with our search feature.',
+ },
+ {
+ question: 'Can I self-host Papra?',
+ answer:
+ 'Absolutely! Since Papra is open-source, you can self-host it on your own infrastructure. This gives you complete control over your data and allows you to customize the platform to your specific needs.',
+ },
+ {
+ question: 'What file types does Papra support?',
+ answer:
+ 'Papra supports a wide range of document types including PDFs, text files, code files, invoices, spreadsheets, and many more. The platform is designed to handle various file formats commonly used in business and personal document management.',
+ },
+ {
+ question: 'Are my documents secure?',
+ answer: 'Yes! Papra uses industry-standard in-transit and at-rest encryption to protect your documents.',
+ },
+ {
+ question: 'Are my data stored in Europe?',
+ answer: 'Yes! Papra is hosted in Europe and all data is stored in Europe.',
+ },
+ {
+ question: 'How can I get started with Papra?',
+ answer:
+ 'Getting started with Papra is easy! Simply sign up for a free account, upload your documents, and start organizing them. You can also check out our documentation for more detailed instructions on how to use the platform.',
+ },
+ ]}
+ />
<div class="bg-card py-32">
<div class="max-w-1200px mx-auto px-6">
<div
class="border rounded-xl bg-background pt-32 pb-24 bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] px-6"
>
- <h2 class="text-2xl sm:text-4xl font-bold text-center max-w-650px mx-auto">Trusted by home, startups, and enterprises of all sizes.</h2>
+ <h2 class="text-2xl sm:text-4xl font-bold text-center max-w-650px mx-auto">Trusted by homes, startups, and enterprises of all sizes.</h2>
<div class="flex mt-4 items-center justify-center">
- <a href={config.requestEarlyAccessLink} class="font-semibold text-background px-4 py-2 hover:bg-primary/80 rounded-lg bg-primary transition mt-8 inline-block flex items-center">
- Join the private beta
+ <a href={config.getStartedLink} class="font-semibold text-background px-4 py-2 hover:bg-primary/80 rounded-lg bg-primary transition mt-8 inline-block flex items-center">
+ Get started
<div class="i-tabler-arrow-right ml-2 size-5" aria-hidden="true"></div>
</a>
diff --git a/src/pages/pricing.astro b/src/pages/pricing.astro
new file mode 100644
index 00000000..4aa797c7
--- /dev/null
+++ b/src/pages/pricing.astro
@@ -0,0 +1,327 @@
+---
+import { config } from '../app.config';
+import FaqAccordion from '../components/FaqAccordion.astro';
+import Footer from '../components/Footer.astro';
+import Header from '../components/Header.astro';
+import LaunchBanner from '../components/LaunchBanner.astro';
+import Layout from '../layouts/Layout.astro';
+
+const discount = config.launchDiscount;
+
+type Plan = {
+ name: string;
+ monthlyPrice: number;
+ annualPrice: number;
+ features: string[];
+ cta: {
+ text: string;
+ url: string;
+ };
+ popular?: boolean;
+} & (
+ | {
+ discountedMonthlyPrice?: undefined;
+ discountedAnnualPrice?: undefined;
+ }
+ | {
+ discountedMonthlyPrice: number;
+ discountedAnnualPrice: number;
+ }
+);
+
+const plans: Plan[] = [
+ {
+ name: 'Free, forever',
+ monthlyPrice: 0,
+ annualPrice: 0,
+ features: ['512MB storage (~4,000 standard PDF)', '3 members per organization', 'Max upload size: 25MB', '1 intake email address', 'Basic support'],
+ cta: {
+ text: 'Get Started',
+ url: 'https://dashboard.papra.app',
+ },
+ },
+ {
+ name: 'Plus',
+ monthlyPrice: 9,
+ annualPrice: 90,
+ features: ['5GB storage (~20,000 standard PDF)', '10 members per organization', 'Max upload size: 100MB', '10 intake email addresses', 'Priority support'],
+ cta: {
+ text: 'Get Started',
+ url: 'https://dashboard.papra.app',
+ },
+ popular: true,
+ },
+
+ {
+ name: 'Pro',
+ monthlyPrice: 30,
+ annualPrice: 300,
+ features: ['50GB storage (~200,000 standard PDF)', '50 members per organization', 'Max upload size: 500MB', '100 intake email addresses', 'Priority support'],
+ cta: {
+ text: 'Get Started',
+ url: 'https://dashboard.papra.app',
+ },
+ },
+].map((plan) => {
+ if (discount.enabled && plan.monthlyPrice > 0) {
+ const discountMultiplier = 1 - discount.percentage / 100;
+ return {
+ ...plan,
+ discountedMonthlyPrice: plan.monthlyPrice * discountMultiplier,
+ discountedAnnualPrice: plan.annualPrice * discountMultiplier,
+ };
+ }
+ return plan;
+});
+---
+
+<Layout>
+ {discount.enabled && <LaunchBanner />}
+ <div class="bg-card flex flex-col w-full min-h-screen relative">
+ <Header class={discount.enabled ? 'absolute! top-0' : undefined} />
+
+ <div class="w-full bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] bg-background border-b pt-32 pb-24">
+ <div class="max-w-700px mx-auto p-4 text-center">
+ <h1 class="text-3xl md:text-4xl mb-4 font-bold">Simple, transparent pricing</h1>
+ <p class="text-base md:text-lg text-muted-foreground leading-tight">Choose the plan that fits your needs. All plans include core Papra features.</p>
+ </div>
+ </div>
+
+ <div class="max-w-1200px mx-auto px-6 md:px-8 flex-1 w-full">
+ <div class="flex flex-col items-center justify-center my-12 gap-3">
+ <div class="inline-flex rounded-lg border border-border bg-muted p-1" role="group">
+ <button id="monthly-btn" type="button" class="px-4 py-2 text-sm font-medium rounded-md transition-colors"> Monthly </button>
+ <button id="annual-btn" type="button" class="px-4 py-2 text-sm font-medium rounded-md transition-colors bg-background text-foreground shadow-sm flex items-center">
+ Annual
+ </button>
+ </div>
+ <p class="text-sm text-muted-foreground text-center">
+ Prices shown in USD. Your bank will convert to your local currency at checkout if needed.
+ </p>
+ </div>
+
+ <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
+ {
+ plans.map(plan => (
+ <div class={`relative border rounded-xl bg-background p-6 flex flex-col ${plan.popular ? 'border-primary' : ''}`}>
+ <div class="flex gap-2 absolute top--3 right-6">
+ {discount.enabled && plan.discountedMonthlyPrice !== undefined && (
+ <div class="bg-primary text-primary-foreground text-xs font-bold px-3 py-1 rounded-full">
+ {discount.percentage}% OFF
+ </div>
+ )}
+ {plan.popular && <div class="bg-primary text-primary-foreground text-xs font-bold px-3 py-1 rounded-full">Most Popular</div>}
+ </div>
+
+ <h2 class="text-2xl font-bold mb-2">{plan.name}</h2>
+
+ <div class="mb-6 border-b pb-6">
+ <div>
+ {plan.discountedMonthlyPrice !== undefined
+? (
+ <div class="flex gap-1 flex-wrap items-end">
+ <div class="flex flex-col items-start gap-1">
+ <span class="monthly-price text-2xl font-medium text-muted-foreground hidden lh-none relative after:(content-[''] absolute left--5px right--5px top-1/2 h-2px bg-muted-foreground/40 rounded-full -rotate-12 origin-center)">${plan.monthlyPrice}</span>
+ <span class="monthly-price text-5xl font-semibold hidden lh-none text-primary">${plan.discountedMonthlyPrice}</span>
+ </div>
+ {plan.annualPrice > 0
+? (
+ <div class="flex flex-col items-start gap-1">
+ <span class="annual-price text-2xl text-muted-foreground lh-none relative after:(content-[''] absolute left--5px right--5px top-1/2 h-2px bg-muted-foreground/40 rounded-full -rotate-12 origin-center)">${Math.round((100 * plan.annualPrice) / 12) / 100}</span>
+ <span class="annual-price text-5xl font-semibold lh-none text-primary">${Math.round((100 * plan.discountedAnnualPrice) / 12) / 100}</span>
+ </div>
+ )
+: (
+ <span class="annual-price text-5xl font-semibold">$0</span>
+ )}
+ <div>
+ <span class="text-muted-foreground">/ month</span>
+ {plan.annualPrice > 0 && <div class="text-xs text-muted-foreground annual-price">${plan.discountedAnnualPrice} billed annually</div>}
+ </div>
+ </div>
+ )
+: (
+ <div class="flex gap-1 flex-wrap items-end">
+ <span class="monthly-price text-5xl font-semibold hidden lh-none">${plan.monthlyPrice}</span>
+ {plan.annualPrice > 0
+? (
+ <span class="annual-price text-5xl font-semibold lh-none">${Math.round((100 * plan.annualPrice) / 12) / 100}</span>
+ )
+: (
+ <span class="annual-price text-5xl font-semibold">$0</span>
+ )}
+ <div>
+ <span class="text-muted-foreground">/ month</span>
+ {plan.annualPrice > 0 && <div class="text-xs text-muted-foreground annual-price">${plan.annualPrice} billed annually</div>}
+ </div>
+ </div>
+ )}
+ </div>
+ </div>
+
+ <ul class="space-y-3 mb-8 flex-1">
+ {plan.features.map(feature => (
+ <li class="flex items-start gap-2">
+ <div class="rounded-lg bg-muted p-0.75">
+ <div class="i-tabler-check size-4 text-primary flex-shrink-0" />
+ </div>
+ <span class="text-sm">{feature}</span>
+ </li>
+ ))}
+ </ul>
+
+ <a
+ href={plan.cta.url}
+ class={`text-center font-semibold px-4 py-2.5 rounded-lg transition ${
+ plan.popular ? 'bg-primary text-primary-foreground hover:bg-primary/80' : 'border border-border hover:border-primary hover:text-primary'
+ }`}
+ >
+ {plan.cta.text}
+ </a>
+ </div>
+ ))
+ }
+ </div>
+
+ <div class="mt-6 grid grid-cols-1 md:grid-cols-2 gap-6">
+ <div class="border rounded-xl bg-background p-6 flex-col items-start">
+ <h2 class="text-2xl font-bold">Enterprise solutions</h2>
+ <p class="text-muted-foreground mt-2 mb-4 flex-1">
+ Looking for a custom plan tailored to your organization's needs? <br /> We offer enterprise solutions with advanced features, dedicated support, and flexible pricing. Contact us to discuss
+ your requirements and get a personalized quote.
+ </p>
+ <a href="/contact" class="inline-flex items-center gap-2 border font-semibold px-4 py-2 rounded-lg hover:border-primary hover:text-primary transition">
+ Contact us
+ <div class="i-tabler-arrow-right size-5"></div>
+ </a>
+ </div>
+
+ <div class="border rounded-xl bg-background p-6 flex flex-col items-start">
+ <h2 class="text-2xl font-bold">Self-hosting</h2>
+ <p class="text-muted-foreground mt-2 mb-4 flex-1">
+ Papra is open-source, under the <a href="https://github.com/papra-app/papra/blob/main/LICENSE" class="underline hover:text-primary transition">AGPLv3</a> and can be self-hosted on your own
+ infrastructure at no cost. <br />Get started with our documentation.
+ </p>
+ <a
+ href="https://docs.papra.app/self-hosting/using-docker/"
+ target="_blank"
+ rel="noopener"
+ class="inline-flex items-center gap-2 border font-semibold px-4 py-2 rounded-lg hover:border-primary hover:text-primary transition"
+ >
+ View self-hosting guide
+ <div class="i-tabler-arrow-right size-5"></div>
+ </a>
+ </div>
+ </div>
+ </div>
+
+ <FaqAccordion
+ title="Frequently Asked Questions"
+ description="Everything you need to know about Papra pricing"
+ items={[
+ {
+ question: 'Can I change plans at any time?',
+ answer:
+ 'Yes, you can upgrade or downgrade your plan at any time. If you upgrade, you\'ll be charged a prorated amount for the remainder of your billing period. If you downgrade, the change will take effect at the end of your current billing cycle.',
+ },
+ {
+ question: 'What happens if I exceed my storage limit?',
+ answer:
+ 'If you reach your storage limit, you won\'t be able to upload new documents until you either upgrade your plan or delete some existing documents. We\'ll send you notifications before you reach your limit.',
+ },
+ {
+ question: 'Is there a free trial for paid plans?',
+ answer: 'You can start with our Free plan to explore Papra\'s features. When you\'re ready to upgrade, you can switch to a paid plan at any time.',
+ },
+ {
+ question: 'What payment methods do you accept?',
+ answer: 'We accept all major credit cards (Visa, MasterCard, American Express) and debit cards. All payments are processed securely through our payment provider.',
+ },
+ {
+ question: 'Can I cancel my subscription anytime?',
+ answer: 'Yes, you can cancel your subscription at any time. Your account will remain active until the end of your current billing period, after which you\'ll be moved to the Free plan.',
+ },
+ {
+ question: 'Do you offer discounts for annual billing?',
+ answer: 'Yes! Annual plans save you 20% compared to monthly billing.',
+ },
+ {
+ question: 'How do I apply a promo code?',
+ answer: 'During checkout, look for the "Add promotion code" link in the products details. Click it, enter your promo code, and the discount will be applied automatically to your order.',
+ },
+ {
+ question: 'Can I add more team members later?',
+ answer: 'Yes, each plan has a specific member limit. If you need more team members, you can upgrade to a higher plan or contact us for a custom enterprise solution.',
+ },
+ ]}
+ />
+
+ <div class="bg-card pb-32">
+ <div class="max-w-1200px mx-auto px-6">
+ <div
+ class="border rounded-xl bg-background pt-32 pb-24 bg-[linear-gradient(to_right,#80808010_1px,transparent_1px),linear-gradient(to_bottom,#80808010_1px,transparent_1px)] bg-[size:48px_48px] px-6"
+ >
+ <h2 class="text-2xl sm:text-4xl font-bold text-center max-w-650px mx-auto">Trusted by homes, startups, and enterprises of all sizes.</h2>
+
+ <div class="flex mt-4 items-center justify-center">
+ <a href={config.getStartedLink} class="font-semibold text-background px-4 py-2 hover:bg-primary/80 rounded-lg bg-primary transition mt-8 inline-block flex items-center">
+ Get started
+
+ <div class="i-tabler-arrow-right ml-2 size-5" aria-hidden="true"></div>
+ </a>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ <Footer />
+ </div>
+</Layout>
+
+<script>
+ document.addEventListener('DOMContentLoaded', () => {
+ const monthlyBtn = document.getElementById('monthly-btn');
+ const annualBtn = document.getElementById('annual-btn');
+ const monthlyPrices = document.querySelectorAll('.monthly-price');
+ const annualPrices = document.querySelectorAll('.annual-price');
+ const monthlyPromoPrices = document.querySelectorAll('.monthly-promo-price');
+ const annualPromoPrices = document.querySelectorAll('.annual-promo-price');
+
+ const activeClasses = ['bg-background', 'text-foreground', 'shadow-sm'];
+ const inactiveClasses = ['bg-transparent', 'text-muted-foreground'];
+
+ function setAnnual() {
+ // Update button styles
+ annualBtn?.classList.add(...activeClasses);
+ annualBtn?.classList.remove(...inactiveClasses);
+ monthlyBtn?.classList.remove(...activeClasses);
+ monthlyBtn?.classList.add(...inactiveClasses);
+
+ // Toggle price visibility
+ monthlyPrices.forEach(el => el.classList.add('hidden'));
+ annualPrices.forEach(el => el.classList.remove('hidden'));
+ monthlyPromoPrices.forEach(el => el.classList.add('hidden'));
+ annualPromoPrices.forEach(el => el.classList.remove('hidden'));
+ }
+
+ function setMonthly() {
+ // Update button styles
+ monthlyBtn?.classList.add(...activeClasses);
+ monthlyBtn?.classList.remove(...inactiveClasses);
+ annualBtn?.classList.remove(...activeClasses);
+ annualBtn?.classList.add(...inactiveClasses);
+
+ // Toggle price visibility
+ monthlyPrices.forEach(el => el.classList.remove('hidden'));
+ annualPrices.forEach(el => el.classList.add('hidden'));
+ monthlyPromoPrices.forEach(el => el.classList.remove('hidden'));
+ annualPromoPrices.forEach(el => el.classList.add('hidden'));
+ }
+
+ monthlyBtn?.addEventListener('click', setMonthly);
+ annualBtn?.addEventListener('click', setAnnual);
+
+ // Start with annual selected
+ setAnnual();
+ });
+</script>