Note: this example is using v0 version of the Firecrawl API. You can install the 0.0.20 version for the Python SDK or the 0.0.36 for the Node SDK.

This template simplifies the creation of a web connector UI for Firecrawl using React. It includes a pre-built component that interfaces with the Firecrawl API, enabling you to quickly set up a web crawling and scraping interface for users to extract data for their AI applications. Firecrawl UI Template

This template allows users to enter a URL for crawling. If subpages are detected, the template will crawl them and display a list of discovered URLs. Users can then select which URLs to scrape, and the scraped content will be ingested into their AI application and displayed in the UI.

Security Consideration: This example exposes Firecrawl API keys in the client-side code. For production use, it is strongly recommended to move API interactions to a server-side implementation to protect your API keys.

Prerequisites

  • Node.js (v14 or later recommended)
  • npm
  • Make sure you have installed shadcn
  • Make sure you have installed tailwindcss

Getting Started

  1. Install dependencies:
npx shadcn-ui@latest add button card checkbox collapsible input label
  • Install the rest of the dependencies:
npm install clsx lucide-react tailwind-merge tailwindcss-animate class-variance-authority
  1. Create a lib/utils.ts file and add the following code:
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"

export function cn(...inputs: ClassValue[]) {
  return twMerge(clsx(inputs))
}
  1. Copy and paste our main ingestion component. Make sure to replace the FIRECRAWL_API_KEY with your key.

Customization

Beacuse this is not a library, you can customize the UI to your liking. Just edit the code just like shadcn.

Security Considerations

For production use, consider the following security measures:

  • Move API interactions to a server-side implementation to protect your Firecrawl API key.

Learn More

For more information about Firecrawl and its API, visit the Firecrawl documentation.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

The Firecrawl Ingestion UI Template is licensed under the MIT License.