190 points · by mud_dauber · 7y ago · 123 comments
So I'm going to attempt to build my own - despite being a real noob when it comes to JS-based tech stacks. What would you use as a starting point for a tech stack, if you want:
- public/private/sharable card options - import/export to a couple of mainstream alternate formats - reasonable response times - an improvement over downloading the entire DB upon page load - markdown-capable cards - sort/filter/tag options
I'm assuming this is going to be some flavor of Angular/Vue/React. Suggestions?
For the frontend, then, we're talking tables and forms. Really simple lowest-common-denominator stuff. Design the API before touching any of the code - that's the only place where "without pulling the entire DB at page load" can happen. Build the backend in something with a safe, stable standard lib or core ecosystem, python or common lisp or the like.
Of course, those are ultimately stretch goals. Like another commenter here said, use whatever you're most comfortable with. On the vast majority of software projects the biggest obstacle is the programmer. I can't really help there because I don't know what you're familiar with. Sorry. Good luck.
(Not linked, just a happy paying user)
FWIW: Open Source client + server with optional paid hosting is my favourite. And it is not just words: I've been paying a few hosting services, both commercial and open source, for a few years.
I like the assurance of open source but I often prefer to pay the people who make it to host it.
I am thinking of releasing a product under Apache + Common Clause, Zero License, Business Source License or similar, maybe with GPL timebomb. Basically, feel free to use, improve and share, but don't sell or offer it as a service to 3rd parties. I would love it if normal users could safely use the product and share improvements, but would still like to have a chance at building a business model which didn’t involve donations or selling just support (I want to be incentivized to build a great UX). Which means I am selling convenience, and probably can't compete with others if they can offer the same without the cost of development.
Since you sound like exactly the target audience, would such a license appeal to you, or would you reject it up-front?
Open source is split across multiple repos:
https://github.com/standardfile/ruby-server
https://github.com/standardnotes/web
I do like that there is a "download" page for the web version though, which "downloads" a 301 redirect.
Silly goose, I'm never leaving Firefox.
Example: I want features found in the advanced editor but also in the markdown editor
I suggest you figure out what looks interesting to learn and go with it. You can also “outsource” parts e.g. getting storage and backend as a service from something like Firebase, so you can focus only on building the front end.
1. good ecosystem for Java libraries on serverside (and mobile) for parsers with Markdown, etc. you could re-use the parsers between mobile & server to reduce dependencies
2. Code re-use on apps for Android & with multiplatform projects you get a lot of re-use for iOS (and swift is pretty similar, so you'd have an easier time porting)
3. Code re-use between the apps and the Javascript front-end for web (kotlin transpiled to Javascript). One language for both front-end and back-end (similar to why a lot of people use npm for serverside), which I find to be way more maintanable
4. You get similiar ease of programming as Python, etc. but with better performance
5. Kotlin can be used with React, Vue, & Angular and can integrate with existing Typescript annotation files by a conversion tool
6. You can use ktor to easily setup a server without having to setup a full Java servlet container
> "I'm sick of waiting for Google's Keep team to improve their app, or even to respond to feature requests. (Crickets.)"
Choose a stack that:
a. has many developers using it on GitHub (since that happens to be the most popular platform for hosting open source code)
AND
b. is easier to use or fork as well.
Life will take over at some point after you develop some version of a Keep alternative. It may be the same as Keep today or lacking a lot comparatively or better than it. In any case, you'd need something that others can contribute to (sending pull requests), fork and create different/better versions of, etc. If you go with some relatively obscure stack or a dying stack because it promises to be fun or promises that you'll learn something new or promises something very fancy, then you'd either not get many users for your application or would have people in the future screaming the same sentence you started with above.
In other words, try not to do to others what you imagine the Google Keep team has done to you (or not done for you)!
Application developers need to open their platforms. Had Keep made their application open and layered, your new features would be locked behind the Keep gate.
First off, a few requirements I inferred from your Q:
1. Performance (response time + concurrency)
2. Simplicity (you're a noob, but it's always a good thing anyway)
3. Stability + ease of maintenance/evolution (you don't state this explicitly - but if you're building on your own, I'd guess you'll have limited time to do this).
Based on those, here's a suggestion.
1. Write you back end in Erlang, using Cowboy or WebMachine to expose RESTful services. Simple, performant, robust, scalable, proven, stable.
2. Start with the premise that simple term/text storage (i.e. no DB) will suffice. Only move from that if you disprove that premise
3. Ask yourself how much of your front end can be handled with straight CSS + HTML. Probably not all, but you'd be surprised how much
4. Instead of a javascript framework, have a look at Elm where you do need client-side behaviour.
I fully accept that neither Erlang nor Elm are mainstream choices. Certainly not for everyone. But they're both well-designed, robust and pretty stable (Erlang more so than Elm on the stability front admittedly - the Elm language is still evolving).
I'll also freely admit that I really dislike the javascript ecosystem. I say "ecosystem" deliberately; I'm not crazy for the language itself, but it's the infuriating instability of packages, frameworks, build tools etc that means I avoid it as far as possible. It seems to take more time just keeping up with with the ecosystem than actually delivering meaningful functionality. I don't find that with Erlang or Elm. Yes, Elm 19 introduced quite a few breaking changes. Though I didn't find porting too painful given the tooling is so good.
YMMV of course.
I haven't really used Elixir so can't talk from experience. I did look at it but just prefer Erlang syntax. I hear good things about the language, ecosystem and community though. Phoenix seems really well-regarded as a web framework (and indeed, there is/was some integration with Elm).
It uses Erlang's underlying VM (BEAM) so benefits from the stability and concurrency BEAM brings. So I don't see any obvious downsides.
- Ease of deploying.
- Amount of resources required to run it.
I've been building an open source notes app recently and I picked Rust + ReasonML and React in the front end.
It's super easy to deploy; it all compiles down to a single native binary that contains both the server and frontend.
It's super easy to deploy this, with or without Docker. It consumes almost no resources at all. The binary is 12 MB and consumes around 5 MB of RAM.
On the frontend it's a PWA, so it's available offline too. This is the most important part. You could build the PWA in other frameworks as well.
I've been meaning to pick it up for a while now and keep reading over the docs but still haven't done much. Would you be willing to talk about some of the pitfalls and rough edges you've hit or things you would do differently?
Things I like:
* It's a general purpose language, it's not only usable on the front-end (like Elm for example).
* It's a really powerful language (or rather, OCaml is).
* Interop with JS is good. It takes a bit to get used to the syntax for writing bindings, but once you get the hang of it it's pretty straightforward. Again, ReasonML IMO scores a lot better in this front than Elm.
* ReasonReact is a very thin wrapper around React, so if it's really easy to work with if you already know React.
* There are other options than ReasonReact, for example bucklescript-tea [1] which is very Elm like.
* There seems to be a lot of focus on targeting native. See for example Esy [2]. There's some real potential in bs-react-native [3] and Revery [4].
* Overall the experience of working with Reason is really great. The compiler has your back, is great at type inference and the syntax is pretty elegant (though IMO a little less so than Elm).
* The compiler is blazingfly fast. Blows Typescript and Babel out of the water.
Things that are a bit rough: * Docs are spread across Reason docs, Bucklescript docs and OCaml docs. A lot features are not documented in Reason, because they're inherited from OCaml. If you would read just the Reason docs you might get the impression that's a pretty small and simple language, but it's actually very powerful. If you're thinking about picking up Reason I definitely recommend you read the RealWorldOCaml book [5].
* The Reason syntax is a bit weird in some spots. If you make a syntax error the compiler will in most cases just yell `Error: Syntax error` at you which is not really helpful.
* The ReasonReact API feels a bit alien, probably because it's build on top of the React Class API. I think there a bit some big changes coming to ReasonReact though, so hopefully this will change.
Things that concern me: * There's little formal communication about the direction and future of the project. It seems to be mostly Facebook who's behind it, it doesn't feel like a community project at all. Bucklescript seems to be largely a one man show.
* There have been a handful of Bucklescript and Reason releases that plain broke stuff. Of course this can happen, but it does make me a feel a little uneasy.
All in all I'm definitely positive. There's a lot of potential and hopefully when Reason picks up some more steam it can become more a community project.
Be sure to check out the Reason Discord [6], very helpful people there![1] https://github.com/OvermindDL1/bucklescript-tea
[2] https://esy.sh/
[3] https://github.com/reasonml-community/bs-react-native
[4] https://github.com/revery-ui/revery
Could you share a link to the repo? I'd love to take a look :)
I've actually just taken a short break from the project. It turns out building a good offline + sync note taking app is more complicated than I imagined it would be :-) Given that I'm just working on it in my spare time every now and then it frustrates me a little sometimes that I'm not making as much progress as I would like. But probably I'll pick it up again soon because I do believe this could turn out to be quite useful.
Use what you know. Choose stability over cuteness. The app you’re building doesn’t dictate any specific stack.
I would use AWS Lambda or Azure functions for the entire backend for something like this. You could make it incredibly scalable and do it incredibly fast. Both AWS and Azure have great managed Document database you could use to power the features you mentioned. It has never been easier than it is right now to build some incredibly things.
Shameless plug, this is exactly what I did with a recent app I built that can take any article and convert it to Audio. Check it out https://Articulu.com got it out for iOS and Android incredibly fast.
I think it’s fine for us to disagree on Mobile vs Web. But I think depends on what his goals are, in my opinion these days Desktop isn’t the main use for apps like this. He could always add that kind of support later.
Having it on the phone is nice, but it has to let me type in my notes at ~100wpm as well ;-)
(Of course, to each their own)
React is hard until your understanding of it finally 'clicks' - and having a wireframed visual reference of what your app is supposed to look like actually makes it easier to think about how it should be layed out in code, imo.
I actually just started learning React Native and I re-wrote the first iteration of my app's home screen many times (and kind of aimlessly) until I had something that actually made sense and was easily maintainable - still re-factoring it into something even simpler, tbh. That said, I think that was mainly due to me not knowing what was in the library or having approached the UI components properly in the first place, so I think I will be prototyping quite a bit faster over time.
re: state management/backend, I'm also confused as to what stack would be best for what I want to do. I'm guessing Firebase with some minimal manual state management? All the state updates my app needs to do is essentially record the user ticking some checkboxes, and some timers updating in the UI, and those persisting on a user's phone but also optionally associated with their account online if they so choose.
edit: I might actually go the PouchDB route
To get started, you find everything you need in the documentation, see https://docs.wolkenkit.io/3.1.0/
There is also an existing sample application that you might use as a starting point: https://github.com/thenativeweb/wolkenkit-boards
For the frontend I'd use React, probably, just because it is the UI library / frontend I'm most familiar with and the one I value the most.
PS: Please note that I am one of the core developers of wolkenkit, so please take my answer with a grain of salt.
Back end: You could certainly do that with cloud functions without a database. Store encrypted JSONs somewhere. It would scale effortlessly. Use Auth0 for authentication.
Another option could be hasura.io which provides so much out of the box and can be installed everywhere with docker.
I also think all the available APIs would be enough for a note-taking app. iOS improved it's support massivly in the latest beta.
You just need to keep it snappy! I take notes quickly and often.
Feel free to try it out.
What I used is JavaScript, bootstrap for menus, Firebase for storage & authentication.
Next phase for learning ofcourse, 1. Option to write Notes in Markdown 2. UI look like Outlook 3. Not fully load entire db in homepage.
Below items I have already in my todos, I am sure I will never do it as I have other personal apps in mind. 1. Export/Import 2. Mark a note as public or private. If public anybody can comment on your notes. Suggest changes.
It's kind of like a crossover between a private Pinterest, a bookmarking app, and a note taking app.
So it's multi-paradigm.
But of you know your use case better, you can tailor your soltution to fit.
You can then make better decisions on online/offline, where to store state, web vs native etc.. this is the benefit of simplyfing and clarifying your use case.
For example, I am a heavy bookmarker (~70k bookmarks), so I built an open-source, self-hosted (I don't want to own your bookmarks) bookmarking web app (https://github.com/jonschoning/espial). It is pretty minimal, but it is tailored to quickly bookmarks while browsing. I didn't bother with native because I am already in a browser context when I want to bookmark something.
But maybe I am just biased towards web hosted tech. I just don't see the value add for native unless it's doing something intimately connected with the physical device or physical user.
And I'm always in a browser context too. Thanks.
After reading GTD, I ended up switching to the Things 3 app. I think I paid a one time $10 or $20 but it has been worth it in my opinion.
The one app I have not found yet, is one that can help me organize all the knowledge I discover online. I end up using favorite on HN and had a bunch of links in Google bookmarks. Still, its hard to find the stuff once it gets in there.
What features do you want Google to add to Keep?
I'm not satisfied with existing note-taking apps myself, and I'm currently researching/prototyping alternatives. My current prototype focuses on eliminating input friction, and I use it as my Android launcher.
The demo/presentation is here : https://jimskapt.github.io/lambda-badger, and source is here : https://github.com/Jimskapt/lambda-badger
Try focusing on finding ES6 approaches and that'll help keep your code simple also.
It’s already at the edge in my opinion, and I would like to continue using it for a long time into the future, so please stop pushing the engineers to change things. You might actually convince them...
I have Keep open on my laptop, my work desktop, my phone, and sometimes my tablet. If I edit on one the edits show up everywhere else without refreshing which is important because I might be sitting at my desk, type a few things into a list, walk down the hall, get out my phone, add a few more things.
Maybe people can suggest which frameworks handle that for you vs which ones you'd have to role your own solution.
Another consideration that’s independent from your frontend stack is how the user interacts with the UI. I guess that’s called UX these days. Making the right or wrong choices there will have much bigger impact on success than the framework choice.
Just pick a framework that you want to learn and do this project on this framework. Also if you want to learn vanilla js, pick vanilla js.
And for the backend side, same story, pick whatever framework and language you prefer. Superior framework at the scale of a side project doesn't exist. And personally I would pick vanilla js with Django because that is the stack I know the best
All JS no context switching and many open source components already done.
It arguably has some downsides compared to Keep, however it suits my needs and as a plus it supports markdown formatting.
Additionally it's open source, so you might get some insights into which thoughts went into it, which might help when designing your own solution.
It also only supports text notes, so if you use drawings, etc in Keep a lot that might be a problem.
What I really like about it though is its simplicity and that I can easily run my own instance (of Nextcloud which I use anyways).
These 2 keep extensions have hugely improved my satisfaction with keep. Try them out.
https://chrome.google.com/webstore/detail/input-tab-in-googl...
https://chrome.google.com/webstore/detail/category-tabs-for-...
But this is because I'm very familiar with these frameworks. Productivity using them is really high once you've learned them well. But the learning curve to learn these technologies might be more than the amount of work that goes into making a Google Keep clone with a more approachable framework...
The standard or A standard?
It's becoming the de facto standard stack for new projects.
My gut reaction when it came out was "it seems rather unwieldy compared to redux to have to manage client-side application state through graphql", but my gut reaction could be wrong, and I haven't actually tried apollo-link-state so this isn't really an informed opinion. Notably though, it feels think graphql is great for graph data, but pointless overkill for most global application state which isn't really graph data.
Then you can concentrate on getting your front end. Once you have a great UI add multiple backend support, maybe on ipfs or something super open.
Tiddlywiki might be interesting to you as well
Google Todo app tutorials and pick the one you like the syntax the most and you can complete in a couple of hours. There are gazillion of tutorials out there how to build one. I would follow a React based for learning purposes.
For backend:
Try a simple Express backend with Node.js and Firebase as a database. With a todo app, you will never run out of the free tier and migrating between server provider will be very simple.
Level it up with a nice UI library:
It's basically note taking but integrated with the reading flow. You basically keep all your books and notes in one place and you can annotate and highlight directly within Polar.
It's basically a "personal knowledge repository" with all your books and web content integrated along with highlighting.
Clojure(Script) for the ability to use same language front and back, for it's very good interoperability CSP and expressions
Datascript for my client side database, I'd probably try and achieve a real time app based on something like hyperfiddle
I would be interested in working on a backend if it would be this stack :)
As for the client side: I tend not to think about that too much, since it is often quicker and easier to create your own DOM manipulation than learning any of these, highly opinionated, frameworks. I like to use jQuery, because of the huge community, the large number of plugins and since many other frameworks try to stay compatible.
And use Firebase or Firestore as the database. It's super easy to build a simple MVP app with just Firebase SDKs
Frontend: vanilla html5, css and js
* card sort by creation date, last edit, title text, maybe card color? * private/public/sharable options per card * something other than raw text display (markdown?) * a better page load strategy for slower connections
Nice to have: * card width/height options, maybe via CSS like Muuri * archives to selected categories
You may want to take a look at Bitwarden to see how they do it. It is open source. You can use the similar architecture for client side encryption and decryption, and extend it to note taking.
Quite an interesting app and you can download and offline copy of your notes too.