dariusk / express-activitypub Goto Github PK
View Code? Open in Web Editor NEWA very simple reference implementation of an ActivityPub server using Express.js
License: MIT License
A very simple reference implementation of an ActivityPub server using Express.js
License: MIT License
I'm just trying to use this as a quick and easy local test server, without bothering about ssl.
Unfortunately while you can start the server without ssl config, there are a number of places where "https" is hardcoded in urls, making it difficult to use without adding dirty hacks to my own project.
Probably a good place to start for any modernization:
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
I searching for a light activitypub backend to handle federation and local users like mastodon or other examples do.
Is there some more documentation about features, usage or a demo?
I am getting some errors while trying to install on buster node12 :
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
which leads me to LinusU/node-generate-rsa-keypair#5 & the associated merge request : LinusU/node-generate-rsa-keypair#6
Fixed it with :
npm install LinusU/node-generate-rsa-keypair
(which gets version 0.2.1)
The outbox
property is required in ActivityPub actors. It can be a simple "noop" stream that does not return any activities, but it should be present in the Actor.
Because this tool is used for education for developers, please include this property, as well as a null implementation.
Is it possible to implement / switch database backends like mysql?
I am able to confirm the account was created successfully by viewing the JSON for the new account Actor but every request to /.well-known/webfinger
returns a 404.
I'm also unable to find my account in Mastodon search and see 404 returned for both /.well-known/host-meta
and /.well-known/webfinger
when I attempt to search from there.
I recently worked on this PR for Postmarks, which was based in part on this project. If you're interested, I think it would be straightforward to bring those changes back into this repo. Happy to work on a PR if that is helpful!
When sending a message to a remote server, the ID used for the Create and the Note are equivalent. This is invalid, according to the spec, and will cause multiple servers to refuse it. (also it isn't dereferencable, which will cause issues if someone boosts the note, the servers where noone follows the bot will just not show the boost)
I don't think "try to find test_actor1@{example}.com from the search in Mastodon" will work without some sort of federation between my account on instance mastodon.social my local test implementation of this express-activitypub project.
What's the simplest way to find and follow my actor 'test_actor1@{example}.com'?
@dariusk Mastodon now requires digest header in signature, so accepting follow requests and sending messages doesn't work anymore.
maybe it's dup of #17.
In recent node.js npm install
causes node-gyp error because a dep module is too old.
The module is better-sqlite3 (current version is 8.x).
node.js version: v18 or v20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.