{"id":19295401,"url":"https://github.com/jsit/pingsville-ping","last_synced_at":"2026-04-29T10:32:29.043Z","repository":{"id":204183161,"uuid":"710973384","full_name":"jsit/pingsville-ping","owner":"jsit","description":"A tiny Deno server that accepts XML-RPC weblogUpdates.extendedPings, parses the submitted feed, and saves blogs, posts, and tags to a database","archived":false,"fork":false,"pushed_at":"2023-11-18T18:57:20.000Z","size":107,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-07T12:41:21.284Z","etag":null,"topics":["deno","xml-rpc","xml-rpc-server","xmlrpc","xmlrpc-server"],"latest_commit_sha":null,"homepage":"https://social.coop/@jsit/tagged/Pingsville","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsit.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-27T21:23:59.000Z","updated_at":"2025-01-02T20:55:31.000Z","dependencies_parsed_at":"2023-11-15T00:25:34.348Z","dependency_job_id":null,"html_url":"https://github.com/jsit/pingsville-ping","commit_stats":null,"previous_names":["jsit/pingsville-ping"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jsit/pingsville-ping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fpingsville-ping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fpingsville-ping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fpingsville-ping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fpingsville-ping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsit","download_url":"https://codeload.github.com/jsit/pingsville-ping/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsit%2Fpingsville-ping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32421596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","xml-rpc","xml-rpc-server","xmlrpc","xmlrpc-server"],"created_at":"2024-11-09T22:43:23.267Z","updated_at":"2026-04-29T10:32:29.027Z","avatar_url":"https://github.com/jsit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pingsville Ping\n\nA tiny Deno server that:\n1. Accepts XML-RPC `weblogUpdates.extendedPing`s,\n1. Parses the RSS/JSON feed, then\n1. Saves blogs, posts, and tags to a database\n\n## Set up\n\n### MongoDB\n\n1. [Install MongoDB](https://www.mongodb.com/docs/manual/installation/):\n\n   ```\n   brew install mongodb-community@7.0\n   ```\n\n1. [Run as a macOS service](https://www.mongodb.com/docs/v7.0/tutorial/install-mongodb-on-os-x/):\n\n   ```\n   brew services start mongodb-community@7.0\n   ```\n\n### Deno\n\n1. [Install Deno](https://docs.deno.com/runtime/manual/getting_started/installation):\n\n   ```\n   brew install deno\n   ```\n\n### Pingsville Ping\n\n1. Run server:\n\n   ```\n   deno task dev\n   ```\n\n## Send test ping\n\n### Postman\n\nUsing [Postman](https://www.postman.com/), you can send a POST request to\n`localhost:1417` with the following raw XML in the body:\n\n```xml\n\u003c?xml version=\"1.0\"?\u003e\n\u003cmethodCall\u003e\n  \u003cmethodName\u003eweblogUpdates.extendedPing\u003c/methodName\u003e\n  \u003cparams\u003e\n    \u003cparam\u003e\n      \u003cvalue\u003e\n        \u003cstring\u003eExample Blog\u003c/string\u003e\n      \u003c/value\u003e\n    \u003c/param\u003e\n    \u003cparam\u003e\n      \u003cvalue\u003e\n        \u003cstring\u003ehttps://blog.example.com/\u003c/string\u003e\n      \u003c/value\u003e\n    \u003c/param\u003e\n    \u003cparam\u003e\n      \u003cvalue\u003e\n        \u003cstring\u003ehttps://blog.example.com/feed/\u003c/string\u003e\n      \u003c/value\u003e\n    \u003c/param\u003e\n  \u003c/params\u003e\n\u003c/methodCall\u003e\n```\n\nThe Deno task should log the values to the console, and add an entry to the\n`blogs` database collection, if the URL is not a duplicate.\n\nIf a feed URL is provided, it will grab the feed XML/JSON and add all the\nentries to a database collection called `blogPosts`.\n\nIf these posts have categories or tags, those will be saved to a `tags`\ncollection as well.\n\n### WordPress\n\nYou can also try this with real-world data from a local WordPress install (I\nrecommend [wp-now](https://www.npmjs.com/package/@wp-now/wp-now)) by adding\n`localhost:1417` to the list of Update Services in\n`wp-admin/options-writing.php`.\n\n## Viewing records\n\n1. Open mongo Shell (`mongosh`)\n1. List databases: `show databases`\n1. Switch to the Pingsville database: `use pingsville`\n1. Show collections: `show collections`\n\n### Blogs\n1. Show documents in blogs collection: `db.blogs.find()`\n1. Clear all blogs from the collection: `db.blogs.deleteMany({})`\n1. Count the number of blogs: `db.blogs.countDocuments({})`\n\n### Blog Posts\n1. Show documents in blogPosts collection: `db.blogPosts.find()`\n1. Clear all blogs from the collection: `db.blogPosts.deleteMany({})`\n1. Count the number of blogs: `db.blogPosts.countDocuments({})`\n1. Find all blog posts in reverse chronological order: `db.blogPosts.find().sort({ pubDate: -1 })`\n1. Find all blog posts with a particular tag: `db.blogPosts.find({tags: ObjectId(\"XXXXXXXXXXXXXXXXXXXXXXXX\")})`\n1. Find all blog posts from a particular blog: `db.blogPosts.find({\"blog.id\": ObjectId(\"XXXXXXXXXXXXXXXXXXXXXXXX\")})`\n\n### Tags\n1. Show documents in tags collection: `db.tags.find()`\n1. Clear all tags from the collection: `db.tags.deleteMany({})`\n1. Count the number of tags: `db.tags.countDocuments({})`\n\n### Cleanup\n1. Remove all instances of tag from all blog posts: `db.blogPosts.updateMany({}, { $pull: { \"tags\": { id: ObjectId(\"XXXXXXXXXXXXXXXXXXXXXXXX\") }}})`\n\n## To Do\n\n- [ ] Normalize URLs (remove trailing slash, expand short URLs, etc.)\n- [ ] Look into using [@foxglove/xmlrpc](https://www.npmjs.com/package/@foxglove/xmlrpc)\n- [ ] Better error handling\n- [ ] Use GraphQL, to be database-agnostic\n- [ ] Prevent spamming?\n- [ ] A job queue?\n- [ ] Create Pingsville API, for querying data\n- [ ] Create Pingsville Web, for browsing content\n- [x] Scrape feed data and store blog posts\n- [x] Store tags\n- [x] Normalize tags\n- [x] Return something meaningful to the pinger ([spec](http://www.hixie.ch/specs/pingback/pingback-1.0#http://www.hixie.ch/specs/pingback/pingback#TOC3))\n\n## Resources\n\n- [XML-RPC Spec](http://xmlrpc.com/spec.md)\n- [Rebooting XML-RPC](http://reboot.xmlrpc.com)\n- [XML-RPC Debugger](http://scripting.com/code/xmlrpcdebugger/)\n- [davexmlrpc](https://www.npmjs.com/package/davexmlrpc)\n- [WordPress Update Services](https://wordpress.org/documentation/article/update-services/)\n- [What happened to Technorati?](https://tedium.co/2022/11/04/technorati-blog-search-engine-history/)\n\n## How you can help\n\nPlease help me! I don't know what I'm doing!!\n\nYou can reach me on Mastodon at [@jsit@social.coop](https://social.coop/@jsit)\n\n## License\n\nBoy, I haven't really thought about this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsit%2Fpingsville-ping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsit%2Fpingsville-ping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsit%2Fpingsville-ping/lists"}