🗂️ Parse File

pages/file.ts -> parses file returns text

import type { NextApiRequest as Req, NextApiResponse as Res } from "next";
import { getFileText } from "./util";

type Doc = {
  pageContent: string;
  metadata?: any;

type R = {
  message?: string | object;
// 🎬 join to snag the full code

// npm i pdf-parse formidable node-html-markdown
import pdfParse from "pdf-parse";
import { Writable } from "stream";
import formidable from "formidable";
import type { NextApiRequest } from "next";
import { NodeHtmlMarkdown } from "node-html-markdown";

const formidableConfig = {
  keepExtensions: true,
// 🎬 join to snag the full code

Buy for life

Lifetime membership

Includes new components, templates, new dev tools, and more.

What's included

  • Templates
  • Starters
  • Dev Tools
  • Components
launch week discount


previous cost$59USD

Whats in the 📦

Years of value. Years of new components, templates, starters, yours to own forever. Everything you need to ship beautiful apps.


Nextjs Starters

All the boilerplate code you need to spin up a Saas: stripe, supabase db, supabase auth, UI components.

2 Fully Designed Templates

Rune New

Fully designed. Prod ready

Embeddings, auth, stripe.
Manifest is a pocket perplexity app. Upload any files and chat when them.

Make it pop 🤌


Powerful components built specifically
for shipping unique AI Saas apps.

Dev Tools

Generate full stack features

Run the dev tools locally. Generate shadcn components, Api routes, supabase schemas, rls policies and more.


API Snippets

Like shadcn for the backend. Copy and paste a snippet
instead of reverse engineering an app for a single feature.