Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
some small updates
Iuliia Shnai072edb9a6d49
diff --git a/components/web/alternatives/feature.tsx b/components/web/alternatives/feature.tsxindex 85dbdc6e..47f1eafb 100644--- a/components/web/alternatives/feature.tsx+++ b/components/web/alternatives/feature.tsx@@ -2,26 +2,39 @@import { useState } from "react";interface Props {- selectedFeature: string;- setSelectedFeature: (feature: string) => void;+ selectedFeatures: string[];+ setSelectedFeatures: (features: string[]) => void;}const features = ["send unlimited documents",+ "email capture",+ "analytics on each page","custom domain","team access","large files upload",];-const Feature: React.FC<Props> = ({ selectedFeature, setSelectedFeature }) => {+const Feature: React.FC<Props> = ({+ selectedFeatures,+ setSelectedFeatures,+}) => {+ const toggleFeature = (feature: string) => {+ if (selectedFeatures.includes(feature)) {+ setSelectedFeatures(selectedFeatures.filter((f) => f !== feature));+ } else {+ setSelectedFeatures([...selectedFeatures, feature]);+ }+ };+return (- <div className="flex space-x-4">+ <div className="flex flex-wrap justify-center space-x-4">{features.map((feat) => (<buttonkey={feat}- onClick={() => setSelectedFeature(feat)}- className={`py-2 px-4 rounded-md ${- selectedFeature === feat+ onClick={() => toggleFeature(feat)}+ className={`py-2 px-4 rounded-md mb-2 ${+ selectedFeatures.includes(feat)? "bg-black text-white border-black": "bg-white text-black border-2 border-black"}`}diff --git a/components/web/footer.tsx b/components/web/footer.tsxindex 40de2073..d004840e 100644--- a/components/web/footer.tsx+++ b/components/web/footer.tsx@@ -64,6 +64,7 @@ const navigation = {{ name: "VC-generator", href: "https://vc.papermark.io" },{ name: "Open Source Friends", href: "/oss-friends" },{ name: "Open Source Investors", href: "/open-source-investors" },+ { name: "Docsend Alternatives Finder", href: "/docsend-alternatives" },// { name: "Pitchdeck Summariser", href: "#" },],alternatives: [diff --git a/components/web/header.tsx b/components/web/header.tsxindex fa858e5e..95707193 100644--- a/components/web/header.tsx+++ b/components/web/header.tsx@@ -21,11 +21,11 @@ export default function Header() {</a></div><h1 className="mt-10 text-4xl font-bold tracking-tight text-gray-900 sm:text-5xl">- Papermark will make your pitchdeck stand out+ Founder friendly document sharing platform</h1><p className="mt-2 text-lg leading-8 text-gray-600">- The Open-Source Docsend Alternative to securely share documents- with real-time analytics.+ The Open-Source Docsend Alternative to securely share pitch deck+ and other docs with real-time analytics.</p><div className="mt-10 flex items-center gap-x-6"><Linkdiff --git a/middleware.ts b/middleware.tsindex b1068b16..aee86d94 100644--- a/middleware.ts+++ b/middleware.ts@@ -33,7 +33,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {path !== "/privacy" &&path !== "/oss-friends" &&path !== "/pricing" &&- path !== "/alternatives" &&+ path !== "/docsend-alternatives" &&path !== "/open-source-investors" &&!path.startsWith("/alternatives/") &&!path.startsWith("/blog/") &&diff --git a/pages/alternatives.tsx b/pages/docsend-alternatives.tsxsimilarity index 67%rename from pages/alternatives.tsxrename to pages/docsend-alternatives.tsxindex 28e0a242..25b47128 100644--- a/pages/alternatives.tsx+++ b/pages/docsend-alternatives.tsx@@ -10,21 +10,57 @@ import { PlanSelect } from "@/components/web/alternatives/plan";import { UsecaseSelect } from "@/components/web/alternatives/usecase";import LoadingDots from "@/components/ui/loading-dots";+const features = [+ "send unlimited documents",+ "email capture",+ "analytics on each page",+ "custom domain",+ "team access",+ "large files upload",+];+export default function Home() {const [loading, setLoading] = useState(false);const [optimizedPost, setOptimizedPost] = useState<string>("");const [usecase, setUsecase] = useState<string>("");const [plan, setPlan] = useState<string>("");- const [selectedFeature, setSelectedFeature] = useState<string>("");+ const [selectedFeatures, setSelectedFeatures] = useState<string[]>([]);const shouldRenderSteps = () => {- return selectedFeature !== "";+ return selectedFeatures.length > 0;};const handlePrompt = () => {- let prompt = `Provide me the list of 5 Docsend alternatives, based on the requested ${plan}, ${usecase}, and ${- selectedFeature ? selectedFeature : ""- }. The first one should be Papermark- it fits in every case. Provide only names`;+ // Getting the list of selected features+ let priorityFeaturesList = selectedFeatures.join(", ");++ // Getting the list of features that were not selected+ let otherFeaturesList = features+ .filter((feature) => !selectedFeatures.includes(feature))+ .join(", ");++ let prompt = `Provide me the list of 5-10 Docsend alternatives, based on the requested plan: ${+ plan ? plan : "Any Plan"+ }, and use case: ${usecase ? usecase : "Any Use Case"}.+ It should be platforms which allow to share/send documents, turn document into a shareable link.+ The first one should be Papermark- it fits in every case and has all features in it. After papermark show most relevant, the one which have ${+ priorityFeaturesList ? priorityFeaturesList : "the requested features"+ }.+ Provide name.+ On the next line word: Price: and price for this tool. Papermark price is starting free, premium 29$/month.++ Next should be word Features: and show list of ${+ priorityFeaturesList ? priorityFeaturesList : "the selected features"+ }. Near each feature, indicate with a yes/no whether it is available or not for this tool.++ Also list ${otherFeaturesList} and near each indicate with a yes/no whether it is available or not for this tool.++ Show all features in the list: Feature Name, and in brackets yes or no.++ Do not show Docsend, as you are finding alternatives to Docsend. If there are not enough alternatives, list fewer.++ Add at the end always:+Please note that the prices and availability of features may vary, and it is recommended to visit the respective websites of these alternatives for more accurate and up-to-date information.`;return prompt;};@@ -32,10 +68,9 @@ export default function Home() {// function to send post to OpenAI and get responseconst optimizePost = async (e: any) => {e.preventDefault();+ setOptimizedPost("");setLoading(true);-const prompt = handlePrompt();-const response = await fetch("/api/optimize", {method: "POST",headers: {@@ -51,21 +86,22 @@ export default function Home() {}// This data is a ReadableStream- const data = await response.text(); // get the full response text-- // Handle no data case+ const data = response.body;if (!data) {- setOptimizedPost("Nothing found, try another search.");- setLoading(false);return;-- // Set the response data directly to state- setOptimizedPost(data);- setLoading(false);}- const formattedData = data.replace(/\n/g, "<br>");- setOptimizedPost(formattedData);+ const reader = data.getReader();+ const decoder = new TextDecoder();+ let done = false;++ while (!done) {+ const { value, done: doneReading } = await reader.read();+ done = doneReading;+ const chunkValue = decoder.decode(value);+ const formattedChunk = chunkValue.replace(/\n/g, "<br>");+ setOptimizedPost((prev) => prev + formattedChunk);+ }setLoading(false);};@@ -78,23 +114,35 @@ export default function Home() {src="https://plausible.io/js/script.js"></script>- <title>Top 10 Docsend alternatives personalised for you</title>+ <title>+ Top Docsend Alternatives Personalised for Your Business | Discover+ Your Best Match+ </title><meta name="viewport" content="width=device-width, initial-scale=1" /><metaname="description"- content="Find investors and vc funds near you"+ content="Explore the best Docsend alternatives tailored for your startup needs. Find the right document sharing and tracking solution personalized for your use case."/><meta property="og:site_name" content="startupinvestors.vercel.app" /><metaproperty="og:description"- content="Unlock global startup funding with our app. Generate curated investor lists, connect with funds in various countries, and propel your startup to new heights today."+ content="Seeking Docsend alternatives? Discover best document sharing platforms that cater to your unique business requirements and enhance your operational efficiency."+ />+ <meta+ property="og:title"+ content="Docsend Alternatives Personalised for Your Business"/>- <meta property="Startup investors:title" content="Startup investors" />- <meta name="StartupsFunding:card" content="summary_large_image" />- <meta name="Startups:title" content="Startups funding" />- <meta name="StartupsFunding:description" content="Startups funding" />+ <meta name="twitter:card" content="summary_large_image" />+ <meta+ name="twitter:title"+ content="Explore Personalized Docsend Alternatives | Find Your Match"+ />+ <meta+ name="twitter:description"+ content="Uncover personalized Docsend alternatives for your business. Find the best document and pitch deck sharing platforms tailored to fit your specific needs."+ /><meta property="og:image" content="cover.png" /></Head>@@ -121,9 +169,10 @@ export default function Home() {Step 1. Select features you prioritize the most <br /></p><Feature- selectedFeature={selectedFeature}- setSelectedFeature={setSelectedFeature}+ selectedFeatures={selectedFeatures}+ setSelectedFeatures={setSelectedFeatures}/>+<div className="w-full my-1 mx-auto"><div className="flex space-x-4"><div className="w-full">@@ -187,7 +236,7 @@ export default function Home() {</div><div- className="bg-gray-200 text-black rounded-xl p-4 hover:bg-gray-300 transition border"+ className="max-w-2x bg-gray mx-auto text-black rounded-xl p-4 hover:bg-gray-100 transition cursor-copy border"onClick={() => {navigator.clipboard.write([new ClipboardItem({@@ -196,9 +245,6 @@ export default function Home() {}),}),]);- toast("List copied to clipboard", {- icon: "📋",- });}}key={optimizedPost}>@@ -218,9 +264,9 @@ export default function Home() {href="/login"target="_blank"rel="noopener noreferrer"- className="bg-black text-xs rounded-md w-full text-white px-1 py-1 hover:bg-black disabled:bg-purple-500 inline-block text-center"+ className="bg-gray-200 text-xs rounded-md w-full text-white px-1 py-1 hover:bg-black disabled:bg-purple-500 inline-block text-center">- Send document with Papermark+ Send document</a>)}</div>