MCPcopy Create free account
hub / github.com/dailydotdev/apps / buildUnbuiltWorld

Function buildUnbuiltWorld

packages/webapp/components/world/unbuiltWorld.ts:19–40  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

17 * count never reaches a counter and the seed is never visible as a fact.
18 */
19export const buildUnbuiltWorld = (userId: string): WorldModel => {
20 /* A day apart, in taxonomy order, and never shown: islands are packed in the
21 order their realms were first read and the rail lists them the same way, so
22 without this the six realms come out ordered by the slug of a seed district
23 nobody can see. */
24 const ground = REALMS.map((realm, index) => {
25 const day = new Date(Date.UTC(2026, 0, 1 + index)).toISOString();
26
27 return {
28 niche: { slug: realm.niches[0].id },
29 reads: 1,
30 firstReadAt: day,
31 lastReadAt: day,
32 activeDays: 0,
33 };
34 });
35
36 const model = buildWorld(userId, ground, []) as unknown as WorldModel;
37 model.unbuilt = true;
38
39 return model;
40};

Callers 2

WorldViewFunction · 0.90
buildFunction · 0.90

Calls 1

buildWorldFunction · 0.90

Tested by 1

buildFunction · 0.72