phero
bash
Our great sponsors
phero | bash | |
---|---|---|
21 | 9 | |
311 | 581 | |
1.0% | 3.3% | |
6.5 | 5.8 | |
3 months ago | 3 days ago | |
TypeScript | C | |
Apache License 2.0 | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
phero
-
Node.js 20 is now available
That's one of the reasons that drove me to create Phero: https://phero.dev
-
Full-Stack TypeScript with tRPC and React
Iโm one of the authors of Phero. Itโs goal is similar to tRPC: fullstack typesafety between servers and clients.
One difference is syntax: Phero leverages the TS compiler api to generate parsers for your backend functions. It will parse input and output or your api, automatically, based on the types you define for your functions. It will generate a declaration file of your api and generate an RPC style client SDK for your frontend. Another difference is that it aims to be more batteries includes.
[1] https://github.com/phero-hq/phero
Comparison: https://phero.dev/docs/comparisons/tRPC
- Framework for REST API that builds a complete-ish API given a model?
-
Using API routes for large projects
Shameless plug: you could also use https://phero.dev
-
No errors when fetched data is a 'string' even though interface property type should be a number.
Long story short: when fetching data, you should be validating the data, before casting it to a type youโre expecting it to be. There are a lot of different approaches for this, but being the go-author my favorite would be Phero (https://phero.dev). With this, you can build your API in typescript as well, automatically generate a client for your frontend to call the API. Phero will make sure all data is correct in runtime, automatically.
-
Best schema validator for intellisense performance?
For those looking for an alternative: Definitely check out https://phero.dev. As the co-creator Iโm totally biased of course, but thanks to its build-step IDE-performance is great ๐๐
-
I've made a big comparison table of nodejs RPC frameworks. Hope you like it ;)
What about Phero? https://phero.dev
- How you make typesafe front/backend API
-
KitaJs Survey - No runtime code, fast as bare metal and top level framework.
Can we add Phero to the list? :) https://github.com/phero-hq/phero
-
If you haven't worked with TypeScript yet it's a good time to get started now. I prepared an intro that covers the most important points to React with TS. Including a few embedded exercises for you to practice.
You can use Phero. You can use it on your backend and frontend. It basically created a typed API from your backend afaik
bash
-
Node.js 20 is now available
> Next you'll be telling me that I shouldn't use Bash because Bash 5.0 came out in 2018 and only got two minor point releases over the next 5 years. But that sounds dumb, huh?
What's dumb is not being able to tell the difference. It's not about the numbers.
https://git.savannah.gnu.org/cgit/bash.git/ shows there are constant updates. Things are being worked on. Your example proves my whole point. There are updates every year for many years.
Express? Not so. There are many gaps in its history. And for a tool like Express that has way more surface area it is in need of a lot more testing and updating e.g. if NodeJs changes something it breaks.
Does Bash need to make sure it works with HTTP3, Brotli or many other things that came out? No.
> Because for the most part - it doesn't need them.
Right, let's go back to the Stone Age. You don't need clothes either - just a leaf. You're just so dismissive on innovation then why bother? You don't even need NodeJs. Back to assembly and punch cards...
> Is an ignorant take.
Yes, yours. As shown above by your example.
> People promote it because it's a good tool.
And how do you know that? Where are the stats? Or people just google for NodeJs server, see the top response being Express and just do that. The cycle then repeats. Have people promoting it actually benchmarked, compared and investigated all the tools before making this informed decision? I'm sure you've heard from each and everyone 1 of them to know the answer eh.
-
Why is the bash package outdated?
If anyone else is wondering (but it's probably just me), "compatibility level 50" doesn't mean that Bash has a complicated feature-detection algorithm that places compatibility on a scale from 0 to 100%. "Level 50" just means compatibility with bash 5.0.
-
Can someone help me understand this code?
The bash shell also has code in it to check for this same magic number. This is because bash is also available on systems where the kernel doesn't do #! processing, but people would still want their scripts to behave in a predictable manner. You can see this in execute_cmd.c from the current bash source code.
-
Why does foreground job ignore job control signals when Bash is running as pid 1?
Well, have you looked at the bash source? The error message is around line 4481 in this file: https://github.com/bminor/bash/blob/master/jobs.c
-
locate-exit: make your script say which line and why it finished execution
Was it some ancient bug? I cant seem to find a mention of it in bash changelog
-
How are bash shell's functions like `history` are set up and executed?
Here is Bash's source code.
-
Suicide Linux
After I made the comment I actually decided to look up BASHs source code and here appears to be the part that handles errors if the filename is to be believed https://github.com/bminor/bash/blob/master/error.c
-
How do CP and MV work?
I present you a middle case: here's the source code for Gnu bash's cp command.
- I finally figured out C++ and I like it
What are some alternatives?
protoc-gen-validate - Protocol Buffer Validation - Being replaced by github.com/bufbuild/protovalidate
ngs - Next Generation Shell (NGS)
telefunc - Remote Functions. Instead of API.
thefuck - Magnificent app which corrects your previous console command.
withtyped - ๐คน Type-safe RESTful framework for fullstack with all native implementation.
coreutils - upstream mirror
jest-extended - Additional Jest matchers ๐๐ช
shell-safe-rm - ๐ Safe-rm: A drop-in and much safer replacement of bash rm with nearly full functionalities and options of the rm command! Safe-rm will act exactly the same as the original rm command.
garph - Fullstack GraphQL Framework for TypeScript
server - :desktop_computer: Simple and powerful server for Node.js
zod - TypeScript-first schema validation with static type inference
express-promise-ro