r/positive_intentions • • Nov 08 '23

Blockchain as a Datastructure

0 Upvotes

Blockchain is a good way to order block of sequential data that can be validated by others. Countless real-world examples show that it scales pretty well.

In my app, I am testing the use of a blockchain for storing "chat app data" selfhosted-only. The app is a work-in-progress proof-of-concept and experimental. It is an investigation into creating a distributed and decentralized app.

Unlike traditional blockchains, the sole purpose of this blockchain is to keep messages between peers in sync. The implementation is have is far from finished, but i have a testable proof-of-concept. The blockchain is entirely in javascript running in a browser.

I have a few observations I would like to make:

  • Without the need for mining, it is basically a large array of data. When evaluating the data to be displayed on the UI, it is a "relatively" heavy calculation, but I find that it is more than performant enough to be used in a chat app. I find that the messages and data can scale and the app remains quite performant (I haven't really done much to optimise caching).

  • In cases like a group chat, the data can be validated and synced between multiple peers (which may not all be online). (its worth noting: peers may be able to manipulate the database, but it is not a concern for the app where the purpose is only for blockchain as a datastructure)

  • Why is this kind of datastructure not used more often? There are other blockchain chat apps, but by putting a system like chat on something like ethereum, would typically be expensive to users. But in this case, the blockchain is only used for local data storage and validation. I think this is a good use case for blockchain. When working on your device, you don't need to be conservative about things like message size and so we can store files and images in the blockchain.

  • With no cryptocurrency, there is no incentive to keep the blockchain alive. The data is easily disposable or persisted as the user prefers. there is no need for a setup process and things like ID's and passphrases can be auto-generated behind the scenes away from the user. (the app is currently very experimental, if your data goes, it goes... but it shouldnt matter because there is no financial value to the blockchain)

I am very interested in the idea of blockchain as a datastructure and I would like to see it used more often. i think this datastructure will play an important role in my app as it will enable the app to move to a single-user-multi-platform architecture.

I would like to hear your thoughts on blockchain as a datastructure. Initially i did it investigating if it work on a basic level to help keep messages in sync, but i find that it is quite performant; especially considering it is only running in a browser. (i expect i can easily improve the performance)

The demo can be seen here: https://chat-staging.positive-intentions.com/


r/positive_intentions • • Jul 10 '24

P2P Todo List Demo

0 Upvotes

a decentralized P2P todo list app to to demo the P2P framework used in the chat app.

a wrapper around peerjs. peerjs is good, but it can become complicated to use on complicated projects. This implementation is an attempt to create something like a framework/guideline for decentralized messaging and state management.

https://positive-intentions.github.io/p2p/?path=/story/demo-todo-list--basic

how it works:

  1. crypto-random ids are generated and used to connect to peerjs-server (to broker a webrtc connection)

  2. peer1 shares this ID to another browser/tab/person (use the storybook props)

  3. peers are then automatically connected.

  4. add todo item

  5. edit todo item

There are several things here to improve like:

  • general cleanup throughout (its early stage for this project and missing all the nice things like good-code and unit-tests)

  • adding extra encryption keys for messages comming in and going out (webrtc mandates encryption already)

  • handling message callbacks

  • key rotation


r/positive_intentions • • Sep 24 '25

React-Based Messaging App UI Component Library

1 Upvotes

its time to admit it... it basically looks like an ugly whatsapp clone. i came to this version of the UI by creating messaging functionality and then shaping the UI around the data needed to be shown.

messaging apps are generally very similar with things like a chat-page and chat-list-page, etc. i made an attempt myself and think i should draw more inspiration from existing apps... it would especially be intuitive for users if i "copy" an existing app that people are familiar.

https://glitr.positive-intentions.com

its far from finished and its all hard coded data, but id like to share this now in case anyone wants to take a look and give feedback on things that could make it better. i'll try my best to take it on board as a make improvements.

the corresponding component library can be seen at: http://ui.positive-intentions.com

future:

  • improve functionality around the image editor

  • create components for various attachment-types

  • improve voice recording functionality

  • and much more

(note: this is not a working app. all the data is hard coded and reset on page refresh.)


r/positive_intentions • • Jun 19 '24

Microfrontend P2P Framework

1 Upvotes

p2p.positive-intentions.com

github.com/positive-intentions/p2p

a thin wrapper around peerjs with some functionalities for "intuitive" p2p communication.

this is a lighweight version of what is being used in our chat app. it will be developed with the aim to replace what is being used.

this is early development on this and it's missing all the bells-and-whistles seen in the chat app. It's an unstable experimental work-in-progress. it may contain bugs and/or incomplete features. provided for demo and educational purposes only.


r/positive_intentions • • Nov 15 '23

Decentralized Metaverse Clone PWA

1 Upvotes

i want to add an augmented-reality offering into my decentralization app.

i have created a demo of how it could work. i am aiming for it to work like a video call over augmented reality where the front facing camera would show up on the screen of the peer you are connected to like an avatar.

the augmented-reality environment is basic, but working. there is a webcam stream into the AR environment (that will be replaced with a video stream from a peer when the functionality is finished). the video component will move around based on the peers position in the AR space.

id like to hear what you think about this new addition to the p2p architecture (or any other aspect of it). this new funtionality will compliment the existing functionalities of the decentralization app:

  • chat

  • video/audio calls

  • file sharing

  • screen sharing

  • social media

  • selfhosted backend (optional via peerjs-server)

(note: the app is not a product or monetized in any way. it is a proof-of-concept to determine how/what is possible in a browser-based p2p architecture. some source code for transparency on security+encryption here)

webapp direct link

PWA store link (for reviews if you would be so kind :) )


r/positive_intentions • • May 25 '25

Glitr.io - Now Available in the Play Store

1 Upvotes

r/positive_intentions • • May 28 '26

Introducing: Enkrypted Chat

6 Upvotes

This is a technical demo of a fairly unique approach using a browser-based, local-first and webrtc approach.

This is intended to demonstrate client-side managed secure cryptography.

Features:

  • Core

    • PWA

    • P2P

    • Local-first / Local-only

    • No installation

    • TURN server

    • Encrypted-at-rest

  • WhatsApp clone

    • End to end encryption

    • Signal protocol

    • Post-Quantum cryptography

    • Multimedia

    • File transfer

    • Video calls

  • Nextcloud clone

    • Word

    • Spreadsheet

    • PDF

    • file-transfer

    • Encrypted vault

Some open source versions of the core concepts.

Feel free to reach out for clarity instead of diving into the docs.

IMPORTANT: While this is aiming to provide a secure experience, it isnt audited or reviewed. Shared for testing, feedback and demo purposes only. Please use responsibly.


r/positive_intentions • • Jan 20 '24

A Different Kind of Chat App

6 Upvotes

A chat app that operates in the browser without a backend (kind-of).

The aim is to give users more control over their data, privacy and security. In the interest of transparency, the following are some high-level technical details on how the app works.

Self-Generated and Managed Encryption

With a standard browser, you can create encryption keys and store them on your device, similar to cookies. This is made possible by using tools provided by all modern browsers for cryptography. Check out the code here.

Decentralised Authentication

Our app uses WebRTC to create a secure peer-to-peer connection between two browsers. This connection can persist if the browsers remain connected without a server. With WebRTC, you can send encryption keys between users securely. When you connect to a peer you've previously shared encryptions with, you can validate their identity by checking if they have the same encryption keys you sent in a previous session.

Decentralised Profile

With a JavaScript implementation of symmetric encryption, you can encrypt larger payloads of data. This can be used to encrypt a user's profile, including their username and avatar image.

Decentralised Encrypted Messaging

Our app allows you to store data in the browser, similar to cookies. This can be used to store messages from peers. Browser storage can remain until you decide to clear the site data. Using previously shared encryption keys, you can encrypt messages between peers, with WebRTC providing an extra layer of encryption.

Decentralised Chat

Using Material UI, a popular UI framework with a lot of components, you can create a chat interface. A better UI allows for a more interactive and intuitive app experience.

Decentralised File Transfer

With IndexedDB, you can store large files on your device directly from the browser. The capacity is larger than that used for typical cookies. Symmetric encryption can be used to encrypt these large files, and WebRTC can be used to send files between peers.

Decentralised Virtual Reality

With a standard browser, you can create 3D graphics in the browser with WebGL/WebGPU. This can be used to create a virtual reality environment. You can use WebRTC to share your 3D-position in the virtual environment and to share a live video stream with a peer. This video stream can be used to texture a 3D model in the virtual environment.

We would like your feedback about that app. In particular, we are open to feature requests and bug reports.

Chat App

Getting Started + documentation

r/positive_intentions


r/positive_intentions • • Feb 14 '24

Adding the "decentralized" to decentralized-chat

4 Upvotes

In response to questions about the decentralization of hosting the app on AWS S3, we would like to introduce a static bundle download of the app. Offering the app in this format allows it to be more accurately described as a decentralized chat app.

For most curious users, we reccommend taking a look at the online S3 hosted version because we've set up some CSP headers to prevent potential issues like browser extensions accessing app data.

However, it's important to note that the app isn't fully open source, so only those who are confident and willing to experiment should host it, as the code is generally opaque due to minification and obfuscation.

It's also worth noting that the app is primarily a proof-of-concept demo meant for testing purposes, so stability isn't guaranteed.

To try out the app, you can visit: https://chat.positive-intentions.com


r/positive_intentions • • Aug 12 '25

Chat V2

4 Upvotes

Building secure peer-to-peer messaging apps is tough, and it's even tougher to get people to switch from what they already use. I've noticed that a great user interface and an intuitive design often matter more to people than terms like cryptography or end-to-end encryption.

That's why I've started building a UI library to tackle this head-on! It's a work in progress, but the goal is to create a more welcoming and seamless experience for new users.

Check out the UI library here: https://ui.positive-intentions.com

And you can see a live demo of the UI in action here: demo

Its far from finished, but i'd love to hear your thoughts and feedback as I continue to shape it!

