[llvm] Add activity feed API (PR #160306)

Ivan Kosarev via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 23 07:11:46 PDT 2025


https://github.com/kosarev created https://github.com/llvm/llvm-project/pull/160306

None

>From d3771c0add40305f652491cb27a4e8cb73ba1d3b Mon Sep 17 00:00:00 2001
From: Ivan Kosarev <ivan.kosarev at amd.com>
Date: Tue, 23 Sep 2025 15:07:37 +0100
Subject: [PATCH] Add activity feed API

---
 .../lib/Target/AMDGPU/graphite-demo/server.js | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 llvm/lib/Target/AMDGPU/graphite-demo/server.js

diff --git a/llvm/lib/Target/AMDGPU/graphite-demo/server.js b/llvm/lib/Target/AMDGPU/graphite-demo/server.js
new file mode 100644
index 0000000000000..54925ed5afc71
--- /dev/null
+++ b/llvm/lib/Target/AMDGPU/graphite-demo/server.js
@@ -0,0 +1,30 @@
+const express = require('express');
+const app = express();
+const port = 3000;
+
+// Fake data for the activity feed
+const activityFeed = [
+  {
+    id: 1000,
+    title: 'New Photo Uploaded',
+    body: 'Alice uploaded a new photo to her album.'
+  },
+  {
+    id: 2000,
+    title: 'Comment on Post',
+    body: "Bob commented on Charlie's post."
+  },
+  {
+    id: 13,
+    title: 'Status Update',
+    body: 'Charlie updated their status: "Excited about the new project!"'
+  }
+];
+
+app.get('/feed', (req, res) => {
+  res.json(activityFeed);
+});
+
+app.listen(port, () => {
+  console.log(`Server running on port ${port}`);
+});
\ No newline at end of file



More information about the llvm-commits mailing list