Skip to content

Add Webpage node with Firecrawl integration#5

Merged
kartikk-k merged 5 commits intomainfrom
claude/add-webpage-node-firecrawl-011CUrMeW9gvSgQxh3Lj5jbZ
Nov 7, 2025
Merged

Add Webpage node with Firecrawl integration#5
kartikk-k merged 5 commits intomainfrom
claude/add-webpage-node-firecrawl-011CUrMeW9gvSgQxh3Lj5jbZ

Conversation

@kartikk-k
Copy link
Owner

No description provided.

- Install @mendable/firecrawl-js package
- Create /api/webpage endpoint for fetching webpage content
- Implement WebpageNode component with URL input and validation
- Add URL validation and Firecrawl API integration
- Render webpage content in markdown format using Response component
- Register webpageNode type in playground
- Add context menu support (Add as source, New child, New webpage, Delete)
- Create addNewWebpageNode action helper
- Add "New webpage" option to ChatNode and WebpageNode context menus
- Follow same design language as ChatNode

Features:
- Takes URL as input with validation
- Fetches webpage content using Firecrawl API in markdown format
- Displays webpage title and clickable URL
- Renders content with markdown formatting
- Supports right-click context menu for node operations
- Allows creating child nodes and passing selected text as source
- Maintains node state persistence via NodeChat
- Update /api/webpage route to get FIRECRAWL_API_KEY from environment variables
- Remove API key from WebpageNode query parameters for better security
- Add .env.example file to document required environment variables
- Remove unused apiKey prop from WebpageNode component

Security improvement: API keys are now stored server-side instead of being passed from the client.
- Add .env.example to document required FIRECRAWL_API_KEY
- Update .gitignore to allow .env.example to be committed
- Include instructions on where to get Firecrawl API key
@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
canvas-ai Ready Ready Preview Comment Nov 6, 2025 5:21pm

@kartikk-k kartikk-k merged commit e3b4605 into main Nov 7, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants