Hacker News new | past | comments | ask | show | jobs | submit | santa_boy's comments login

Wow! Congrats!

I am just looking at this but quick question. Is there an example for building a local-first app? Also, I working with plain vanilla HTML & JS and Alpine. Can this be used in my apps?


Y-sweet (which this is built with) allows you to make a Yjs app local-first by passing “offlineSupport” to the provider when constructing.

There’s a demo of this here: https://demos.y-sweet.dev/color-grid

The source for that demo is here: https://github.com/jamsocket/y-sweet/blob/5fa6941cf5568f4a3f...

That demo uses react, but there is a vanilla js version of the same demo here: https://github.com/jamsocket/y-sweet/tree/main/examples/vani...

(The vanilla js version is not local first, but it would just be a matter of passing the same offlineSupport flag to make it so.)


I just noticed that if you install the example service after setting up an account, it installs a version of @y-sweet/react which doesn't offer the offlineSupport prop.

The version specified is ^0.5.1. After switching to 0.7.1 as the repo you linked uses, all is well. Probably not a big deal for most newcomers, but it might be worth updating dependencies in the example service.


Thanks Steve, good catch!


Thank you. This is the direction I needed. Will try out


No reason actually. I was just testing out an automation idea. Didn't actually post anything! Just logging in multiple times with my automation


I built https://1pg.notion.lol/ to launch my blog powered by notion. I hated the entire process of copying and pasting and maintaining two copies.

I do all my work for all other project in Notion and find it very difficult and irritating to switch apps.

I am still building this, so would love to chat and get any inputs (incl. your additional use-cases) if you are up for it! Will ping you if that's ok, LMK


Glide is cool ... I wish there were FOSS versions of Glide to spin up nice, neat and simple mobile apps.

There are now quite a few reliable FOSS version of no-code tools (but the mobile space seems to be missing alternatives). Few nice no-code FOSS that I love using are listed at https://blog.n0c0de.com/articles/1635ef6f-f616-8023-b336-ff3...


This is great, thanks for sharing!


Thank you!


There are so many auth libraries on the roll nowadays. I am using firebase js and it is very simple and straightforward to use.

I'm not a security expert, so please advise any pitfalls that the new libraries address which cannot be done with firebase


Why do you give them you your data? Why would you pay for that ?


This is quite beautiful. I love it! Will use this as an alternative to my mindmap software!


this is clean ... would love to integrate into my side project if you open source this


Yet to try but is there a way to support vanilla JS? Most of my nowadays are pure HTML/JS/CSS (using Alpine mostly)


If you don't use the "convert" feature, you can download the pure HTML directly by clicking on the three dots in the menu bar, on the right side. (No JS though, because we handle the interactivity / state management in React, and candidly haven't found a good way to convert the React to HTML.)


Will try out, nice that is OSS. I work on plain vanilla HTML, JS and CSS. No React, Vue, etc. Hope this works for me.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: