Proposal - Sigle - Open-source writing platform for Web3 content creators

Update milestone #2

All our code is open-source and can be viewed at GitHub - sigle/sigle: Open-source writing platform for Web3 writers

The latest version is live at https://next.sigle.io/.

We’ve been hard at work this week, making significant changes to our codebase. Unfortunately, we encountered a roadblock when trying to implement other app views, as the current version of the GraphQL client filter capabilities was limited (only allowing for filters by id). So, we started looking into the option of doing GraphQL schema stitching and even created a forum post to discuss this possibility ComposeDB schema stitching. Unfortunately, it isn’t, so we decided to completely change our approach and remove GraphQL for all queries, only using it for mutations.

Trpc and Prisma to the rescue

To make our own queries with filter capabilities, we integrated trpc and Prisma to communicate with the server and Postgres database. And to make sure everything was working as it should on Staging, we deployed the current node on fly.io and used a Postgres database.
We’re getting there!

:bug: During the process, we found an issue in js-ceramic with the Postgres URL format and created a fix that was merged.

Publish logic

Our posts can have multiple state, draft, published or deleted. The GraphQL schema has been updated to reflect these changes with the following enum.

enum PostStatus {
  DRAFT
  PUBLISHED
  DELETED
}

Now you can create a draft, publish it and then delete it later (deleting is only hiding the post from the list, it’s still accessible on IPFS).

Feed page

A public feed with infinite loading is now available for viewing all published posts.

What’s next

Mobile version and single post view are the 2 missing parts to get a working app with basic functionalities!
Next week we will be at EthDenver and the app will be ready to be tested :eyes: :rocket:

2 Likes