# How to Vibe Code Your Own Scholarcy (and Stop Paying for It)

> AI-powered research assistant and document summarization

- Site: https://scholarcy.com
- Category: Productivity & Research AI
- Verdict: **Solid side project** (68/100 vibecodeable)
- Estimated effort: 2-3 weeks part-time

## Verdict

Build a personal subset for your own reading workflow, but keep paying if you rely on the polished browser extensions and Zotero sync.

Building the core loop—uploading a PDF, extracting text, passing it through an LLM with structured JSON output, and rendering it into a flashcard UI—is a straightforward weekend build with modern AI tools. However, academic PDFs are notoriously brutal to parse cleanly (two-column layouts, footnotes, formulas). Furthermore, writing and maintaining cross-browser extensions that inject sidebars securely without breaking on CORS policies or paywalled repositories involves tedious, unglamorous debugging.

### What you can't replicate

- The 600,000+ user network and academic institutional footprint
- Years of edge-case refinement for obscure academic PDF typesetting quirks

## What it does

Converts complex academic papers and long-form texts into interactive flashcard summaries with key findings, limitations, and reference management.

### Core features

- PDF text and layout extraction
- Structured flashcard generation (Synopses, Highlights, Limitations)
- Personal searchable library management with tags/collections
- Literature synthesis matrix generation (Excel export)
- Automated bibliography generation
- Browser extension for capturing pages on the fly
- Zotero reference manager integration

## The business

### Pricing

- Free Article Summarizer: $0/mo
- Scholarcy Plus: $9.99/mo

Founded 2018.
Team size: ~10.

## The hard parts

- Accurate academic PDF parsing (handling two-column layouts, tables, and mathematical notations cleanly without garbling text)
- Constrained structured information extraction from LLMs to guarantee consistent flashcard schema fields
- Bi-directional reference syncing and citation formatting (APA/MLA/Harvard)
- Building and maintaining cross-browser extensions (Chrome, Firefox, Safari) that inject sidebar UI reliably

## How to vibe code Scholarcy

### Prerequisites

- Node.js (free): Required runtime for Next.js full-stack development and CLI tooling.
- GitHub (free): Source control and repository hosting for your clone.
- Anthropic API Key (pay-as-you-go): Provides Claude Sonnet access for parsing and structuring academic text into flashcard schemas.

### Recommended AI tools

- Claude Code: Best-in-class terminal coding agent for scaffolding full-stack apps and writing complex multi-file parsers.
- Cursor: Essential for iterative UI work on the flashcard dashboard and reviewing component diffs.

### Stack

- Frontend: Next.js with Tailwind CSS and shadcn/ui components
- Backend: Next.js Server Actions and API routes
- Database: Cloudflare D1 (SQLite at the edge) via Turso or Drizzle ORM
- Auth: better-auth
- Payments: none
- Other: Vercel AI SDK for structured LLM flashcard generation, pdf-parse or unpdf for extracting raw text from uploaded research papers

### Hosting

- Cloudflare (Full-stack hosting for the Next.js app, serverless API routes, and D1 database storage.): $0-5/mo

### Build guide

1. **Project Scaffolding & Database Schema** — Initialize a Next.js project with Tailwind CSS, configure better-auth, and set up the SQLite database schema using Drizzle ORM to store summaries, flashcards, tags, and user metadata.

```
Create a new Next.js project using TypeScript and Tailwind CSS. Integrate better-auth for email/password authentication with a local SQLite database using Drizzle ORM. Define database schemas for 'documents' (id, userId, title, rawText, createdAt), 'flashcards' (id, documentId, synopsis, highlightsJson, background, conclusion, limitations), and 'collections' (id, userId, name). Ensure database connection configuration supports Cloudflare D1 or local SQLite file for development. Include basic layout navigation with shadcn/ui primitives.
```

2. **PDF Ingestion and Text Extraction Pipeline** — Implement a robust file upload endpoint that accepts research PDFs, extracts clean text using a robust parsing library, and handles multi-page document streams.

```
Implement a server-side API route in Next.js that handles multipart form data for uploading PDF documents (up to 50MB). Use a reliable text extraction library (such as 'pdf-parse' or 'unpdf') to extract raw text from all pages. Handle edge cases like multi-column layout artifacts, missing whitespace, and scanned image-only PDFs by returning a clear error message if text density is too low. Store the extracted text temporarily or link it directly to a newly created document record in the database.
```

3. **AI Flashcard Summarization Engine** — Integrate the Vercel AI SDK with Anthropic Claude to process extracted research text and generate structured flashcard JSON containing synopses, highlights, and limitations.

```
Build an AI summarization service using the Vercel AI SDK and Anthropic Claude Sonnet. Write a robust prompt instructing the model to parse the extracted research paper text and return a strictly typed JSON object matching our flashcard schema: synopsis (narrative overview), highlights (array of key findings), background (context and prior work), methodology, results, conclusion, and study limitations. Use structured output validation (zod) to ensure malformed JSON from the LLM triggers automatic retries or graceful fallback handling.
```

4. **Library & Flashcard Dashboard UI** — Build the personal library interface allowing users to search, filter by tags, organize into collections, and view interactive flashcard summaries.

```
Create the main library dashboard in Next.js. Display saved flashcard summaries in a responsive grid and list view with search filtering by title, keyword, and collection tags. Build a dedicated Flashcard viewer page that presents the structured data in clean, digestible tabs or sections: Synopsis, Highlights, Methodology, Key Findings, Limitations, and Citations. Include inline editing so users can update notes or highlight key text directly within their flashcard view.
```

5. **Literature Matrix & Bibliography Export** — Add export utilities to synthesize multiple flashcards into Excel matrices and generate formatted bibliographies.

```
Implement export functionality allowing users to select up to 100 flashcards from their library and export them as a structured Excel spreadsheet (.xlsx using 'xlsx' library) forming a Literature Synthesis Matrix comparing key findings, participants, and results across papers. Additionally, implement a one-click formatted bibliography generator that compiles citations into standard APA/MLA formats for copying or download.
```

6. **Browser Extension Scraper Shell** — Build a lightweight Manifest V3 browser extension that allows capturing open-access articles and sending them to the personal library backend.

```
Build a Manifest V3 browser extension (Chrome/Firefox compatible) featuring a popup UI and content script. The extension should extract the current page's URL and visible main article text, or detect open-access PDF links. Add a 'Summarize with Scholarcy' button that sends the content securely to your hosted Next.js API endpoint, receives the generated flashcard preview in a sidebar iframe, and provides a 'Save to Library' action authenticated via stored API tokens.
```

### Cost vs paying

**Starting costs (one-time):**

- Claude Pro subscription (coding agent): $20.00
- Anthropic API developer starting credits: $10.00
- Total: ~$30.00 one-time

**Ongoing costs (monthly):**

- Cloudflare Workers & D1 hosting: $0-5/mo
- Anthropic API usage for PDF summarization: ~$3-8/mo (depending on paper volume)
- Total: ~$3-13/mo

- Paying for the SaaS instead: $9.99/mo
- Build time: 18-25 hours
- AI tool credits: $20 (Claude Pro)
- Break-even: Roughly break-even immediately in cash, but requires significant time investment compared to paying $9.99/mo.

## Sources

- [Scholarcy Marketing Site & Home Pages](https://scholarcy.com)
- [Scholarcy Pricing Page](https://scholarcy.com/pricing)
- [Scholarcy Security & Compliance Policy](https://scholarcy.com/security)