crosswalk
oto
crosswalk | oto | |
---|---|---|
3 | 3 | |
83 | 726 | |
- | 2.1% | |
0.0 | 5.7 | |
almost 2 years ago | about 2 months ago | |
TypeScript | Go | |
- | MIT License |
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.
crosswalk
-
TypeScript and SQL: Six Ways to Bridge the Divide
The lack of RTTI in TypeScript _is_ definitely a pain but the jump to "must use decorators" and "TypeScript is not a server language" is unjustified. There are many approaches to validation and RTTI with TS. For example, you can generate JSONSchema from your TS types (see https://github.com/danvk/crosswalk for an example of this approach) or you can use a tool like Zod (https://zod.dev/) to declare your schemas as runtime values and derive TS types from those.
Writing your backend in Java or C# comes with its own issues, i.e. you can't share code between backend and frontend.
-
tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy
I built something that sounds very similar at my last company called crosswalk. Open sourced here: https://github.com/danvk/crosswalk
One thing that worked surprisingly well: codegen TypeScript types from your database and use those in your API schema.
- recommended design pattern for TS+express?
oto
- tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy
-
Generating OpenAPI 3.0 specs from code - what's working for me...
For new projects, I can probably use https://github.com/pacedotdev/oto and stick with an RPC style, but I've got lots of REST services that include URL params and GET requests to document, hence writing this.
-
Generate types for TS
You should check out https://github.com/pacedotdev/oto.
What are some alternatives?
vellum-client-generator - Vellum’s Fern API which is used to generate SDKs.
sdk-node - Node.js SDK for the Squidex API
fern-java - Generate Java models, clients, and server interfaces from your API definition.
zact - Nothing to see here
transmission-material-ui - Web Interface for Transmission using React and MUI.
vellum-client-python - Python SDK for Vellum API
typescriptify-golang-structs - A Golang struct to TypeScript class/interface converter
ts-websocket-compressor - This library compresses data sent over a WebSocket connection to improve throughput on devices that can't use compression for one reason or another.
openapi-typescript - Generate TypeScript types from OpenAPI 3 specs
stytch-t3-example - An example app demonstrating how to use Stytch within the T3 stack