(For more information about the new version, check out: https://positive-intentions.com/docs/category/chat-v2)


r/positive_intentions • • Apr 25 '25

Introducing Glitr.io

6 Upvotes

no servers, no accounts, no installs

https://glitr.io

Need to send files privately without the risks of the cloud? Glitr offers serverless, account-free, and install-free direct file sharing. Your data stays between you and your recipient, with no trace left behind.


r/positive_intentions • • Oct 07 '25

No-hassle P2P Calls in an Browser

3 Upvotes

Want encrypted WebRTC video calls with no downloads, no sign-ups, and no tracking?

This prototype uses PeerJS to establish a secure browser-to-browser connection. Everything is ephemeral and cleared when you refresh the page—true zero data privacy!

Check out the demo: P2P Calls


r/positive_intentions • • Jul 21 '25

Decentralized Module Federation For A Microfrontend Architecture

2 Upvotes

While it could be considered overly complicated (because, well, it is), I'm trying something new, and it's entirely possible this strategy won't be viable long-term. My philosophy is "there's only one way to find out." I'm not necessarily recommending this approach, just sharing my journey and what I'm doing.

Architectural Overview

Here's how I'm architecting it:

Potential Benefits

I've identified some interesting benefits to this approach:

While I often see module federation and microfrontends discouraged in online discussions, I believe they're a good fit for my specific approach. I'm optimistic about the benefits and wanted to share the details.

When serving the federated modules, I can also host the Storybook statics. I think this could be an excellent way to document the modules in isolation.

Modules and Applications

Here are some examples of the modules and how they're being used:

This setup allows me to create microfrontends that consume these modules, enabling me to share functionality between different applications. The following applications, which have distinct codebases (and a distinction between open and closed source), would be able to leverage this:

Sharing these dependencies should make it easier to roll out updates to core mechanics across these diverse applications.

Furthermore, this functionality also works when I create an Android build with Tauri. This could streamline the process of creating new applications that utilize these established modules.

Considerations and Future

I'm sure there will be some distinct testing and maintenance overhead with this architecture. However, depending on how it's implemented, I believe it could work and make it easier to improve upon the current functionality.

It's important to note that everything about this project is far from finished. Some might view this as an overly complicated way to achieve what npm already does. However, I think this approach offers greater flexibility by allowing for the separation of open and closed-source code for the web. Of course, being JavaScript, the "source code" will always be accessible, especially in the age of AI where reverse-engineering is more possible than ever before.


r/positive_intentions • • Feb 01 '25

Introducing Decentralized File Transfer

3 Upvotes

r/positive_intentions • • Feb 15 '25

🚨 Important Notice: Login + Payment System to be introduced to π/File 🚨

2 Upvotes

Hey awesome community!

We'd like to put this notice out there that π/File will be introducing changes for a login and payment system. this is in contrast to our current capabilities where a login/registration system is not needed for secure p2p communication.

What does this mean for you?

- π/File is intended to be a SaaS product and currently unrestricted and free-to-use.This will change in upcoming changes. (the project is further described here: https://positive-intentions.com/docs/file)

- The decentralized chat app will be unaffected by this change. it will remain open-source and free to use.

What are the changes?

- A login + registration system - while we are proud of our no-registration capabilities of our infrastructure, this poses challenges for setting up a SaaS product and while there are many approaches to such a feature, we will be opting to use

- A payment system - we will be introducing either a single payment or a subscription service (TBD).

- Introducing a tier system - we will be introducing a tiered system which will unlock various capabilities of the app. The set of features and tiers are TBD.

- App stores - we will be introducing our apps to the various appstores to make it easier for users to get started on multiple platforms.

When will these changes take effect?

There is no specific roadmap or timeline for these changes to be introduced. The changes will be introduced/released when they are ready. This will mean the changes could be introduced at any point. This post is the first communication about these pending changes, if appropriate, a separate post may be made. As a reddit-first approach, stay tuned/subscribed to this subreddit for updates.

Why are these changes?

The login + payment system on the π/File app is a pivot from the decentralized chat app which has been unsuccessful in securing funding. we believe the technology is underrated and so branching out to investigate other opportunities for funding the project.

Feel free to reach out and ask for any clarity on the project direction and we will try our best to answer.


r/positive_intentions • • Dec 13 '24

Bottom-up Browser Storage Management

2 Upvotes

i wanted to see if we can create asynchronous bottom-up state management, we have the basics to put together a state management system. State management solutions in apps typically have ways to persist data.

I wanted to explore if there are any benefits to define and manage state in webcomponents with a bottom-up approach. I wanted to see if it could give a greater flexibility in developing a UI and not having to worry about persisted storage management.

https://positive-intentions.com/blog/bottom-up-storage


r/positive_intentions • • Jan 25 '25

How To Selfhost P2P Chat In Various Ways

Thumbnail
positive-intentions.com
2 Upvotes

r/positive_intentions • • Oct 19 '24

Dim: Async State Management

Thumbnail
positive-intentions.com
2 Upvotes

r/positive_intentions • • Oct 09 '24

Joining the fediverse. Follow on Mastodon.

Thumbnail
infosec.exchange
4 Upvotes

r/positive_intentions • • Oct 03 '24

Dim: Functional Web Components (Part 2)

2 Upvotes

r/positive_intentions • • Sep 02 '24

The Official positive-intentions Blog

Thumbnail
positive-intentions.com
3 Upvotes

r/positive_intentions • • Jan 10 '24

How I Want to Approach Open Sourcing My App.

Thumbnail self.sideproject
2 Upvotes

r/positive_intentions • • Jan 27 '24

Open Sourcing Webpack and Storybook Microfrontend Starter

1 Upvotes

In a previous post, I discussed my approach to open sourcing. You can find the post here.

I would like to start by open sourcing the microfrontend-base. You can find the repository here.

You can see it in production here.

The microfrontend-base is a "made-up-on-the-spot" project based on my understanding of the JavaScript ecosystem. There are countless tools available, but I have chosen a reasonable subset. I would appreciate any thoughts and opinions on it, so that it can be improved before using it for actual components.


r/positive_intentions • • Sep 19 '24

Dim: Functional Web Components

Thumbnail
positive-intentions.com
3 Upvotes

r/positive_intentions • • Feb 21 '24

I created a GUI for peerjs-server

Thumbnail
self.selfhosted
1 Upvotes