Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vidarh/activitypub
ActivityPub / ActivityStream basic serialization/deserialization for Ruby
https://github.com/vidarh/activitypub
activitypub activitystreams activitystreams-vocabulary fediverse mastodon ruby
Last synced: 27 days ago
JSON representation
ActivityPub / ActivityStream basic serialization/deserialization for Ruby
- Host: GitHub
- URL: https://github.com/vidarh/activitypub
- Owner: vidarh
- License: mit
- Created: 2024-07-01T18:08:48.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2024-07-26T22:21:47.000Z (3 months ago)
- Last Synced: 2024-09-26T20:43:50.829Z (about 1 month ago)
- Topics: activitypub, activitystreams, activitystreams-vocabulary, fediverse, mastodon, ruby
- Language: Ruby
- Homepage:
- Size: 192 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# ActivityPub
A Ruby gem to make it easy to retrieve and work with ActivityPub/
ActivityStreams objects, as used in Mastodon, Lemmy, Pixelfed and
similar.CAUTION: This is early days and the API is likely to change quickly.
If you want to start using this, please follow the project and/or let
me know.## Goals
* To provide a fairly *minimalist*, *barebones* set of classes to
work with ActivityPub objects *as used* by major Fediverse apps.
* Matching real-world use will be prioritized over strict adherence
to the specs - my use-cases require me to be able to handle documents
even if they have errors. But I want to be able to *produce* output
that prefers standards compliance where it doesn't sacrifice interop.
* Support extensions and namespace used by e.g. Mastodon and others.
* Be easy to extend/layer new functionality on top of for anything
that doesn't fit in this core.## Installation
Install the gem and add to the application's Gemfile by executing:
$ bundle add activitypub
If bundler is not being used to manage dependencies, install the gem by executing:
$ gem install activitypub
## Usage
TODO: Write usage instructions here.
For now your best bet is to look at the examples/ dir and the unit
tests.## Development
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/vidarh/activitypub.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).