A List of all my tech-stacks and useful libraries
- https://github.com/lucacasonato/fresh - Web Framework on deno with islands architecture and Server-Side Rendering
- https://hono.dev/ - [炎] means flame🔥 in Japanese - is a small, simple, and ultrafast web framework for the Edges
- also for node!
- zod (deno + node)
- available for node and deno!
- great background knowledge post: https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/
- logdownjs - A simple logging framework working in node and browsers (and therefore also in deno)
- Problem: Only CJS available (needs compat settings when compiling through tsc)
- Rejected: pinojs Very small but usefull nodejs logging framework
- NEW: roarr - Tested all popular libs before, wrote a better new one
- a logger that I can use in an application code and in dependencies.
- a logger that allows to correlate logs between the main application code and the dependency code.
- a logger that works well with transports in external processes.
- knip Cleanup of unused dependencies
- concurrently - Running serve/watch tasks in parallel
- with nice color coding of stdout and input handling!
- dot-json - edit json files from cli for easy changes, for example versions in package.json
- tsx - node.js runtime with extended esm and typescript support (replaced esno and esm for me)
2024-06-26: Replace all of them with vite + this plugin to list dir contents <3 :
Legacy
- live-server - dev server with watch mode + cors
- bje-2022-01-24: seems hacked or something, outputs gibberish on cli when executing
- @web/dev-server - possible alternative to lite-server - VERY NICE!
- Problem: does not support cors out of the box
- Update: Does support cors, but only with a custom middleware
- lite-server - sleek SPA webserver
(from big OSS guy johnpapa, but seems only a small wrapper for url rewrite for SPAs to index.html) - http-server - simple static web server (great for serving WebComponent bundles from local node_modules)
Tip: How to optimize Express Server in Production:
http://expressjs.com/en/advanced/best-practice-performance.html#proxy
- @preconstruct/cli
- endorsed by Matt Pocock here (in 2023): https://www.youtube.com/watch?v=sZ6vkIQMwT8
- only for js code (no typescript support out of the box)
- tsup - recommended - a zero-config CLI for building TypeScript libraries
- https://tsup.egoist.sh/
- also endorsed by Matt Pocock here (in 2023): https://www.youtube.com/watch?v=eh89VE3Mk5g
- Multi-Step Task lists for your cli apps! https://listr2.kilic.dev/
-
Simple Deno file_server
Install withdeno install --allow-net --allow-read -n serve https://deno.land/std/http/file_server.ts
Available for node with:npm i -D deno-file-server
Options:
USAGE: file_server [path] [options] OPTIONS: -h, --help Prints help information -p, --port <PORT> Set port --cors Enable CORS via the "Access-Control-Allow-Origin" header --host <HOST> Hostname (default is 0.0.0.0) -c, --cert <FILE> TLS certificate file (enables TLS) -k, --key <FILE> TLS key file (enables TLS) --no-dir-listing Disable directory listing --no-dotfiles Do not show dotfiles -v, --verbose Print request level logs
- ElysiaJS - sieht extrem gut aus, mit Plugins für Lucia Auth, Websockets, Swagger, TRPC
- Works in any runtime - Node.js, Bun, Deno, Cloudflare Workers
- Extensive database support out of the box
Caution: Use nginx for serving static files in production in a docker container!
https://stackoverflow.com/questions/44796056/whats-the-better-approach-serving-static-files-with-express-or-nginx
-
NEW: Wails wrap webapps in golang for desktop
-
NEW: Tauri wrap webapps in Rust for desktop
- Fauna DB - cursom query language - not recommended
- Heroicons - Free, MIT licensed high quality SVG icons (from Tailwind guys)
- Heropatterns - Free, MIT licensed SVG patterns (from Tailwind guys)
- Static Hosting: https://surge.sh/
- Dynamic JS/TS Hosting (for Astro):
- Docker Container:
- full virtual servers: