seed.ts — ui Source File
Architecture documentation for seed.ts, a typescript file in the ui codebase. 4 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6f3fa41a_77dd_53a6_d902_dfd1aee3d525["seed.ts"] 5da60be7_a60b_e4ca_57fd_93c1f11c333f["data.tsx"] 6f3fa41a_77dd_53a6_d902_dfd1aee3d525 --> 5da60be7_a60b_e4ca_57fd_93c1f11c333f eac8f98f_e40a_7fe8_f505_372c83d20c7a["fs"] 6f3fa41a_77dd_53a6_d902_dfd1aee3d525 --> eac8f98f_e40a_7fe8_f505_372c83d20c7a d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5["path"] 6f3fa41a_77dd_53a6_d902_dfd1aee3d525 --> d05ec4ea_7a68_3a36_bfa4_9ba7f8409ee5 817e745e_bb93_8c88_07a4_2e2e390aab69["faker"] 6f3fa41a_77dd_53a6_d902_dfd1aee3d525 --> 817e745e_bb93_8c88_07a4_2e2e390aab69 style 6f3fa41a_77dd_53a6_d902_dfd1aee3d525 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import fs from "fs"
import path from "path"
import { faker } from "@faker-js/faker"
import { labels, priorities, statuses } from "./data"
const tasks = Array.from({ length: 100 }, () => ({
id: `TASK-${faker.number.int({ min: 1000, max: 9999 })}`,
title: faker.hacker.phrase().replace(/^./, (letter) => letter.toUpperCase()),
status: faker.helpers.arrayElement(statuses).value,
label: faker.helpers.arrayElement(labels).value,
priority: faker.helpers.arrayElement(priorities).value,
}))
fs.writeFileSync(
path.join(__dirname, "tasks.json"),
JSON.stringify(tasks, null, 2)
)
console.log("✅ Tasks data generated.")
Domain
Subdomains
Functions
Dependencies
- data.tsx
- faker
- fs
- path
Source
Frequently Asked Questions
What does seed.ts do?
seed.ts is a source file in the ui codebase, written in typescript. It belongs to the ComponentRegistry domain, Styles subdomain.
What functions are defined in seed.ts?
seed.ts defines 1 function(s): tasks.
What does seed.ts depend on?
seed.ts imports 4 module(s): data.tsx, faker, fs, path.
Where is seed.ts in the architecture?
seed.ts is located at deprecated/www/app/(app)/examples/tasks/data/seed.ts (domain: ComponentRegistry, subdomain: Styles, directory: deprecated/www/app/(app)/examples/tasks/data).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free