Popularity
2.6
Declining
Activity
0.0
Stable
4
2
0

Monthly Downloads: 5
Programming language: Haskell
License: LicenseRef-PublicDomain
Tags: Web    

indieweb-algorithms alternatives and similar packages

Based on the "Web" category.
Alternatively, view indieweb-algorithms alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of indieweb-algorithms or a related project?

Add another 'Web' Package

README

indieweb-algorithms Hackage Build Status unlicense

A collection of implementations of IndieWeb- and Microformats 2-related algorithms (based on microformats2-parser and http-link-header):

  • finding all microformats of a given type (while retaining the path to them), ie. flattening the tree
  • discovering authorship of an h-entry
  • discovering Webmention/Micropub/IndieAuth/etc. endpoints (HTTP Link header, a and link tags with the rel attribute)
  • parsing tweets on Twitter.com into microformats (like php-mf2-shim)
  • detecting post types
  • converting microformats to Atom feeds

Usage

Endpoints

{-# LANGUAGE OverloadedStrings #-}

import Network.HTTP.Link
import Data.Default
import Data.Maybe
import Data.Microformats2.Parser
import Data.IndieWeb.Endpoints

discoverEndpoints [ "micropub" ] (parseMf2 def $ documentRoot $ parseLBS "<link rel=micropub href='http://example.com/micropub2'>...") (fromMaybe [] $ parseLinkHeader "<http://example.com/micropub>; rel=\"micropub\"")

Development

Use stack to build.
Use ghci to run tests quickly with :test (see the .ghci file).

$ stack build

$ stack test

$ stack ghci

Contributing

Please feel free to submit pull requests!

By participating in this project you agree to follow the Contributor Code of Conduct.

The list of contributors is available on GitHub.

License

This is free and unencumbered software released into the public domain.
For more information, please refer to the UNLICENSE file or unlicense.org.


*Note that all licence references and agreements mentioned in the indieweb-algorithms README section above are relevant to that project's source code only.