1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "agent",
12 "schemaVersion": "1.0",
13 "operation": "prepare",
14 "language": "ko",
15 "project": {
16 "name": "Personal Reading Queue",
17 "brief": "A single-person browser app saves book title and author, marks a book read or unread, filters by reading status, and deletes a book after explicit confirmation. All data stays in localStorage on this browser. No login, server, payments or external fetch. Validate required nonempty title and show recoverable storage errors.",
18 "mustHave": [
19 "save book with title and author",
20 "mark book read or unread",
21 "filter books by reading status",
22 "confirm before deleting a book",
23 "persist books in localStorage"
24 ],
25 "goals": [
26 "organize a personal reading queue"
27 ],
28 "contextType": "greenfield",
29 "targetUsers": [
30 "individual"
31 ],
32 "mustNotHave": [
33 "authentication",
34 "payments",
35 "server",
36 "external paid API"
37 ]
38 },
39 "capabilityPolicy": [
40 {
41 "capabilityId": "LOCAL_STORAGE",
42 "disposition": "REQUIRED",
43 "evidenceRefs": [
44 "SRC-PROJECT-BRIEF"
45 ]
46 },
47 {
48 "capabilityId": "AUTHENTICATION",
49 "disposition": "FORBIDDEN",
50 "evidenceRefs": [
51 "SRC-PROJECT-BRIEF"
52 ]
53 },
54 {
55 "capabilityId": "PAYMENT",
56 "disposition": "FORBIDDEN",
57 "evidenceRefs": [
58 "SRC-PROJECT-BRIEF"
59 ]
60 },
61 {
62 "capabilityId": "SERVER",
63 "disposition": "FORBIDDEN",
64 "evidenceRefs": [
65 "SRC-PROJECT-BRIEF"
66 ]
67 },
68 {
69 "capabilityId": "EXTERNAL_API",
70 "disposition": "FORBIDDEN",
71 "evidenceRefs": [
72 "SRC-PROJECT-BRIEF"
73 ]
74 },
75 {
76 "capabilityId": "EXTERNAL_FETCH",
77 "disposition": "FORBIDDEN",
78 "evidenceRefs": [
79 "SRC-PROJECT-BRIEF"
80 ]
81 }
82 ],
83 "stack": {
84 "frontend": "react-typescript",
85 "styling": "css-variables",
86 "backend": "none",
87 "database": "none",
88 "preserveExisting": false
89 },
90 "privacy": {
91 "allowExternalLlmProcessing": false,
92 "allowPublicWebsiteFetch": false,
93 "sourceRightsConfirmed": true
94 }
95};
96
97
98const run = await client.actor("bread-kim/ai-development-blueprint-generator").call(input);
99
100
101console.log('Results from dataset');
102console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
103const { items } = await client.dataset(run.defaultDatasetId).listItems();
104items.forEach((item) => {
105 console.dir(item);
106});
107
108