Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

A webcounter #13

Open
zootella opened this issue May 19, 2019 · 8 comments
Open

A webcounter #13

zootella opened this issue May 19, 2019 · 8 comments
Labels
enhancement New feature or request schemas

Comments

@zootella
Copy link

zootella commented May 19, 2019

The first thing I did after making my first website in the 90s was add a web counter/hit counter. Checking back to see a higher number of visits made the experience sticky, and seeing larger numbers encouraged me to make my site bigger and better. It was miles before social media, but already didn't feel like talking to an empty room.

Figuring out how a webcounter might work on the distributed web is an interesting thought experiment. Following the design of unwalled.garden, here's how one might look and act:

000000789 visitors counted [Count me!]
__user1__, __user2__, __user3__ recently visited

Similar to comments, the count and user list are a result of the web crawler finding the appropriate record in the friend swarm of Dats.

@pfrazee pfrazee added the enhancement New feature or request label May 21, 2019
@pfrazee
Copy link
Member

pfrazee commented May 21, 2019

Yeah I love this idea. I wonder if we could generalize it into some kind of multi-purpose signal about a site. The basic structure of this record is:

{
  "type": "unwalled.garden/visit",
  "topic": "dat://some-site.com",
  "createdAt": "todayish"
}

But that's a super common structure that could be generalized to something like:

{
  "type": "unwalled.garden/action",
  "topic": "dat://some-site.com",
  "action": "visited",
  "createdAt": "todayish"
}

And we could then index by action so that you say listActions(url, 'visited') to get the list of visits.

Not 100% sure that "action" is right. Could also be "event", or "signal", or something else.

@pfrazee pfrazee added the schemas label Jun 6, 2019
@pfrazee pfrazee mentioned this issue Jun 14, 2019
@todrobbins
Copy link

I like this action idea as well, but we should probably think through the privacy concerns with sharing browsing history within the public profile? Just curious if this has been discussed elsewhere.

@pfrazee
Copy link
Member

pfrazee commented Jun 14, 2019

It's not automatic. It doesnt just publish every visit.

@zootella
Copy link
Author

Yeah. In this sense, it's quite similar to Claps on Medium, now that I think about it.

But still a one-click way for visitors to make their visit known on a site, making the distributed web feel populated and friendly, rather than like a dusty static archive.

@pfrazee
Copy link
Member

pfrazee commented Jun 14, 2019

Yes exactly right

@todrobbins
Copy link

Cool cool! Thanks @zootella!

@danimesq
Copy link

It's not automatic. It doesnt just publish every visit.
it's quite similar to Claps on Medium

It is also useful for a download counter, or count views on a video.
But, users can create lots of profiles and manipulate it. Antispam is need.

@pfrazee
Copy link
Member

pfrazee commented Jun 18, 2019

You only see data from people in your network, so antispam is built in

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request schemas
Projects
None yet
Development

No branches or pull requests

4 participants