Gordon Pedersen
6f3e2f65ad
Code based on (but not identical to) https://github.com/jakelazaroff/activitypub-starter-kit Instead of using node/express, it's using Bun/bun's inbuilt server Right now it can follow/unfollow (be followed/unfollowed) and create notes which get sent to followers No UI yet Stores posts as markdown with YAML frontmatter Stores activities for creating those posts as json Stores following/followers in json files
21 lines
No EOL
416 B
JSON
21 lines
No EOL
416 B
JSON
{
|
|
"name": "bun-activitypub",
|
|
"module": "index.ts",
|
|
"type": "module",
|
|
"scripts": {
|
|
"start": "bun run --watch src/index.ts"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node-forge": "^1.3.5",
|
|
"@types/yaml": "^1.9.7",
|
|
"bun-types": "latest"
|
|
},
|
|
"peerDependencies": {
|
|
"typescript": "^5.0.0"
|
|
},
|
|
"dependencies": {
|
|
"gray-matter": "^4.0.3",
|
|
"node-forge": "^1.3.1",
|
|
"yaml": "^2.3.2"
|
|
}
|
|
} |