A Chatbot for the World's Largest Hackathon presented by Bolt. This app provides official hackathon rules. This is use Static Knowledge generated by Firecrawl, the file available at data/rules.md
.
- Displays official hackathon rules in markdown
- Chatbot powered by AI SDK
-
Install dependencies:
pnpm install
-
Set up environment variables:
- Create a
.env
file in the project root:OPENAI_API_KEY=your_api_key_here GOOGLE_GENERATIVE_AI_API_KEY=your_api_key_here FIRECRAWL_API_KEY=your_api_key_here
- Create a
-
Run the development server:
pnpm dev
Open http://localhost:3000 in your browser.
To crawl and save the hackathon rules as markdown:
- Make sure your
.env
file is set up with your Firecrawl API key. - Run:
or use the script:
pnpm exec tsx lib/scrap.ts
pnpm scrape
- The crawled markdown will be saved to
data/crawled-rules.md
.
- To update the rules shown in the app, re-run the crawler as above.
- The markdown file in
data/crawled-rules.md
will be updated with the latest content.
- The favicon is set using
app/favicon.svg
. - To change the favicon, replace the SVG file at
app/favicon.svg
. - The favicon is referenced in
app/layout.tsx
via themetadata.icons
property.
MIT