truss
joist-orm
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.
truss
-
StyleX – Meta's Styling Library
Nice! We copied StyleX's "type-safe extensions" in Truss [1] so things like `` are allowed (setting margin is fine) while disallowing `` (anything "not margin") that would mess up the components internal impl details with a compile error.
That said, we don't actually use the feature that much, vs. higher-level logical props like ``.
I know we're supposed to use build-time CSS-in-JS these days, but afaiu they don't support the rare-but-handy "just spread together ~4-5 different object literals from ~random different conditionals + props", i.e. intermixing styles some inside the component + outside the component, which emotion handles really well.
Basically this [2]. StyleX says it does "cross-file styles"...but can it support that? I kinda assume not, but I'm not sure.
[1]: https://github.com/homebound-team/truss#xstyles--xss-extensi...
[2]: https://github.com/homebound-team/beam/blob/main/src/compone...
-
What working with Tailwind CSS every day for 2 years looks like
Fwiw to the avoid 80%-in-TW / 20%-in-SCSS-or-something-else dichotomy/complexity, we built Truss which brings TW (Tachyons) style abbreviations to the existing "something else" tool chain (Emotion in our case).
So then everything goes through a single system.
https://github.com/homebound-team/truss
> tailwind's and SCSS's VS code integration is pretty amazing
We get that too, by being just vanilla TypeScript, no editor-specific integration necessary. :-D
(I've linked to Truss in another response, so will stop now. :-))
- Why Tailwindcss over styled-components?
- Ask HN: Who is hiring? (November 2021)
-
TailwindCSS JIT with Arbitrary Values
Don't want to take away from Tailwind, it's great.
That said, self-promotion disclaimer but if you like inline/utility CSS, and also like TypeScript/React/Emotion, we've got a "Tailwinds-ish" CSS-in-JS library that we've enjoyed so far:
https://github.com/homebound-team/truss
joist-orm
-
Which ORM would you pick, Prisma or Typeorm
As few comments have already offered alternatives, so I'll mention Joist.
-
Does Typeorm violate the type contract when using relations that aren't explicitly loaded?
I used TypeORM in the past; I had a ton of problems with it. I highly recommend https://joist-orm.io/ instead.
-
What is your favorite way to maintain types and schema in a full stack web app, end-to-end?
Codegen our backend models directly from the db (here a strict 1-1 mapping is a feature imo; we use https://github.com/stephenh/joist-ts/), so we get `Green` added to the backend `Color.ts` for free.
- Joist: An idiomatic ORM library for TypeScript
-
Complex business logic in Node
If you like Rails/ActiveRecord, Joist is our attempt at a "AR-or-better productivity" ORM for TypeScript.
-
Well, shit. Objection.js has been sunset, which ORM/querybuilder did you move to?
Ha, well, as you noted, I'm wary of even bothering to comment :-), but would be great if you checked out Joist: https://joist-orm.io/
-
Looking for a type safe ORM/mapper
Checkout https://github.com/stephenh/joist-ts built from the ground up to be typesafe.
- Ask HN: Who is hiring? (November 2021)
- I used Typeorm in one of our projects and I have nothing but regrets
- What do you think about ORMs?
What are some alternatives?
docker-node-example - An example Node / Express app that's using Docker and Docker Compose.
pg-mem - An in memory postgres DB instance for your unit tests
headwind - An opinionated Tailwind CSS class sorter built for Visual Studio Code
beam - 🪵 Beam Design System
class-types.macro
graphql-typescript-factories - TypeScript test builders/factories for GraphQL schemas
studio - 🎙️ The easiest way to explore and manipulate your data in all of your Prisma projects.
tailblocks - Ready-to-use Tailwind CSS blocks.
kysely - A type-safe typescript SQL query builder
TimescaleDB - An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
slonik - A Node.js PostgreSQL client with runtime and build time type safety, and composable SQL.