text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {
"Vote_v2_sceneId_Scene_id_fk": {
"name": "Vote_v2_sceneId_Scene_id_fk",
"tableFrom": "Vote_v2",
"tableTo": "Scene",
"columnsFrom": ["sceneId"],
"columnsTo": ["id"]... | qdrant-hackathon | www/lib/db/migrations/meta/0000_snapshot.json | JSON | 27fbe0bd1ffddc1edc57e05f9786eefdfad367f341dadd5a9fa3413b4e67a920 | 2 | 634 |
{
"id": "608875b4-fea8-4f30-9e22-0ece1ca65763",
"prevId": "52f31096-c670-4cf2-af2f-fde1402c95af",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.Message_v2": {
"name": "Message_v2",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",... | qdrant-hackathon | www/lib/db/migrations/meta/0001_snapshot.json | JSON | 18656170095d819fb6476f5b511e2fef81ab801f3ed1e1430021c3544165a80d | 0 | 896 |
{
"id": "df0225f4-b1e9-422b-b4a8-8f462aee2568",
"prevId": "f89c4700-cc9a-470e-b8fe-19069ff9ccce",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.Message_v2": {
"name": "Message_v2",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",... | qdrant-hackathon | www/lib/db/migrations/meta/0003_snapshot.json | JSON | 7cae2e232a830a2f2f0dbb69a315353ca524933133ef67c3587164b449131084 | 0 | 896 |
{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1756723917219,
"tag": "0000_greedy_eternals",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1756742951329,
"tag": "0001_funny_whiplash",
... | qdrant-hackathon | www/lib/db/migrations/meta/_journal.json | JSON | 387788e37978bb80de544e62070992d49e5844ba34393d7eb392f19fc027c7fa | 0 | 208 |
import { QdrantClient } from "@qdrant/qdrant-js";
import { generateObject } from "ai";
import { z } from "zod";
import { myProvider } from "@/lib/ai/providers";
import type { IkeaProduct } from "./types";
import { IkeaIntegrationError } from "./types";
import type { SegmentationResult } from "./image-service";
import {... | qdrant-hackathon | www/lib/scene/ikea-service.ts | TypeScript | 4c29eba25ef0eaa20486560a39dded5bcc4817f85d9d8b7f14dd17f27e94dd0f | 0 | 896 |
that are available as Ikea Products that make sense for furnishing a room. e.g. "bed", "chair", "table", "sofa" etc.
Do NOT include labels that are not furniture like:
- "wall",
- "floor",
- "ceiling",
- "window",
- "door",
- "lamp",
- "plant",
- "art... | qdrant-hackathon | www/lib/scene/ikea-service.ts | TypeScript | 66e49ba2fd29c504a06393d655bbc66f1843fec2b8ce0be16866c9c5f1a32b89 | 1 | 588 |
import Replicate from "replicate";
import { generateText, convertToModelMessages } from "ai";
import { myProvider } from "@/lib/ai/providers";
import type { ChatMessage } from "@/lib/types";
import type { IkeaProduct, ImageGenerationOptions } from "./types";
import { ImageGenerationError } from "./types";
import {
S3... | qdrant-hackathon | www/lib/scene/image-service.ts | TypeScript | 874f055c1c261e2df9c82193d14b658e32bf4ed6d5483bd4959e9994cad931c5 | 0 | 896 |
1,
extra_lora_scale: 1,
num_inference_steps: 50,
},
},
)) as unknown as ReplicateResult[];
const tempImageUrl = result[0].url();
const image = await fetch(tempImageUrl);
const imageBuffer = await image.arrayBuffer();
const uploadResult = await th... | qdrant-hackathon | www/lib/scene/image-service.ts | TypeScript | fdb635aba04ab76e54ebf919f5e494f07c5fdfa0fb2ebb31386c49a5c3d9dd3c | 1 | 896 |
= [Buffer.from(baseImageBuffer)];
for (const product of validIkeaProducts) {
const productImageResponse = await fetch(product.imageUrl);
const productImageBuffer = await productImageResponse.arrayBuffer();
imageInputs.push(Buffer.from(productImageBuffer));
}
const result = (a... | qdrant-hackathon | www/lib/scene/image-service.ts | TypeScript | b11e05df8427d8676dfc135ee4535433fd2e891b32a9d3e18ec51ff1f9f99d68 | 2 | 896 |
);
const command = new PutObjectCommand({
Bucket: this.bucketName,
Key: key,
Body: imageBuffer,
ContentType: contentType,
CacheControl: "public, max-age=31536000",
});
await this.s3Client.send(command);
const publicUrl = await this.getPublicUrl(key);
... | qdrant-hackathon | www/lib/scene/image-service.ts | TypeScript | d77de45fc7dcff723abfcf277c2ab6877db37c3749b1a53b42eea74d037a375e | 3 | 421 |
export { SceneGenerator } from "./scene-generator";
export { ImageService } from "./image-service";
export { IkeaService } from "./ikea-service";
export type {
SceneGenerationConfig,
SceneGenerationResult,
ProgressCallback,
FurnitureAnalysis,
IkeaProduct,
ImageGenerationOptions,
} from "./types";
export {... | qdrant-hackathon | www/lib/scene/index.ts | TypeScript | 1c847bd2bee8b1ce54ef5d1fb049628ebdc0cfd73a6c7391c0b45aab191f9b25 | 0 | 78 |
import type { ChatMessage, SceneResult } from "@/lib/types";
import Image from "next/image";
import { ImageService } from "./image-service";
import { IkeaService } from "./ikea-service";
import type {
SceneGenerationConfig,
SceneGenerationResult,
ProgressCallback,
IkeaProduct,
Hotspot,
} from "./types";
impor... | qdrant-hackathon | www/lib/scene/scene-generator.tsx | TypeScript | 4661a0eb916e5ce0b67426385a0eb545aa31f32b17fef2c17e9cb5d7857d70e9 | 0 | 896 |
furniture segments...");
const segments = await this.ikeaService.getSegments(
segmentationResult,
baseImageUrl,
);
steps.push(`Extracted ${segments.length} furniture segments`);
onProgress?.(65, "Filtering furniture for IKEA compatibility...");
... | qdrant-hackathon | www/lib/scene/scene-generator.tsx | TypeScript | 04c59bcf4d2075074fd4a6e5156825792510c8b758e9805c0538553aea20a7c3 | 1 | 896 |
) - startTime,
steps,
furnitureItemsFound,
ikeaProductsUsed: ikeaProductsUsed.filter(
(product) => product !== null,
),
hotspots,
},
};
} catch (error) {
console.log(error);
steps.push(`Generation failed: ${(error as Error).mes... | qdrant-hackathon | www/lib/scene/scene-generator.tsx | TypeScript | 0cdddea351970418949f1efa26e23b12f0fc9965592c7dbad769f6e1d2248c50 | 2 | 416 |
import type { SceneResult } from "@/lib/types";
import type { ReactNode } from "react";
export interface SceneGenerationConfig {
includeIkeaFurniture: boolean;
enableUpscaling: boolean;
maxRetries: number;
imageWidth: number;
imageHeight: number;
guidanceScale: number;
inferenceSteps: number;
}
export t... | qdrant-hackathon | www/lib/scene/types.ts | TypeScript | aab0022d0ccb6f05f6065ab300f365a27a7019e8ac1db57181e0912b1b5e02cc | 0 | 337 |
#!/usr/bin/env tsx
import "dotenv/config";
import dotenv from "dotenv";
// Load environment variables
dotenv.config({ path: ".env.local" });
import { ImageService } from "../lib/scene/image-service";
console.log("🔧 R2 Connection Test");
console.log("===================");
async function testImageService() {
con... | qdrant-hackathon | www/scripts/test-r2-connection.ts | TypeScript | 89f605a80f2a3d1f4f39e7382d2d89264827289bf59cc436048322fdea2bf430 | 0 | 633 |
# Dependencies (reinstalled inside Docker)
node_modules
pnpm-debug.log*
npm-debug.log*
yarn-debug.log*
# Build output
.next
out
build
dist
# Git
.git
.gitignore
# Environment files (pass via docker-compose env_file or runtime env vars)
.env
.env.local
.env.*.local
# Editor / OS
.vscode
.idea
.DS_Store
Thumbs.db
*.s... | start-hackathon | .dockerignore | Docker Ignore | e5c595bfc3f846170fa408e0e0da32ce3e7c49c0c5319f36d03acd1bc0243405 | 0 | 181 |
# Dependencies
node_modules/
.pnp
.pnp.js
.pnp.cjs
.yarn/cache
.yarn/install-state.gz
# Build output
.next/
out/
build/
dist/
# Caches
.turbo/
.cache/
.eslintcache
.stylelintcache
.parcel-cache/
.swc/
# Test / coverage
coverage/
*.lcov
.nyc_output/
playwright-report/
test-results/
# Environment
.env
.env.*
!.env.ex... | start-hackathon | .gitignore | Git Ignore | f68f6ba969dcf3505e89131936a250ef1bfe992f9b767d67ca5a8a8e0f7776af | 0 | 310 |
.next
node_modules
public
package-lock.json
*.tsbuildinfo
| start-hackathon | .prettierignore | Prettier Ignore | faf11a3c3f30f139f82981bab16f32f9445bcc2f44d0460c9dfbc300671a9d1f | 0 | 12 |
{
"printWidth": 100,
"semi": true,
"singleQuote": false,
"trailingComma": "all",
"endOfLine": "auto",
"tabWidth": 2,
"plugins": ["prettier-plugin-tailwindcss"]
}
| start-hackathon | .prettierrc.json | JSON | a880b6b6bdfacec326aad554af18c5b01d6156d3b5793874be88f5cc4b468b01 | 0 | 55 |
# Agent rules
Marketing site for START Hack Vienna '26. Single Next.js 16 App Router project, server-rendered, statically deployed. No auth, no CMS, no API routes.
## Stack
- Next.js 16 (App Router), React 19, TypeScript strict
- Tailwind CSS v4 (CSS-first config in `src/app/globals.css`)
- shadcn/ui primitives on t... | start-hackathon | AGENTS.md | Markdown | 40e5804e2a38aa5a8260eeffb664ef901ef4df3d25b07b9be55c17a37f7c6a28 | 0 | 761 |
@AGENTS.md
| start-hackathon | CLAUDE.md | Markdown | 336cc4fbf19beaada7ccf9986414fa91851a8d7a07dfb3ccbe800a69eed0ab49 | 0 | 4 |
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "base-nova",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "",
"css": "src/app/globals.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""
},
"iconLibrary": "lucide",
"rtl": false,
"menuColor": "default",
... | start-hackathon | components.json | JSON | 3056a3940441f65fa87775aad320525ed22aa39bd895dde31c1a2bd0ef43d7cc | 0 | 240 |
# Content Review Notes
These items came from comparing the current START Hack site with the BuilderBase public event and track payloads.
## Open Content Conflicts
- Participant count: the current site says "100 builders"; BuilderBase exposes `max_participants: 180`. Public copy should stay generic until final capaci... | start-hackathon | CONTENT_REVIEW.md | Markdown | 20055383565a19e13f7210fac25dfced1c84a4a94504615b1253ff580556a7cf | 0 | 378 |
services:
app:
build:
context: .
dockerfile: Dockerfile
target: runner
image: ai-website-cloner:latest
container_name: ai-website-cloner
restart: unless-stopped
ports:
- "${PORT:-3000}:3000"
environment:
- NODE_ENV=production
- NEXT_TELEMETRY_DISABLED=1
... | start-hackathon | docker-compose.yml | YAML | 7eac5e9924bea922af95758d9870e2aabbcd84c794e0474a3406e17bd6e6ec6d | 0 | 405 |
# SRC https://github.com/vercel/next.js/blob/canary/examples/with-docker/Dockerfile
# ============================================
# Stage 1: Dependencies Installation Stage
# ============================================
# IMPORTANT: Node.js Version Maintenance
# This Dockerfile defaults to Node.js 24.14.1-slim to ma... | start-hackathon | Dockerfile | Dockerfile | 101cf5ab96a7b030246ea71e318af91fdc96a0ea22a69c27c28c4e4e2c4c9453 | 0 | 896 |
prevents
# .next/cache/fetch-cache from being included in the final image, meaning
# cached fetch responses from the build won't be available at runtime.
RUN if [ -f package-lock.json ]; then \
npm run build; \
elif [ -f yarn.lock ]; then \
corepack enable yarn && yarn build; \
elif [ -f pnpm-lock.yaml ]; then ... | start-hackathon | Dockerfile | Dockerfile | 3d1de33cd29d55d4198d17f3d58713ebec2b7070027fe52a60402f4d77dce368 | 1 | 513 |
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import unusedImports from "eslint-plugin-unused-imports";
const eslintConfig = d... | start-hackathon | eslint.config.mjs | JavaScript | 336aafe8a0f31d8087d207313c78218313adc43406a9d9409cb641c7b4e34b52 | 0 | 298 |
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
};
export default nextConfig;
| start-hackathon | next.config.ts | TypeScript | 496898063c834c666510bdb5bb472bcf08e01ca8eef297da101ad12680c8fc93 | 0 | 28 |
{
"name": "start-hackathon",
"version": "0.1.0",
"private": true,
"license": "MIT",
"engines": {
"node": ">=24"
},
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"bot:dev": "tsx src/bot/index.ts",
"bot:start": "tsx src/bot/index.ts",
"bot:ingest":... | start-hackathon | package.json | JSON | 69b434521ee1beca47f681aebdc91566c41418e023c64075409473cdf693a47f | 0 | 708 |
# START Hack Vienna
Marketing site for **START Hack Vienna '26** — a 24-hour hackathon at HOIV.
Single-page Next.js 16 app, server-rendered, statically deployed.
## Stacks
- Next.js 16 (App Router) · React 19 · TypeScript strict
- Tailwind CSS v4 (CSS-first config in `globals.css`)
- shadcn/ui primitives on top of `... | start-hackathon | README.md | Markdown | 2e0160c22db5f9390d9e0180d20b05a59996ed4fc502a97c91c07e1fb3b9e6f9 | 0 | 884 |
## Summary
<!-- What does this PR do and why? -->
## Related Issue
<!-- Link to the issue this addresses, e.g. Closes #123 -->
## Type of Change
- [ ] Bug fix
- [ ] New feature
- [ ] Documentation
- [ ] Refactoring
- [ ] Breaking change
## Checklist
- [ ] `npm run check` passes (lint + typecheck + build)
| start-hackathon | .github/PULL_REQUEST_TEMPLATE.md | Markdown | 5275e9f426431a0aff8bd81190424da4516d34f98e4b5afc3ad60f1d7a40cacd | 0 | 90 |
name: Bug Report
description: Report a bug or unexpected behavior
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report a bug! Please fill out the form below so we can reproduce and fix it.
- type: textarea
id: description
attrib... | start-hackathon | .github/ISSUE_TEMPLATE/bug_report.yml | YAML | 65e622a827a0d24f1bfced310f3b9b63eb277c67aadf7e74ad537adedd97db9f | 0 | 389 |
blank_issues_enabled: false
contact_links:
- name: Questions & Discussion
url: https://discord.gg/hrTSX5yTpB
about: Ask questions and chat with the community on Discord
| start-hackathon | .github/ISSUE_TEMPLATE/config.yml | YAML | 34b977376409bbff3109e026da7f0083fd45c543e0c477a7c7a9ac5da60d965b | 0 | 33 |
name: Feature Request
description: Suggest a new feature or improvement
title: "[Feature]: "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thanks for suggesting a feature! Please describe the problem and your proposed solution.
- type: textarea
id: problem
attributes... | start-hackathon | .github/ISSUE_TEMPLATE/feature_request.yml | YAML | f18e04a6dcf1a14cd5c0987abe4678c6aab8c639e9f029e21a611acd54187146 | 0 | 207 |
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
quality:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
n... | start-hackathon | .github/workflows/ci.yml | YAML | eed84ee69fb31e0cd8a6cfd24f32c5aa212ff0af3e0db943b6616c12e886b9be | 0 | 91 |
# START Hack Vienna FAQ
## What is START Hack Vienna '26?
START Hack Vienna '26 is a 24-hour onsite hackathon in Vienna with partner challenges, mentors, food, tool credits, and public MIT-licensed submissions.
## When and where is the event?
The event runs June 6-7, 2026 at HOIV - Home of Innovation Vienna in Vien... | start-hackathon | knowledge/faq.md | Markdown | 1272824d294aa6fc1202b2fe33653a0f8e2cfa103b9aedafd29ee2d73b649bc6 | 0 | 205 |
# Logistics And Schedule
## Day one
Check-in starts at 09:00 on June 6 at HOIV. Cases go live at 10:00 and doors close at 11:00 sharp.
Opening ceremony runs from 11:00 to 11:30. Break-out rooms run from 11:30 to 12:30. Teams finalize structure and track preferences from 12:30 to 12:45. Final allocation runs from 12:... | start-hackathon | knowledge/logistics.md | Markdown | 5c35625e607fba229ddb8118cf2c160d68e60546282b5e734ec1b4df4ea5f6e1 | 0 | 263 |
# Partner Track Notes
## fonio.ai
Teams build an empty-slot refill loop for appointment cancellations. The demo should show cancellation detection, candidate selection, an outbound call, and confirmed booking. Consent and edge cases matter.
## techbold
Teams build an AI-assisted technician workspace for Linux incid... | start-hackathon | knowledge/partners.md | Markdown | 97c158cc92b71eaf8dd79a005caca12cddc835c73d938d7476829e95d56be26b | 0 | 204 |
# Rules And Safety
## Question-answering bot rules
The Discord bot only answers when directly mentioned and only when the message looks like a question. Each Discord user can ask one accepted bot question every five minutes.
The bot must answer only from START Hack Vienna knowledge sources. When the retrieved contex... | start-hackathon | knowledge/rules.md | Markdown | 42740d45c959a1c3312f3dbd2c8e45882138d6a5092d7620dd60df093663b771 | 0 | 149 |
@import "tailwindcss";
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
@theme inline {
--color-light-1: #f3f3f6;
--color-light-2: rgb(245 243 238);
--color-light-3: rgb(235 233 228);
--color-dark-1: rgb(24 24 28);
--color-dark-2: rgb(24 24 28 / 0.7);
--color-dark-3: rgb(24 24 28 / 0.55);
... | start-hackathon | src/app/globals.css | CSS | f5d37ba22138fa634ea250697799fa389695f5b2aef9dda0271d5687d765cab2 | 0 | 896 |
linear infinite;
@keyframes marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-100% - var(--gap)));
}
}
@keyframes marquee-vertical {
from {
transform: translateY(0);
}
to {
transform: translateY(calc(-100% - var(--gap)));
}
}
}... | start-hackathon | src/app/globals.css | CSS | 09a6d8caf8ec3340cdbd39f0a81fcf1f2512fb5963ccab04a043dbc634d642d6 | 1 | 539 |
import "./globals.css";
import { Analytics } from "@vercel/analytics/next";
import { GeistMono } from "geist/font/mono";
import { GeistSans } from "geist/font/sans";
import type { Metadata, Viewport } from "next";
import { EVENT, SITE_URL } from "@/features/marketing/config";
import { sponsors, tracks } from "@/featu... | start-hackathon | src/app/layout.tsx | TypeScript | f1d7a5f2381fe18f810ebb2a339790d46aa8f13b569604aa0f27b00d27d08380 | 0 | 896 |
"Organization",
name: EVENT.shortName,
url: SITE_URL,
},
inLanguage: "en",
isAccessibleForFree: true,
};
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
return (
<html lang="en" className={`${GeistSans.variable} ${GeistMono.variable}`}>
<body classN... | start-hackathon | src/app/layout.tsx | TypeScript | 9d08bdd84880a008abbeda24898de2354776d568e90dd02f723b92ea9dd6e3bb | 1 | 138 |
import type { MetadataRoute } from "next";
import { EVENT } from "@/features/marketing/config";
export default function manifest(): MetadataRoute.Manifest {
return {
name: EVENT.name,
short_name: EVENT.shortName,
description: EVENT.description,
start_url: "/",
display: "standalone",
backgrou... | start-hackathon | src/app/manifest.ts | TypeScript | 0d65a66a2dd18981151bfed4876578a137cfc8a58dc628ac36032855bd41a536 | 0 | 152 |
import { CtaSection } from "@/features/marketing/sections/cta-section";
import { GridFeatures } from "@/features/marketing/sections/grid-features";
import { Hero } from "@/features/marketing/sections/hero";
import { Hosts } from "@/features/marketing/sections/hosts";
import { PartnerMarquee } from "@/features/marketing... | start-hackathon | src/app/page.tsx | TypeScript | f1f4cfbdd6e3c881155810fdef0c6aeb9d851d79fcf6c3ecaf75a524178f4882 | 0 | 252 |
import type { MetadataRoute } from "next";
import { SITE_URL } from "@/features/marketing/config";
export default function robots(): MetadataRoute.Robots {
return {
rules: [{ userAgent: "*", allow: "/" }],
sitemap: `${SITE_URL}/sitemap.xml`,
host: SITE_URL,
};
}
| start-hackathon | src/app/robots.ts | TypeScript | 18caa7b6301d40ceb23f5900acdba5e9a4df79f206ecdbc237522672ffb54a5c | 0 | 76 |
import type { MetadataRoute } from "next";
import { SITE_URL } from "@/features/marketing/config";
import { trackDetails } from "@/features/marketing/content";
export default function sitemap(): MetadataRoute.Sitemap {
return [
{
url: SITE_URL,
lastModified: new Date(),
changeFrequency: "weekl... | start-hackathon | src/app/sitemap.ts | TypeScript | 8d97943622a6c951086f73d18dfd4902384dd84ff15b2c553e9cf7eafb3857ab | 0 | 135 |
import type { Metadata } from "next";
import { notFound } from "next/navigation";
import { SITE_URL } from "@/features/marketing/config";
import { getTrackDetail, trackDetails } from "@/features/marketing/content";
import { SiteHeader } from "@/features/marketing/sections/site-header";
import { TrackDetailPage } from ... | start-hackathon | src/app/tracks/[slug]/page.tsx | TypeScript | 6b0ae9ce4476bb268decbf6d5ee7869c2ba9b9b05c5632cbfa49ac1eab983e4a | 0 | 415 |
import { describe, expect, it, vi } from "vitest";
import { AnswerService } from "./answer-service";
import { UserCooldown } from "./rate-limit";
import type { AnswerClient, Logger, Retriever } from "./types";
const logger: Logger = {
info: vi.fn(),
warn: vi.fn(),
error: vi.fn(),
};
function createService(opti... | start-hackathon | src/bot/answer-service.test.ts | TypeScript | 32ae95fd6f58dee59493df9714482a4439e2fe9ef9619a9c4e300bbd80c9d357 | 0 | 896 |
,
counted: true,
content:
"I don't know from the START Hack Vienna docs yet. Please ask an organizer for the freshest answer.",
});
});
it("returns an operational fallback when providers fail", async () => {
const { service } = createService({
retriever: { search: vi.fn().mockReje... | start-hackathon | src/bot/answer-service.test.ts | TypeScript | 6ac288331bdc3d256017bb55ec7261098d2ecb42a0cb05c25ae624960d678ea0 | 1 | 156 |
import { isLikelyQuestion, stripBotMention, truncateDiscordMessage } from "./message";
import { formatRetryAfter, UserCooldown } from "./rate-limit";
import type { AnswerClient, BotReply, Logger, Retriever } from "./types";
const NO_CONTEXT_REPLY =
"I don't know from the START Hack Vienna docs yet. Please ask an org... | start-hackathon | src/bot/answer-service.ts | TypeScript | 1afaf6ed9be2c508e71ec8acc9a15ad0c2a12fd513bda49afb933bf093b0f70b | 0 | 558 |
import { config as loadDotenv } from "dotenv";
import type { BotConfig } from "./types";
loadDotenv({ path: ".env.local", quiet: true });
loadDotenv({ path: ".env", quiet: true });
const DEFAULT_COLLECTION = "start_hackathon_knowledge";
const DEFAULT_ANSWER_MODEL = "gemini-3.5-flash";
const DEFAULT_EMBEDDING_MODEL =... | start-hackathon | src/bot/config.ts | TypeScript | fd0fead117fccf7a685120ba505f52794591a5e5454b2f888b99c2bffbb3af18 | 0 | 532 |
import { Client, GatewayIntentBits } from "discord.js";
import type { AnswerService } from "./answer-service";
import type { Logger } from "./types";
export function createDiscordClient(): Client {
return new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages],
});
}
export async fu... | start-hackathon | src/bot/discord.ts | TypeScript | ef2648bea99a2ffe0e8d9a76bbd6d14efd38866675d7369d8c1d3aadf3570d03 | 0 | 337 |
import { GoogleGenAI } from "@google/genai";
import type { AnswerClient, EmbeddingClient, EmbeddingTaskType, RetrievedChunk } from "./types";
const REFUSAL =
"I don't know from the START Hack Vienna docs yet. Please ask an organizer for the freshest answer.";
export class GeminiClient implements EmbeddingClient, A... | start-hackathon | src/bot/gemini.ts | TypeScript | 921ef95f16c295459722add00b54e1cd0c06f94f3b24ae5dc50212d4ca104c0b | 0 | 506 |
import { AnswerService } from "./answer-service";
import { loadBotConfig } from "./config";
import { createDiscordClient, startDiscordBot } from "./discord";
import { GeminiClient } from "./gemini";
import { logger } from "./logger";
import { createQdrantClient, QdrantKnowledgeStore } from "./qdrant";
import { UserCool... | start-hackathon | src/bot/index.ts | TypeScript | b96f1fcc7f1b0563ae29daa8a422b44ac856b47b966fa82572d341df43a53b47 | 0 | 255 |
import { loadBotConfig } from "./config";
import { GeminiClient } from "./gemini";
import { chunkDocuments, loadKnowledgeDocuments } from "./knowledge";
import { logger } from "./logger";
import { createQdrantClient, QdrantKnowledgeStore } from "./qdrant";
async function main() {
const config = loadBotConfig({ requi... | start-hackathon | src/bot/ingest.ts | TypeScript | beee58603cfbca977b25583e344c003c53dec1b340126fe40d0d6865ad31a3ea | 0 | 264 |
import { describe, expect, it } from "vitest";
import { chunkDocument } from "./knowledge";
describe("knowledge chunking", () => {
it("keeps source metadata on every chunk", () => {
const chunks = chunkDocument({
sourceType: "knowledge",
sourceId: "faq",
title: "FAQ",
path: "knowledge/fa... | start-hackathon | src/bot/knowledge.test.ts | TypeScript | 65d5883e99de539911e564e34b6210a516f3790e5924a49afaaedb2450589619 | 0 | 379 |
import { createHash } from "node:crypto";
import { readdir, readFile } from "node:fs/promises";
import path from "node:path";
import {
marketingEvent,
scheduleDays,
sponsors,
trackDetails,
tracks,
} from "../features/marketing/content";
import type { KnowledgeChunk, KnowledgeDocument, KnowledgeSourceType } f... | start-hackathon | src/bot/knowledge.ts | TypeScript | 90aad0c493cb57266629f8b5f286b91b95d651041dd312726cfdfba64bab6623 | 0 | 896 |
resource.name} - ${resource.description}`)
.join("; ")}`
: "",
track.people
? `People: ${track.people.map((person) => `${person.name} - ${person.role}`).join("; ")}`
: "",
]),
);
const trackSummaryDocument = makeMarkdownDocument(
"tracks-summary",
"Tracks Summa... | start-hackathon | src/bot/knowledge.ts | TypeScript | 596fcb6ce96a7741cebe76d5eddf01a541efc9b26752d3486d12dc4455e96218 | 1 | 802 |
import type { Logger, LoggerContext } from "./types";
function serializeContext(context?: LoggerContext) {
return context ? ` ${JSON.stringify(context)}` : "";
}
function errorMessage(error: unknown): string {
if (error instanceof Error) {
return error.message;
}
return String(error);
}
export const log... | start-hackathon | src/bot/logger.ts | TypeScript | 5f12a1e67dcc1c41c219d90cd22def8785c7e985133cf9f032bcba5329dfd7d1 | 0 | 190 |
import { describe, expect, it } from "vitest";
import { isLikelyQuestion, stripBotMention, truncateDiscordMessage } from "./message";
describe("Discord message parsing", () => {
it("strips normal and nickname bot mentions", () => {
expect(stripBotMention("<@123> when is check-in? <@!123>", "123")).toBe("when is... | start-hackathon | src/bot/message.test.ts | TypeScript | 255d03d3fbd616bc11bc6e1a56ac7e2984538f606e63edac4adfd94afaa11368 | 0 | 272 |
const QUESTION_STARTERS = new Set([
"can",
"could",
"do",
"does",
"how",
"is",
"are",
"should",
"what",
"when",
"where",
"which",
"who",
"why",
"will",
]);
export function stripBotMention(content: string, botUserId: string): string {
const mentionPattern = new RegExp(`<@!?${botUserId}>`... | start-hackathon | src/bot/message.ts | TypeScript | 3f15ce8245de2ed992503ced22150e0094caa86436290805f1b015010086f721 | 0 | 303 |
import { QdrantClient } from "@qdrant/js-client-rest";
import type {
EmbeddingClient,
KnowledgeChunk,
KnowledgeChunkPayload,
RetrievedChunk,
Retriever,
} from "./types";
type QdrantPayload = Record<string, unknown> | null | undefined;
function asPayload(payload: QdrantPayload): KnowledgeChunkPayload | unde... | start-hackathon | src/bot/qdrant.ts | TypeScript | a631ba2676ac3188adb01fb4fbaac4c626056c0483f484e76255b85b96832092 | 0 | 632 |
import { describe, expect, it } from "vitest";
import { formatRetryAfter, UserCooldown } from "./rate-limit";
describe("UserCooldown", () => {
it("allows one accepted question per cooldown window", () => {
let now = 1_000;
const cooldown = new UserCooldown(300_000, () => now);
expect(cooldown.check("us... | start-hackathon | src/bot/rate-limit.test.ts | TypeScript | 11865dea72c01546f188160a5c5f40b50dea2be4c9389a459649878eeaa8faee | 0 | 237 |
export type RateLimitResult = { allowed: true } | { allowed: false; retryAfterMs: number };
export class UserCooldown {
private readonly lastAcceptedAt = new Map<string, number>();
constructor(
private readonly cooldownMs: number,
private readonly now: () => number = Date.now,
) {}
check(userId: stri... | start-hackathon | src/bot/rate-limit.ts | TypeScript | f8f273ec8d6d44a6ea63206a806ff32b84a0f4bb644bcfa9e7704dfd56ad8f33 | 0 | 250 |
export type BotConfig = {
discordToken: string;
qdrantUrl: string;
qdrantApiKey?: string;
qdrantCollection: string;
geminiApiKey: string;
geminiAnswerModel: string;
geminiEmbeddingModel: string;
embeddingDimensions: number;
cooldownMs: number;
retrievalLimit: number;
minScore: number;
maxReplyCh... | start-hackathon | src/bot/types.ts | TypeScript | 0434b5e1dd36da09cbda46be36d320892f0845398d1e8073154c52ec639c5d31 | 0 | 362 |
import { mergeProps } from "@base-ui/react/merge-props";
import { useRender } from "@base-ui/react/use-render";
import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const badgeVariants = cva(
"group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-... | start-hackathon | src/components/ui/badge.tsx | TypeScript | 69b9818cd6dacb80d5566049d4ae750307cfe6553b84f2cc7bd688fa51f09976 | 0 | 544 |
-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
"icon-sm":
"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
"icon-lg": "size-9",
},
},
defaultVariants: {
variant: "default",
size: "default",
},
},
... | start-hackathon | src/components/ui/button.tsx | TypeScript | 767d330a78ba42246282c7bd16c304e2778aad6ff2d67d9d958dae44b843d01a | 1 | 200 |
"use client";
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
import type { ComponentProps } from "react";
import { cn } from "@/lib/utils";
function DropdownMenu(props: ComponentProps<typeof MenuPrimitive.Root>) {
return <MenuPrimitive.Root modal={false} {...props} />;
}
function DropdownMenuTrigger... | start-hackathon | src/components/ui/dropdown-menu.tsx | TypeScript | 685e6debc59725fd3ccaefaa3198e2def17da25e7dfa57e027c4c15601fffb18 | 0 | 582 |
import { type ComponentPropsWithoutRef } from "react";
import { cn } from "@/lib/utils";
interface MarqueeProps extends ComponentPropsWithoutRef<"div"> {
/**
* Optional CSS class name to apply custom styles
*/
className?: string;
/**
* Whether to reverse the animation direction
* @default false
*... | start-hackathon | src/components/ui/marquee.tsx | TypeScript | 6a93aba0b7c4ff9acc7a08c3fe370e44295557ae3c7e76ddf1e3f0d72325feb6 | 0 | 394 |
"use client";
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog";
import type { ComponentProps } from "react";
import { cn } from "@/lib/utils";
function Sheet(props: ComponentProps<typeof DialogPrimitive.Root>) {
return <DialogPrimitive.Root {...props} />;
}
function SheetTrigger(props: ComponentP... | start-hackathon | src/components/ui/sheet.tsx | TypeScript | c6e1e7ccf7bb00109b88df8df14a05cd01bff89ce322a51673041e6e012a099f | 0 | 844 |
"use client";
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
import type { ComponentProps } from "react";
import { cn } from "@/lib/utils";
function Tabs({ className, ...props }: ComponentProps<typeof TabsPrimitive.Root>) {
return (
<TabsPrimitive.Root
data-slot="tabs"
className={cn("... | start-hackathon | src/components/ui/tabs.tsx | TypeScript | 4682cc75bd1b0daba983d471315cad4112db3a0eddfe0648d92f36bd90bd55b5 | 0 | 539 |
import { marketingEvent } from "@/features/marketing/content";
export const APPLY_URL = "https://luma.com/sp3ivels";
export const SITE_URL = "https://hack.start-vienna.com";
export const EVENT = marketingEvent;
export const navLinks = [
{ label: "About", href: "/#about" },
{ label: "Basics", href: "/#basics" },... | start-hackathon | src/features/marketing/config.ts | TypeScript | 0d3be4c481ecd64080cf51988f9837444398ba90cccc98e910d188828a2a9821 | 0 | 142 |
export type MarketingEvent = {
name: string;
fullName: string;
shortName: string;
tagline: string;
description: string;
startDate: string;
endDate: string;
venue: string;
city: string;
country: string;
format: string;
location: string;
};
export type MarketingTrack = {
slug: string;
name: s... | start-hackathon | src/features/marketing/content.ts | TypeScript | b9e2a321c3846e913a5917bd19a768211c905698af116a71c9601ef92cb3a215 | 0 | 896 |
",
logo: "/partners/fonio.png",
tags: ["Voice AI", "Appointments", "Automation"],
kind: "challenge",
href: "/tracks/fonio-ai",
panelClassName: "bg-slate-300 text-announcement-foreground",
},
{
slug: "techbold",
name: "techbold",
partner: "techbold",
category: "AI service desk aut... | start-hackathon | src/features/marketing/content.ts | TypeScript | d1ca0a80c5c640aba665ab493641311cdd5801e4d9e8a24d8751cbbe949323e7 | 1 | 896 |
track preferences before allocation. The organizers then move each team into exactly one track, aiming to maximize first-choice matches while respecting partner capacity.",
"At allocation, you leave team formation and start hacking inside your assigned track.",
],
requirementsTitle: "Before hacking ... | start-hackathon | src/features/marketing/content.ts | TypeScript | f508fa15cdd0e7cfd206137a0e04b220206ecff25fdc7b82dc01f97c1f18a8f1 | 2 | 896 |
00, Sun 10:00-11:00",
},
{
name: "Kim",
role: "Tech mentor, Forward Deployment Engineer at fonio - available on Discord",
},
],
resources: [
{
name: "fonio account",
description: "One account per participant for building and testing.",
},
{
... | start-hackathon | src/features/marketing/content.ts | TypeScript | 639c8c5ebc16db1f9c58f865c4759ddf218caf152f534f5b22d5d6c221aa9c73 | 3 | 896 |
name: "Safety hard fails",
description:
"Deleting customer data, broad chmod/chown, disabling security controls, exposing secrets, or hiding logs can zero an incident or disqualify a team.",
},
],
},
{
slug: "notarity",
name: "notarity",
partner: "notarity",
category: "Le... | start-hackathon | src/features/marketing/content.ts | TypeScript | 64327b4585fc2a8460c20b5f906115aae0b61056317a362011c7486d548ffd17 | 4 | 896 |
proximata. Teams build real-world AI assistance through smart glasses using voice, vision, and agentic actions.",
logo: "/sponsors/proximata.png",
panelClassName: "bg-announcement text-announcement-foreground",
facts: ["Meta Ray-Ban glasses", "VisionClaw", "Hands-free AI"],
challenge: {
title: "Bu... | start-hackathon | src/features/marketing/content.ts | TypeScript | 60e220f4b1112c1741f8c5f2e6341792997c824e46bd64aa5408bded198f6173 | 5 | 896 |
Find team members for your team. Solo applicants get different colored armbands.",
},
{
time: "11:00 - 11:30",
title: "Opening ceremony",
description: "Get to know the schedule and hear a 5-minute pitch from each track partner.",
},
{
time: "11:30 - 12:30",
... | start-hackathon | src/features/marketing/content.ts | TypeScript | 6c136092e1dafae1f354ae868a635f1e15239ea47870f5f8ea009da99cc50eef | 6 | 896 |
com",
},
{ name: "fonio.ai", logo: "/partners/fonio.png", website: "https://www.fonio.ai/de" },
{ name: "techbold", logo: "/partners/techbold.png", website: "https://www.techbold.at" },
{
name: "Home of Innovation",
logo: "/partners/hoiv.webp",
website: "https://homeofinnovationx.com",
},
{ name... | start-hackathon | src/features/marketing/content.ts | TypeScript | dbbab2ad2328e684fc0d5849271923158b3cc6d9429f2be2d5a97ba66404848a | 7 | 454 |
import Image from "next/image";
import type { ComponentPropsWithoutRef } from "react";
import { cn } from "@/lib/utils";
export function LogoStartHack({ className, ...props }: ComponentPropsWithoutRef<"div">) {
return (
<div className={cn("flex items-center gap-1", className)} {...props}>
<Image
s... | start-hackathon | src/features/marketing/icons.tsx | TypeScript | 3a89d764f065256ff50f9911711c9349162f3413ef87dfea387871622fef4f13 | 0 | 161 |
import Image from "next/image";
import Link from "next/link";
import { DISCORD_URL } from "@/features/marketing/content";
export function CtaSection() {
return (
<section id="apply" className="pb-12">
<div className="container mx-auto max-w-5xl px-5">
<div className="bg-announcement rounded-3xl">
... | start-hackathon | src/features/marketing/sections/cta-section.tsx | TypeScript | 869b42ae2ac1f27f1ffd5bcdd126495f772bfda5aa6a0d54ae7b8371ed189b79 | 0 | 526 |
import {
ChampionIcon,
Dollar01Icon,
LanguageSkillIcon,
Ticket01Icon,
UserGroupIcon,
UserQuestion02Icon,
} from "hugeicons-react";
type Feature = {
title: string;
description: string;
icon: React.ReactNode;
};
const features: Feature[] = [
{
title: "Who can apply?",
description: "Builders,... | start-hackathon | src/features/marketing/sections/grid-features.tsx | TypeScript | b977517611215fb8d8a5d574fd8a91b64896728ac47a18c1c4b010f8f4c87516 | 0 | 565 |
import Link from "next/link";
import { EVENT } from "@/features/marketing/config";
import { DISCORD_URL } from "@/features/marketing/content";
export function Hero() {
return (
<section className="pt-10 pb-8 lg:pt-16 lg:pb-10">
<div className="container mx-auto flex w-full max-w-2xl flex-col items-center ... | start-hackathon | src/features/marketing/sections/hero.tsx | TypeScript | 1e7cec020013683f2f68b5b03a648fc6da5c3e456c18976777579884d5e621e7 | 0 | 424 |
import Image from "next/image";
type Host = {
name: string;
role: string;
handle?: string;
href?: string;
bg: string;
image: string;
};
const hosts: Host[] = [
{
name: "Dániel Sydó",
role: "Co-organizer",
bg: "bg-blue-3",
image: "/organizers/sydo_daniel.jpg",
},
{
name: "Abdul Ba... | start-hackathon | src/features/marketing/sections/hosts.tsx | TypeScript | bb392aefc480c57d5c37fa62da6c1fd9c91b5d861fc25e903c50c40b2daab81c | 0 | 707 |
import Image from "next/image";
import Link from "next/link";
import { Marquee } from "@/components/ui/marquee";
import { sponsors } from "@/features/marketing/content";
export function PartnerMarquee() {
return (
<section id="sponsors" className="py-8 lg:py-10">
<div className="container mx-auto max-w-5x... | start-hackathon | src/features/marketing/sections/partner-marquee.tsx | TypeScript | a871a03c40b9cee096636d67f5f1c3bc8423b22a101e902ba07582b101dd1e88 | 0 | 395 |
/** biome-ignore-all lint/a11y/noSvgWithoutTitle: <explanation> */
"use client";
import { ArrowDown01Icon } from "hugeicons-react";
import Link from "next/link";
import { useState } from "react";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuLinkItem,
DropdownMenuPortal,
DropdownMenuPositioner,
... | start-hackathon | src/features/marketing/sections/site-header.tsx | TypeScript | 77cb0d53d5808a2a424b700c2e038ca90e3a9e5ea2da223dff196168c40c9d96 | 0 | 896 |
-3 transition-colors"
>
{link.label}
</Link>
}
/>
{link.label === "Tracks" && (
<div className="border-secondary ml-3 grid border-l pl-3">
... | start-hackathon | src/features/marketing/sections/site-header.tsx | TypeScript | 6919ea6d1172812ef7334ba8da7196f11cbdca2688bdeed70b7e957838df3baf | 1 | 784 |
import { Badge } from "@/components/ui/badge";
import { type ScheduleDay, scheduleDays } from "@/features/marketing/content";
import { cn } from "@/lib/utils";
export function Timeline() {
return (
<section id="schedule" className="py-14 lg:py-24">
<div className="container mx-auto max-w-5xl px-5">
... | start-hackathon | src/features/marketing/sections/timeline.tsx | TypeScript | 04a41a805096aa9b682efc9ce93c994ce737bfc80429ccaf4ec6a23b1143ef40 | 0 | 896 |
date}</div>
</div>
<div className="border-border my-auto mt-3 flex h-full flex-col justify-center border-t p-5">
<h4 className="h4">{item.title}</h4>
<p className="b2 text-muted-foreground mt-2">{item.description}</p>
</div>
</article... | start-hackathon | src/features/marketing/sections/timeline.tsx | TypeScript | e9a8aab39d075af8bc80cbc8d808bd0e06545d0a60e3bbfcc59a0de19de2f476 | 1 | 110 |
import Image from "next/image";
import Link from "next/link";
import { DISCORD_URL, sharedMentors, type TrackDetail, tracks } from "@/features/marketing/content";
type TrackDetailPageProps = {
track: TrackDetail;
};
export function TrackDetailPage({ track }: TrackDetailPageProps) {
const trackCard = tracks.find(... | start-hackathon | src/features/marketing/sections/track-detail-page.tsx | TypeScript | cf391cfc9e00217bde4abf68dda80606153b182c2be1938a9dcc398ad3f5c8c2 | 0 | 896 |
{track.challenge.requirementsTitle}
items={track.challenge.requirements}
/>
{track.judging && (
<TrackList
eyebrow="Judging"
title="How this track is scored"
items={track.judging.map(
(criterion) =>
... | start-hackathon | src/features/marketing/sections/track-detail-page.tsx | TypeScript | 3224cf4ecc610761c0d60a7e817fd1b57d47d155a1f64bb0454e2bc160c8ca6e | 1 | 569 |
import { ArrowRight01Icon } from "hugeicons-react";
import Image from "next/image";
import Link from "next/link";
import { type MarketingTrack, tracks } from "@/features/marketing/content";
import { cn } from "@/lib/utils";
const onboardingTrack = tracks.find((track) => track.kind === "onboarding");
const buildTracks... | start-hackathon | src/features/marketing/sections/tracks-section.tsx | TypeScript | 553461012c869a3c3a3289c0f180ef7c25e6d4f56d3fba1163e3c5089904c053 | 0 | 896 |
-foreground mt-3", isFeatured ? "b2" : "b3")}>
{track.summary}
</p>
<div className="mt-auto pt-6">
{track.href ? (
<span className="b2 text-foreground inline-flex items-center gap-1 align-middle font-medium">
<span className="flex items-center">
... | start-hackathon | src/features/marketing/sections/tracks-section.tsx | TypeScript | d3431546e92c291e604f5da6f6a3ad947dc12831028b534964620b654b88c904 | 1 | 407 |
import Image from "next/image";
type Feature = {
title: string;
body: string;
icon: string;
};
const features: Feature[] = [
{
title: "Real challenges from real companies",
body: "Five case partners bring problems they actually want solved. Pick your case, get matched with a team, build for 24 hours."... | start-hackathon | src/features/marketing/sections/value-props.tsx | TypeScript | 18c97dd76186890618d49c1454c51678175e2d888b0463f0c4b46e1c2070a28b | 0 | 722 |
# editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true | synth-ui | .editorconfig | EditorConfig | 5b8f2b807a32e309dc84bef9ba045828abe4bd8cf666c9a43f27557cb0a68263 | 0 | 30 |
{
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"extends": [
"next/core-web-vitals",
"turbo",
"prettier",
"plugin:tailwindcss/recommended"
],
"plugins": ["tailwindcss"],
"ignorePatterns": ["**/fixtures/**"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
... | synth-ui | .eslintrc.json | JSON | 3a13eb092a68b82a1ccf50105120571d1cb0927f11fd6d1bcf3eba3b1b7673e5 | 0 | 233 |
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
node_modules
.pnp
.pnp.js
# testing
coverage
# next.js
.next/
out/
build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env.local
.env.development... | synth-ui | .gitignore | Git Ignore | 4e2b00e348291b2b4cc857b1bd4196816ac70f75681adec49f6ba3937f3ccd8c | 0 | 123 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.