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 |
|---|---|---|---|---|---|---|
dataStream.write({
type: "data-title",
data: title,
transient: true,
});
dataStream.write({
type: "data-clear",
data: null,
transient: true,
});
const documentHandler = documentHandlersByArtifactKind.find(
(handler) ... | ifg-agentic | lib/ai/tools/documents/create-document.ts | TypeScript | d73f3c493be046d03b005b1efcb4fb782efc24ba3db9da0c0acacfb414f2c083 | 1 | 319 |
/**
* Document Tools
*
* Tools for creating, updating, and managing documents and artifacts.
* Handles various types of executable content including Python code,
* data analysis scripts, and visualization tools.
*/
export { createDocument } from './create-document';
export { updateDocument } from './update-docu... | ifg-agentic | lib/ai/tools/documents/index.ts | TypeScript | 80c170c98af938715a310218c87e6045295ea92ce430da12572822335d809c22 | 0 | 81 |
import { tool, type UIMessageStreamWriter } from 'ai';
import type { Session } from 'next-auth';
import { z } from 'zod';
import { getDocumentById } from '@/lib/db/queries';
import { documentHandlersByArtifactKind } from '@/lib/artifacts/server';
import type { ChatMessage } from '@/lib/types';
type UpdateDocumentProps... | ifg-agentic | lib/ai/tools/documents/update-document.ts | TypeScript | b1451428613fbb6c6c336cc7f03703236d28df2575afc92a3fa70c6e1481c6ec | 0 | 581 |
/**
* Reasoning Tools
*
* Tools for displaying structured thinking and reasoning processes
*/
// No tools exported yet
| ifg-agentic | lib/ai/tools/reasoning/index.ts | TypeScript | 1c3355517af57f5aafd95ec50fac2e8020334be4c50ed3527f0f329523a5d396 | 0 | 24 |
import { codeDocumentHandler } from "@/artifacts/code/server";
import type { ArtifactKind } from "@/components/artifact";
import type { Document } from "../db/schema";
import { saveDocument } from "../db/queries";
import type { Session } from "next-auth";
import type { UIMessageStreamWriter } from "ai";
import type { C... | ifg-agentic | lib/artifacts/server.ts | TypeScript | acedc2be5cc2459b39e915b02c4b4d485614e9aec8a215b7d3e38fa0d2d4e8ab | 0 | 650 |
import { config } from "dotenv";
import { drizzle } from "drizzle-orm/postgres-js";
import { migrate } from "drizzle-orm/postgres-js/migrator";
import postgres from "postgres";
config({
path: ".env.local",
});
const runMigrate = async () => {
if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL is n... | ifg-agentic | lib/db/migrate.ts | TypeScript | 9324bd13fd7d381ba271a3e28629c69ca81cbd820f09efdf9f467341ac19cd02 | 0 | 172 |
(1);
if (!selectedChat) {
throw new ChatSDKError(
"not_found:database",
`Chat with id ${startingAfter} not found`
);
}
filteredChats = await query(gt(chat.createdAt, selectedChat.createdAt));
} else if (endingBefore) {
const [selectedChat] = await db
... | ifg-agentic | lib/db/queries.ts | TypeScript | c7da5372f773226afb39ed0d8116ce16b4138d59d0cf11cdc61c01c0860b2c01 | 1 | 896 |
update lastContext for chat
return;
}
}
export async function getMessageCountByUserId({
id,
differenceInHours,
}: {
id: string;
differenceInHours: number;
}) {
try {
const twentyFourHoursAgo = new Date(
Date.now() - differenceInHours * 60 * 60 * 1000
);
const [stats] = await db
... | ifg-agentic | lib/db/queries.ts | TypeScript | e8f5987db3bc35f152ff54daf28f847a50f511ed899779d56fb354a03d4f0397 | 3 | 366 |
;
export const document = pgTable(
"Document",
{
id: uuid("id").notNull().defaultRandom(),
createdAt: timestamp("createdAt").notNull(),
title: text("title").notNull(),
content: text("content"),
kind: varchar("text", { enum: ["code", "sheet"] })
.notNull()
.default("code"),
userI... | ifg-agentic | lib/db/schema.ts | TypeScript | fee0f8f8e316a1a82a210e79924d8ecb9b1be6791c63f4ca4872d250776accbd | 1 | 496 |
ALTER TABLE "Document" ALTER COLUMN "text" SET DEFAULT 'code'; | ifg-agentic | lib/db/migrations/0007_flippant_gargoyle.sql | SQL | c33754b6ca1721d10ee3fe0d208b38e976ac9adb2dc97ff516043d229f5626c0 | 0 | 16 |
ALTER TABLE "Document" ALTER COLUMN "text" SET DEFAULT 'text'; | ifg-agentic | lib/db/migrations/0008_common_trish_tilby.sql | SQL | b399f30a2d07f7a0095bffe6c8bb1d2a3bb2297cefca37c2a42ef0b060653a2c | 0 | 16 |
import { relations } from "drizzle-orm/relations";
import { user, suggestion, document, chat, message, messageV2, stream, vote, voteV2 } from "./schema";
export const suggestionRelations = relations(suggestion, ({one}) => ({
user: one(user, {
fields: [suggestion.userId],
references: [user.id]
}),
document: one(... | ifg-agentic | lib/db/migrations/relations.ts | TypeScript | 998c3e2bb33c776bd4c4a7462e18179ee02e67a6707077cc1bc5183022f14854 | 0 | 589 |
import { pgTable, uuid, varchar, foreignKey, timestamp, text, boolean, json, primaryKey } from "drizzle-orm/pg-core"
export const user = pgTable("User", {
id: uuid().defaultRandom().primaryKey().notNull(),
email: varchar({ length: 64 }).notNull(),
password: varchar({ length: 64 }),
});
export const suggestion =... | ifg-agentic | lib/db/migrations/schema.ts | TypeScript | 042e5e514ad12dc433fb777718b08de5390d8bf8e90af7eab28944ccbc345bd5 | 0 | 896 |
chat.id],
name: "Vote_chatId_Chat_id_fk"
}),
voteMessageIdMessageIdFk: foreignKey({
columns: [table.messageId],
foreignColumns: [message.id],
name: "Vote_messageId_Message_id_fk"
}),
voteChatIdMessageIdPk: primaryKey({ columns: [table.chatId, table.messageId], name: "Vote_chatId_messageId_pk"}),
}
... | ifg-agentic | lib/db/migrations/schema.ts | TypeScript | 7d4a8073e455e48eaa7405447e9583e7940d1b210786f1a49c930df8e728d2bd | 1 | 362 |
{
"id": "91cb36a8-6bbb-4911-a97d-19cb5e5cf2f1",
"prevId": "2b1a3138-5480-4269-b91f-90d92cc90a35",
"version": "7",
"dialect": "postgresql",
"tables": {
"public.Chat": {
"name": "Chat",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "uuid",
"... | ifg-agentic | lib/db/migrations/meta/0008_snapshot.json | JSON | ecce9497f127b972c894707654ca75aa475d0037c5eddd26fd970565aa8990a9 | 0 | 896 |
{
"version": "7",
"dialect": "postgresql",
"entries": [
{
"idx": 0,
"version": "7",
"when": 1728598022383,
"tag": "0000_keen_devos",
"breakpoints": true
},
{
"idx": 1,
"version": "7",
"when": 1730207363999,
"tag": "0001_sparkling_blue_marvel",
... | ifg-agentic | lib/db/migrations/meta/_journal.json | JSON | 545da39a8a46a8fe3bd7bcdfb85f54250238b820b73f1c669f42d45bc29b85c0 | 0 | 393 |
// Modified from https://github.com/hamflx/prosemirror-diff/blob/master/src/diff.js
import { diff_match_patch } from 'diff-match-patch';
import { Fragment, Node } from 'prosemirror-model';
export const DiffType = {
Unchanged: 0,
Deleted: -1,
Inserted: 1,
};
export const patchDocumentNode = (schema, oldNode, ne... | ifg-agentic | lib/editor/diff.js | JavaScript | 6248407040ddff6ef29f3fce6da6050f923b17077ebb8980d83bd3fd36b2cbdb | 0 | 896 |
"use client";
import { defaultMarkdownSerializer } from "prosemirror-markdown";
import { DOMParser, type Node } from "prosemirror-model";
import { Decoration, DecorationSet, type EditorView } from "prosemirror-view";
import { renderToString } from "react-dom/server";
import { Response } from "@/components/elements/re... | ifg-agentic | lib/editor/functions.tsx | TypeScript | ba01209e07f2d0319e66c6fa54b810d1a3b0f4759307a79109676326d9e6b84c | 0 | 361 |
// TypeScript schemas for Austrian data request system (IFG, IWG, DZG)
// Based on fragdenstaat.gv.at concept
export type RequestType = "IFG" | "IWG" | "DZG";
export type BaseRequestData = {
id: string;
type: RequestType;
title: string;
description: string;
requesterInfo: RequesterInfo;
timeline: Timeline... | ifg-agentic | lib/types/data-request.ts | TypeScript | 59759ffbd898c423a9d711ca0e07c9fc48a08f187e25cfee38709e20cc8c8c3f | 0 | 896 |
university"
| "research_institute"
| "private_company"
| "ngo"
| "government";
};
export type EthicsApproval = {
obtained: boolean;
committee: string;
approvalNumber?: string;
approvalDate?: Date;
conditions?: string[];
};
export type DataRetention = {
period: number; // in years
disposalMethod:... | ifg-agentic | lib/types/data-request.ts | TypeScript | 3395fb4f1e3c88619be12e0a2f8650f59fefd1ed3a2771ab869338ab3de592e9 | 1 | 844 |
import { expect as baseExpect, test as baseTest } from '@playwright/test';
import { createAuthenticatedContext, type UserContext } from './helpers';
import { getUnixTime } from 'date-fns';
type Fixtures = {
adaContext: UserContext;
babbageContext: UserContext;
curieContext: UserContext;
};
export const test = b... | ifg-agentic | tests/fixtures.ts | TypeScript | 785b0ab53041d008ed54de1c30ecedd46aff6bfc885fa23b33050e1f89b398d8 | 0 | 336 |
import fs from 'node:fs';
import path from 'node:path';
import {
type APIRequestContext,
type Browser,
type BrowserContext,
expect,
type Page,
} from '@playwright/test';
import { generateId } from 'ai';
import { ChatPage } from './pages/chat';
import { getUnixTime } from 'date-fns';
export type UserContext =... | ifg-agentic | tests/helpers.ts | TypeScript | f91bd9b08fd633212a2ae8bf61e5e83f047899de9878aeafad916a7d150691c0 | 0 | 570 |
import { expect, test } from '../fixtures';
import { ChatPage } from '../pages/chat';
import { ArtifactPage } from '../pages/artifact';
test.describe('Artifacts activity', () => {
let chatPage: ChatPage;
let artifactPage: ArtifactPage;
test.beforeEach(async ({ page }) => {
chatPage = new ChatPage(page);
... | ifg-agentic | tests/e2e/artifacts.test.ts | TypeScript | ef78fcfa38c1664b61d82a75c60460a85b1b4e8d496728b72c13f39f505b9151 | 0 | 488 |
import { ChatPage } from '../pages/chat';
import { test, expect } from '../fixtures';
test.describe('Chat activity', () => {
let chatPage: ChatPage;
test.beforeEach(async ({ page }) => {
chatPage = new ChatPage(page);
await chatPage.createNewChat();
});
test('Send a user message and receive response'... | ifg-agentic | tests/e2e/chat.test.ts | TypeScript | 91fa542c8034357fe05879b0517da83dc8605ff1d86669b5722d1530ea2129db | 0 | 896 |
weather in sf?");
await chatPage.isGenerationComplete();
const assistantMessage = await chatPage.getRecentAssistantMessage();
expect(assistantMessage.content).toBe(
'The current temperature in San Francisco is 17°C.',
);
});
test('Upvote message', async () => {
await chatPage.sendUserMe... | ifg-agentic | tests/e2e/chat.test.ts | TypeScript | fa5380836b423411abaab77381f9e3c3f025accee887c09d244d831d0d7c6972 | 1 | 538 |
import { ChatPage } from '../pages/chat';
import { test, expect } from '../fixtures';
test.describe('chat activity with reasoning', () => {
let chatPage: ChatPage;
test.beforeEach(async ({ curieContext }) => {
chatPage = new ChatPage(curieContext.page);
await chatPage.createNewChat();
});
test('Curie... | ifg-agentic | tests/e2e/reasoning.test.ts | TypeScript | 4935dfe04b394386a3d5a8bbf0c42337661595bbbfafe3a6660b92d48c405db4 | 0 | 455 |
import { expect, test } from '../fixtures';
import { AuthPage } from '../pages/auth';
import { generateRandomTestUser } from '../helpers';
import { ChatPage } from '../pages/chat';
import { getMessageByErrorCode } from '@/lib/errors';
test.describe
.serial('Guest Session', () => {
test('Authenticate as guest use... | ifg-agentic | tests/e2e/session.test.ts | TypeScript | 78ef1be124256e43a47622924874a2ba957bcb87a5fbbd633860a3adaf6a3742 | 0 | 896 |
');
});
test('Register new account with existing email', async () => {
await authPage.register(testUser.email, testUser.password);
await authPage.expectToastToContain('Account already exists!');
});
test('Log into account that exists', async ({ page }) => {
await authPage.login(testU... | ifg-agentic | tests/e2e/session.test.ts | TypeScript | ddea28cf5cb91e135e43acec33de6e642bc017f281d2bd2db26c53c544dcf5f3 | 1 | 845 |
import type { Page } from '@playwright/test';
import { expect } from '../fixtures';
export class AuthPage {
constructor(private readonly page: Page) {}
async gotoLogin() {
await this.page.goto('/login');
await expect(this.page.getByRole('heading')).toContainText('Sign In');
}
async gotoRegister() {
... | ifg-agentic | tests/pages/auth.ts | TypeScript | 4acb2ca15608d323793a426078562be823e1dfeefcb43fbe3d6fc22d4352d4e9 | 0 | 597 |
import fs from 'node:fs';
import path from 'node:path';
import { chatModels } from '@/lib/ai/models';
import { expect, type Page } from '@playwright/test';
const CHAT_URL_REGEX = /^http:\/\/localhost:3000\/chat\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
export class ChatPage {
constructor(priv... | ifg-agentic | tests/pages/chat.ts | TypeScript | bbf99cfe06a26327b6e9026c88fa9bd3c0a670b3d1f923fc6261d50d9e0b210e | 0 | 896 |
await this.page.getByTestId('visibility-selector').click();
await this.page
.getByTestId(`visibility-selector-item-${chatVisibility}`)
.click();
expect(await this.getSelectedVisibility()).toBe(chatVisibility);
}
async getRecentAssistantMessage() {
const messageElements = await this.page
... | ifg-agentic | tests/pages/chat.ts | TypeScript | 3887dc8b0cb7e563a0da84ea8ffac00e9aed0884fb576168e990e5b8539555c3 | 1 | 807 |
import type { ModelMessage } from 'ai';
export const TEST_PROMPTS: Record<string, ModelMessage> = {
USER_SKY: {
role: 'user',
content: [{ type: 'text', text: 'Why is the sky blue?' }],
},
USER_GRASS: {
role: 'user',
content: [{ type: 'text', text: 'Why is grass green?' }],
},
USER_THANKS: {
... | ifg-agentic | tests/prompts/basic.ts | TypeScript | ad7df3dec06ffe2971f08857bc1e2f39218c7d0ab41d246b05d750ad1f98b988 | 0 | 834 |
import { generateUUID } from '@/lib/utils';
export const TEST_PROMPTS = {
SKY: {
MESSAGE: {
id: generateUUID(),
createdAt: new Date().toISOString(),
role: 'user',
content: 'Why is the sky blue?',
parts: [{ type: 'text', text: 'Why is the sky blue?' }],
},
OUTPUT_STREAM: [
... | ifg-agentic | tests/prompts/routes.ts | TypeScript | b2e94d0326541ae44c3c2c246b1be409a0d4600b85403deef6480111ac3c3b6a | 0 | 630 |
import { generateId, type ModelMessage } from 'ai';
import { TEST_PROMPTS } from './basic';
import type { LanguageModelV2StreamPart } from '@ai-sdk/provider';
export function compareMessages(
firstMessage: ModelMessage,
secondMessage: ModelMessage,
): boolean {
if (firstMessage.role !== secondMessage.role) { ret... | ifg-agentic | tests/prompts/utils.ts | TypeScript | a117bbc51664fcddbf6f1183a91513f537d823ef85b0d1ab33215e2191ce6d23 | 0 | 896 |
;
}if (compareMessages(recentMessage, TEST_PROMPTS.USER_GRASS)) {
return [
...textToDeltas("It's just green duh!"),
{
type: 'finish',
finishReason: 'stop',
usage: { inputTokens: 3, outputTokens: 10, totalTokens: 13 },
},
];
}if (compareMessages(recentMessage, TEST_P... | ifg-agentic | tests/prompts/utils.ts | TypeScript | b1c07f82fa372fe82e5a2d1ca217f1cb25c1226da3d8b82f342664ca19095e0f | 1 | 896 |
'tool-call',
toolCallId: 'call_456',
toolName: 'getWeather',
input: JSON.stringify({ latitude: 37.7749, longitude: -122.4194 }),
},
{
type: 'finish',
finishReason: 'stop',
usage: { inputTokens: 3, outputTokens: 10, totalTokens: 13 },
},
];
}if (com... | ifg-agentic | tests/prompts/utils.ts | TypeScript | 897f63d27ca9590c8c40add76221f6769226cf97f558bdcf8c5d44837b00052d | 2 | 170 |
import { generateUUID } from '@/lib/utils';
import { expect, test } from '../fixtures';
import { TEST_PROMPTS } from '../prompts/routes';
import { getMessageByErrorCode } from '@/lib/errors';
const chatIdsCreatedByAda: string[] = [];
// Helper function to normalize stream data for comparison
function normalizeStreamD... | ifg-agentic | tests/routes/chat.test.ts | TypeScript | a89439fbb63081cc77858c2e2cd2ec85f34d9e53473925676330b89ab59e2b88 | 0 | 896 |
chat?id=${chatId}`,
);
expect(response.status()).toBe(200);
const deletedChat = await response.json();
expect(deletedChat).toMatchObject({ id: chatId });
});
test('Ada cannot resume stream of chat that does not exist', async ({
adaContext,
}) => {
const response = await... | ifg-agentic | tests/routes/chat.test.ts | TypeScript | 4c6554b5be86dcaed92a4ea0e916b490e5f43de8c839d5516537323ddac5f365 | 1 | 896 |
selectedChatModel: 'google/gemini-2.5-pro',
selectedVisibilityType: 'private',
},
});
const firstStatusCode = firstResponse.status();
expect(firstStatusCode).toBe(200);
await firstResponse.text();
await new Promise((resolve) => setTimeout(resolve, 15 * 1000));
awa... | ifg-agentic | tests/routes/chat.test.ts | TypeScript | 48ba87a610990606d493f9676ef67124740a308804a15f99bc9465fde47c198f | 2 | 730 |
import type { Document } from '@/lib/db/schema';
import { generateUUID } from '@/lib/utils';
import { expect, test } from '../fixtures';
import { getMessageByErrorCode } from '@/lib/errors';
const documentsCreatedByAda: Document[] = [];
test.describe
.serial('/api/document', () => {
test('Ada cannot retrieve a ... | ifg-agentic | tests/routes/document.test.ts | TypeScript | d8c0f72de8ff4af8a8df71baef3f77b90a70745c3f2f427f8bcb11ff29782e8b | 0 | 896 |
{
const response = await adaContext.request.delete("/api/document");
expect(response.status()).toBe(400);
const { code, message } = await response.json();
expect(code).toEqual('bad_request:api');
expect(message).toEqual(getMessageByErrorCode(code));
});
test('Ada cannot delete a ... | ifg-agentic | tests/routes/document.test.ts | TypeScript | ddcfa20ffbc1d280bc7cde3d58120a6366152e64dad52b8e5f2bfc2ec3486fe1 | 1 | 677 |
<html>
<head>
<meta charset="UTF-8">
<title>Illegale Straßenrennen</title>
<style>
@font-face {
font-family: Proxima;
src: url('./fonts/proxima_nova.otf');
}
a {
color: #E6E6E6;
text-decoratio... | Illegale_Strassenrennen-Webprojekt | autos.html | HTML | fde79c3135b8e3dfe4237cb93fcd03438f75d37d0d0479162b4581d10a968776 | 0 | 896 |
Autos für Straßenrennen</h3>
<p><i>Klicke auf Pfeile um das Bild zu welchseln</i></p>
<br>
</div>
</div>
</div>
<!--Slideshow-->
<div class="slideshow-container" style="margin-top: 1%;">
<div class="mySlide... | Illegale_Strassenrennen-Webprojekt | autos.html | HTML | 1288c22f240f12b916e1948bfa73b18566fd141f9b0486da7d1a8e3ba57a80ba | 1 | 896 |
span class="dot" onclick="currentSlide(2)"></span>
<span class="dot" onclick="currentSlide(3)"></span>
<span class="dot" onclick="currentSlide(4)"></span>
<span class="dot" onclick="currentSlide(5)"></span>
<span class="dot" onclick="currentSlide(6)"><... | Illegale_Strassenrennen-Webprojekt | autos.html | HTML | 293f27a0f6d2f2a3b28980c10686bbe98447e760fc4cb8b3a0d115501375f7cd | 2 | 195 |
tlichen Unfall.
</p>
</div>
<br>
<div style="color: #E6E6E6; font-family: Proxima;">
<h3>Die bekannstesten Autos für Straßenrennen</h3>
<ol>
<li>Nissan Skyline R34</li>
... | Illegale_Strassenrennen-Webprojekt | index.html | HTML | d15941cd684ba01808c060cc1cfcdcd896b0c44536da2c50faf9cea3d15022f3 | 1 | 414 |
<html>
<head>
<meta charset="UTF-8">
<title>Illegale Straßenrennen</title>
<style>
@font-face {
font-family: Proxima;
src: url('./fonts/proxima_nova.otf');
}
a {
color: #E6E6E6;
text-decoratio... | Illegale_Strassenrennen-Webprojekt | preisgelder.html | HTML | a274912aeb13801e29bab011b4efd61d081cb16f365fb0943c980ab0a09f78cf | 0 | 780 |
@font-face {
font-family: Proxima;
src: url('/fonts/proxima_nova.otf');
}
footer{
margin-top: 5%;
position: relative;
background: #0E1923;
height: auto;
width: 100%;
font-family: Proxima;
color: #E6E6E6;
overflow: hidden;
}
.footer-content{
display: block;
flex-direct... | Illegale_Strassenrennen-Webprojekt | css/footer.css | CSS | 7b5f560f3c7d5acd65aeacedfdf13ab33691a9053233c8826789698ece08df06 | 0 | 351 |
* {box-sizing:border-box}
.slideshow-container {
max-width: 1100;
position: relative;
margin: auto;
top: -100;
left: 75;
}
.mySlides {
display: none;
}
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -22px;
padding: 16px;
colo... | Illegale_Strassenrennen-Webprojekt | css/slideshow.css | CSS | 5d3cf6d27904f3c023969c77e8365c5f68294409a552d04f35911b58a5abb3a7 | 0 | 393 |
var slideIndex = 1;
showSlides(slideIndex);
function plusSlides(n) {
showSlides(slideIndex += n);
}
function currentSlide(n) {
showSlides(slideIndex = n);
}
function showSlides(n) {
var i;
var slides = document.getElementsByClassName("mySlides");
var dots = document.getElementsByClassName("dot");... | Illegale_Strassenrennen-Webprojekt | javascript/slideshow.js | JavaScript | d1e31fd425f8e0b67df98218d5614b742ef463d634975d3c597b3304b0903fe3 | 0 | 201 |
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# Dependencies
node_modules
.pnp
.pnp.js
# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
# Testing
coverage
# Turbo
.turbo
# Vercel
.vercel
# Build Outputs
.next/
out/
build
dist
... | interiorly | .gitignore | Git Ignore | 3c9a72047d22b54610fe515162b759d86e061c7919d963b77910c414b1cebccd | 0 | 127 |
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"extends": ["ultracite"],
"javascript": {
"globals": ["Liveblocks"]
},
"files": {
"ignore": [
"packages/design-system/components/ui/**",
"packages/design-system/lib/**",
"packages/design-system/hooks/**",
"packages/c... | interiorly | biome.json | JSON | 6cff22256cf35d5d6284e93aafaaf7cc3cc6d1b08851574e57724df95ab979cc | 0 | 142 |
{
"name": "interiorly",
"version": "2.0.2",
"bin": {
"next-forge": "scripts/init.mjs"
},
"files": ["scripts/init.mjs"],
"scripts": {
"build": "turbo build",
"dev": "turbo dev",
"lint": "ultracite lint",
"format": "ultracite format",
"test": "turbo test",
"analyze": "turbo analyze... | interiorly | package.json | JSON | bf19978ab77d0f84f6f59f6768a444162a10f8429feca388116fcaa9decc177d | 0 | 385 |
packages:
- "apps/*"
- "packages/*"
| interiorly | pnpm-workspace.yaml | YAML | 08d75840c97ab0e72d1d9b5b84a17e47a2e06cb159a5fbec5ee0a6a56682dad7 | 0 | 14 |
<p align="center">
<h1 align="center"><b>Interiorly</b></h1>
<p align="center">
Collaborative Real-Time Interior Design
<br />
<br />
<a href="https://demo.interiorly.dev">Demo</a>
·
<a href="https://interiorly.dev">Website</a>
·
<a href="https://github.com/interiorly/interiorly/issues"... | interiorly | README.md | Markdown | a597edbcff6b3dab1feb75fc0681876a0a907bc35a65096bf28b4dc02371cca9 | 0 | 448 |
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"ui": "tui",
"envMode": "loose",
"tasks": {
"build": {
"dependsOn": ["^build", "test"],
"outputs": [".next/**", "!.next/cache/**"]
},
"test": {
"dependsOn": ["^test"]
},
"analyze": {... | interiorly | turbo.json | JSON | 707769d786a184168abb94426667e43a1f6fe3c20268bf68032b0b61b984b5fd | 0 | 184 |
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of... | interiorly | .github/CODE_OF_CONDUCT.md | Markdown | 928609819d7061429e801de02c71c86de1f49dfc406b5ebf400d2dff0cdee100 | 0 | 896 |
at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see... | interiorly | .github/CODE_OF_CONDUCT.md | Markdown | a3ec830c2e6c642316645103a3e38373fe3cd84b6a0a43645389fd44c9aefb4e | 1 | 115 |
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
open-pull-requests-limit: 10
schedule:
interval: "monthly"
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
open-pull-requests-limit: 10
sc... | interiorly | .github/dependabot.yml | YAML | 4ea7c5cbdd18b4025dd46b0fd37d7d8822fee2a9f734f512e134e4a2934fd78b | 0 | 76 |
## Description
Please provide a brief description of the changes introduced in this pull request.
## Related Issues
Closes #<issue_number>
## Checklist
- [ ] My code follows the code style of this project.
- [ ] I have performed a self-review of my code.
- [ ] I have commented my code, particularly in hard-to-unde... | interiorly | .github/pull_request_template.md | Markdown | e9cb9445059309bd83e37a7806a4e1ee18c338ab27ff30fdd198eb16a6309a57 | 0 | 172 |
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**next-forge version**
I am using version ...
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll ... | interiorly | .github/ISSUE_TEMPLATE/bug_report.md | Markdown | 38e192609fdaca15ae441ef6d034bbc442ac21f88d0319751dc3a25727ee2da1 | 0 | 178 |
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clea... | interiorly | .github/ISSUE_TEMPLATE/feature_request.md | Markdown | a741c5d9702b338fd6cb33bf9152b6d0929377553be775725c782e82d620360c | 0 | 118 |
{
"recommendations": [
"biomejs.biome",
"bradlc.vscode-tailwindcss",
"Prisma.prisma",
"unifiedjs.vscode-mdx",
"mikestead.dotenv",
"christian-kohler.npm-intellisense"
]
}
| interiorly | .vscode/extensions.json | JSON | 83162e2f05590ae61e9ec9aec7772c33599b6a9b5534738da15f8de9d49ce86b | 0 | 51 |
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "pnpm dev"
},
{
"name": "Next.js: debug client-side (app)",
"type": "chrome",
"request": "launch",
"url": "http://loc... | interiorly | .vscode/launch.json | JSON | 249274401ba69dae7206cdb21b1b5b85e2d70e380e384467ffa13393a5b8efad | 0 | 499 |
{
"[javascript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"editor.defa... | interiorly | .vscode/settings.json | JSON | 5c1ffb3226639e840bc87119f74f10d2b9b497fb1ce1e294532f6b84789449a4 | 0 | 213 |
# 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/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
# local env files
.env*.l... | interiorly | apps/api/.gitignore | Git Ignore | fead1fff2c0782bf7481d9a5a83fa05210f9d1569a1803722d5768cb7b63fb88 | 0 | 129 |
import { keys as analytics } from '@interiorly/analytics/keys';
import { keys as auth } from '@interiorly/auth/keys';
import { keys as database } from '@interiorly/database/keys';
import { keys as email } from '@interiorly/email/keys';
import { keys as core } from '@interiorly/next-config/keys';
import { keys as observ... | interiorly | apps/api/env.ts | TypeScript | f1ea04386ee855992ce9e6e6c2ea0abf0bd68606abca7ee090ccf5c879fdcf1f | 0 | 188 |
import { initializeSentry } from '@interiorly/observability/instrumentation';
export const register = initializeSentry();
| interiorly | apps/api/instrumentation.ts | TypeScript | 4d435ba0d3c36f0abbdd85f1893b0a6941ec42a768e6fdfa3d173603b59e5031 | 0 | 22 |
import { env } from '@/env';
import { config, withAnalyzer } from '@interiorly/next-config';
import { withLogtail, withSentry } from '@interiorly/observability/next-config';
import type { NextConfig } from 'next';
let nextConfig: NextConfig = withLogtail({ ...config });
if (env.VERCEL) {
nextConfig = withSentry(nex... | interiorly | apps/api/next.config.ts | TypeScript | 001bf41ec2d62afa50176106c1556478ab57c91da44e38c60077cec45892e151 | 0 | 110 |
{
"name": "api",
"private": true,
"scripts": {
"dev": "concurrently \"pnpm:next\" \"pnpm:stripe\"",
"next": "next dev -p 3002 --turbopack",
"build": "next build",
"start": "next start",
"analyze": "ANALYZE=true pnpm build",
"stripe": "stripe listen --forward-to localhost:3002/webhooks/stri... | interiorly | apps/api/package.json | JSON | 699240b0369f2ed0688cbf866878b0f059bcd16df4ea3f070d035532ff1a249c | 0 | 412 |
import { initializeSentry } from '@interiorly/observability/client';
initializeSentry();
| interiorly | apps/api/sentry.client.config.ts | TypeScript | e7095fabd042b39ab8fc7dd352cb7f989cce404de6b0ebc5cdf1119644f6a022 | 0 | 18 |
{
"extends": "@interiorly/typescript-config/nextjs.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./*"],
"@interiorly/*": ["../../packages/*"]
}
},
"include": [
"next-env.d.ts",
"next.config.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
]
}
| interiorly | apps/api/tsconfig.json | JSON | 71c70ff90a22b8c1c53d9d674995cb2ae0f2c558bae1aeb9bbd7e4e8cc09290f | 0 | 129 |
{
"crons": [
{
"path": "/cron/keep-alive",
"schedule": "0 1 * * *"
}
]
}
| interiorly | apps/api/vercel.json | JSON | c74eaefdcb6952910831eefba86140f6fd943f800b18801d0abd0010f01793c5 | 0 | 34 |
'use client';
import { Button } from '@interiorly/design-system/components/ui/button';
import { fonts } from '@interiorly/design-system/lib/fonts';
import { captureException } from '@sentry/nextjs';
import type NextError from 'next/error';
import { useEffect } from 'react';
type GlobalErrorProperties = {
readonly e... | interiorly | apps/api/app/global-error.tsx | TypeScript | f9c307a0e78b95a54b9135e4c132f4f034434b180420675f2087c385d5ed079d | 0 | 201 |
import type { ReactNode } from 'react';
type RootLayoutProperties = {
readonly children: ReactNode;
};
const RootLayout = ({ children }: RootLayoutProperties) => (
<html lang="en">
<body>{children}</body>
</html>
);
export default RootLayout;
| interiorly | apps/api/app/layout.tsx | TypeScript | 6224686e18eb168c6e64d9a7e2b1fd3d7167fd898018d937d45e6e68447f738c | 0 | 62 |
export const POST = () => {
return new Response('OK', { status: 200 });
};
| interiorly | apps/api/app/cron/keep-alive/route.ts | TypeScript | d2a01eaa563cfef92f27c2dda1f122e791ed2de58c07fb1d6b19679eb0233ed8 | 0 | 26 |
export const runtime = 'edge';
export const GET = (): Response => new Response('OK', { status: 200 });
| interiorly | apps/api/app/health/route.ts | TypeScript | e5bb7794a2218276ea847a9ff6bf59242a9ce9f758d103a5fca7fb1e746f6462 | 0 | 32 |
import { env } from '@/env';
import { analytics } from '@interiorly/analytics/posthog/server';
import type {
DeletedObjectJSON,
OrganizationJSON,
OrganizationMembershipJSON,
UserJSON,
WebhookEvent,
} from '@interiorly/auth/server';
import { log } from '@interiorly/observability/log';
import { headers } from '... | interiorly | apps/api/app/webhooks/clerk/route.ts | TypeScript | 901e8f8c1784a4cb5b1021cdb8989376a01385aa73f54d1a18930f370530dd1b | 0 | 896 |
headerPayload = await headers();
const svixId = headerPayload.get('svix-id');
const svixTimestamp = headerPayload.get('svix-timestamp');
const svixSignature = headerPayload.get('svix-signature');
// If there are no headers, error out
if (!svixId || !svixTimestamp || !svixSignature) {
return new Response(... | interiorly | apps/api/app/webhooks/clerk/route.ts | TypeScript | 6dbda91d6b1fea9a87061101914b1a5903c54b349e8b0e3e98991ccc0d3d3212 | 1 | 464 |
import { env } from '@/env';
import { analytics } from '@interiorly/analytics/posthog/server';
import { clerkClient } from '@interiorly/auth/server';
import { parseError } from '@interiorly/observability/error';
import { log } from '@interiorly/observability/log';
import { stripe } from '@interiorly/payments';
import t... | interiorly | apps/api/app/webhooks/stripe/route.ts | TypeScript | 04ec8d758acae7f20a6c330a199c0b2141c2a42e409c7990472a5d8a31f7dc50 | 0 | 625 |
import { keys as analytics } from '@interiorly/analytics/keys';
import { keys as auth } from '@interiorly/auth/keys';
import { keys as collaboration } from '@interiorly/collaboration/keys';
import { keys as database } from '@interiorly/database/keys';
import { keys as email } from '@interiorly/email/keys';
import { key... | interiorly | apps/app/env.ts | TypeScript | 95fa3a571c612992ae6287c3464994cbc37da900fee804bba5168b4a78f2c49c | 0 | 250 |
export * from '@interiorly/collaboration/config';
| interiorly | apps/app/liveblocks.config.ts | TypeScript | 6dfc10e9ad986318f0bcb4fc080ad99e92c27b5c60fa5dd98d3b672f56993c68 | 0 | 12 |
import { authMiddleware } from '@interiorly/auth/middleware';
import {
noseconeMiddleware,
noseconeOptions,
noseconeOptionsWithToolbar,
} from '@interiorly/security/middleware';
import type { NextMiddleware } from 'next/server';
import { env } from './env';
const securityHeaders = env.FLAGS_SECRET
? noseconeMi... | interiorly | apps/app/middleware.ts | TypeScript | 399f6f4e14bb49ddb30462be5102bc9db4c5d85310508245b18d4a1baa035c9c | 0 | 207 |
import { env } from '@/env';
import { withToolbar } from '@interiorly/feature-flags/lib/toolbar';
import { config, withAnalyzer } from '@interiorly/next-config';
import { withLogtail, withSentry } from '@interiorly/observability/next-config';
import type { NextConfig } from 'next';
let nextConfig: NextConfig = withToo... | interiorly | apps/app/next.config.ts | TypeScript | 831c06d27289b82beb141f7aaf7e68dbf038d62d8b85757c2044263af7eb32e9 | 0 | 131 |
{
"name": "app",
"private": true,
"scripts": {
"dev": "next dev -p 3000 --turbopack",
"build": "next build",
"start": "next start",
"analyze": "ANALYZE=true pnpm build",
"test": "vitest run",
"clean": "git clean -xdf .cache .turbo dist node_modules",
"typecheck": "tsc --noEmit --emitDe... | interiorly | apps/app/package.json | JSON | 9a2dabbc062cc5c7363b20d188620958c2a7e717515a20e9c55981cb5fee7b2a | 0 | 896 |
.1",
"zod": "^3.24.1",
"zustand": "^5.0.2"
},
"devDependencies": {
"@interiorly/testing": "workspace:*",
"@interiorly/typescript-config": "workspace:*",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@types/node": "22.10.2",
"@types/react": "19.0.6",
"@t... | interiorly | apps/app/package.json | JSON | 31247e2eaf143bdf88bd15d6092c13aa1daa84e0a459f6703c7af389064cfee8 | 1 | 178 |
export { default } from '@interiorly/design-system/postcss.config.mjs';
| interiorly | apps/app/postcss.config.mjs | JavaScript | a1a7cd9a83e51da194e06e5f2c6359124022fc50591dbad0881ab6b2a126048e | 0 | 20 |
export { config as default } from '@interiorly/tailwind-config/config';
| interiorly | apps/app/tailwind.config.ts | TypeScript | 70c7da9bfa0cb1a34fac149456d49c5d24c4cd90a7020efdd5fd84283c9aad7f | 0 | 18 |
export { default } from '@interiorly/testing';
| interiorly | apps/app/vitest.config.ts | TypeScript | 99c60fe5710e5e8ed7e788de116ae1636262b8d2058589125efffc538c13e5a8 | 0 | 12 |
import { test } from 'vitest';
test('Sign In Page', () => {
// TODO: Add tests
});
| interiorly | apps/app/__tests__/sign-in.test.tsx | TypeScript | 76dd834a49beaaceef67340afcd620643953c002a8f91d8f53d715f85e48a57f | 0 | 31 |
import { test } from 'vitest';
test('Sign Up Page', () => {
// TODO: Add tests
});
| interiorly | apps/app/__tests__/sign-up.test.tsx | TypeScript | ef9fdb088d949102fab8d925c1fa24cfd5e01af8178dab9ed442e30115801479 | 0 | 31 |
'use client';
import { Button } from '@interiorly/design-system/components/ui/button';
import { fonts } from '@interiorly/design-system/lib/fonts';
import { captureException } from '@sentry/nextjs';
import type NextError from 'next/error';
import { useEffect } from 'react';
type GlobalErrorProperties = {
readonly er... | interiorly | apps/app/app/global-error.tsx | TypeScript | c0b0e91eb30418a68e9d389df105f32664ae352f564741257204964e236a5021 | 0 | 263 |
import '@interiorly/design-system/styles/globals.css';
import { DesignSystemProvider } from '@interiorly/design-system';
import { Toaster } from '@interiorly/design-system/components/ui/toaster';
import { fonts } from '@interiorly/design-system/lib/fonts';
import { Toolbar } from '@interiorly/feature-flags/components/t... | interiorly | apps/app/app/layout.tsx | TypeScript | c0d4ae1ed615ed41e60aceae6b866186d4cb44c3b3bfd08705c7e9d6668cab1b | 0 | 565 |
const NotFoundPage = () => {
return (
<div className="flex min-h-screen min-w-screen items-center justify-center bg-background">
<h1 className="font-bold text-2xl">Not Found</h1>
</div>
);
};
export default NotFoundPage;
| interiorly | apps/app/app/not-found.tsx | TypeScript | f0c8040816b6596beae09ccd830f99c9cf19ec507e40b91bef2a5e08a2c6dae3 | 0 | 69 |
import { env } from '@/env';
import { auth, currentUser } from '@interiorly/auth/server';
import { secure } from '@interiorly/security';
import { redirect } from 'next/navigation';
import type React from 'react';
import { OrganizationSelector } from '../../components/organization/organization-selector';
interface AppL... | interiorly | apps/app/app/(authenticated)/layout.tsx | TypeScript | aa22aecd9bb1b3be99d73f7b8c7ac9c49c668c190f6ea0eaf5a6ff5fbdd79305 | 0 | 168 |
import { PostHogIdentifier } from '@/components/common/posthog-identifier';
import { QuickSearch } from '@/components/dashboard/quick-search-dialog';
import { GlobalSidebar } from '@/components/navigation/sidebar';
import { env } from '@/env';
import { auth } from '@interiorly/auth/server';
import {
SidebarInset,
S... | interiorly | apps/app/app/(authenticated)/(dashboard)/layout.tsx | TypeScript | 94e6517d0ec4d06511575663b363f1d30d494b5ffb021b69bb8332a8e3d87927 | 0 | 264 |
'use client';
import LearnCarouselSkeleton from '@/components/skeletons/learn-carousel-skeleton';
import TemplateCarouselSkeleton from '@/components/skeletons/template-carousel-skeleton';
import { useUser } from '@interiorly/auth/client';
import {
BookBookmark02Icon,
Clock04Icon,
GeometricShapes01Icon,
Moon02I... | interiorly | apps/app/app/(authenticated)/(dashboard)/page.tsx | TypeScript | a21a60ced7292e3196cb8d3bf571ab3aac093dc68c4d7ba9e9a0f4eb59243f79 | 0 | 896 |
=> condition) || greetings[0];
return (
<div className="flex w-full items-center justify-center gap-3">
{icon}
<span className="font-semibold text-3xl">
{text}, {displayName}
</span>
</div>
);
};
return (
<main className="min-h-screen bg-background p-4">
... | interiorly | apps/app/app/(authenticated)/(dashboard)/page.tsx | TypeScript | 203a056fa3ccac356350be85b9c7920d02a6a040d70cae7f725c001dbbf5c25f | 1 | 406 |
import { Canvas } from '@/components/dashboard/canvas';
import { DocumentProviders } from '@/components/provider/documents-provider';
import { getDocument } from '@/lib/actions';
import { notFound } from 'next/navigation';
interface DocumentPageProps {
params: Promise<{
id: string;
}>;
}
export async function... | interiorly | apps/app/app/(authenticated)/(dashboard)/(document)/canvas/[id]/page.tsx | TypeScript | 50cb8b753c46ed962c9ed89b9748fb50e9cef8f6307591ddc2b893115decf523 | 0 | 331 |
import { redirect } from 'next/navigation';
const DocumentRedirectPage = async () => {
await redirect('/');
return null;
};
export default DocumentRedirectPage;
| interiorly | apps/app/app/(authenticated)/(dashboard)/(document)/text/page.tsx | TypeScript | 9ae7afc76b15aa9c649745c64449fbd9df4c5bb02db8711c33a231a35579d007 | 0 | 37 |
import EditorLayout from '@/components/dashboard/editor/editor-layout';
import { DocumentProviders } from '@/components/provider/documents-provider';
import { getDocument } from '@/lib/actions';
import { notFound } from 'next/navigation';
interface DocumentPageProps {
params: Promise<{
id: string;
}>;
}
expor... | interiorly | apps/app/app/(authenticated)/(dashboard)/(document)/text/[id]/page.tsx | TypeScript | 3cd0273f4c986b1d6aff27a52e9c617bf01348ad579aa4abae8969756f83d62e | 0 | 311 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.