Gosu
openapi-typescript-codegen
Gosu | openapi-typescript-codegen | |
---|---|---|
15 | 9 | |
1,975 | 2,673 | |
0.5% | - | |
6.8 | 9.6 | |
14 days ago | 3 days ago | |
C++ | TypeScript | |
GNU General Public License v3.0 or later | 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.
Gosu
-
Crystal2Day: A simple 2D game framework in Crystal
For the beginning, it will be a simple 2D game library (or glorified SDL wrapper :D), similar to Ruby libraries like https://www.ruby2d.com/ or https://www.libgosu.org/ , albeit with some additional functions typical to 2D games (like scenes, maps, entities, ...) available. This is something I'm still missing in Crystal (there are some bindings for C libraries and some early or abandoned approaches, but that's about it).
-
My Ruby game library, MiniGL, has surpassed 100,000 total downloads
Sorry, I just realized that I only linked to Gosu's Linux instructions, but in their wiki there's also a page for Windows and another one for Mac OS.
-
ruby2d vs pygame
I didn't use these frameworks but if you want to go with Ruby, I would recommend Gosu, which is more active than Ruby2D (they have a pretty active Discord server). Since it's a bit low-level, you could also use my gem MiniGL which builds on Gosu to make a lot of things easier, and I also actively maintain.
- Don't make me think, or why I switched to Rails from JavaScript SPAs
-
My solo-developed, Ruby powered, platformer game Super Bombinhas will be available soon on Steam!
By the way, it's worth mentioning that there's a .deb for Debian-based distros that you can get for free on https://victords.itch.io/super-bombinhas. Also, if you're willing to do a bit more work, you should also be able to run it on Mac - you'd just have to install Ruby and the Gosu and MiniGL gems, then clone the game's repo and follow the Readme.
- Video-sources for learning Ruby from scratch
-
Started working on an isometric RPG project
Hi! I've wanted to create an RPG inspired by the first Paper Mario games for a long time, but having to deal with 3D graphics was always a blocker for me... So I finally managed to create an isometric 3D "engine" using only 2D libraries (Gosu and MiniGL) and I'm happy with the results so far.
-
Libraries for other languages similar to Ebiten?
Gosu (Ruby)
-
What game engine is good for ruby?
I've not used it myself in about 5 years but it looks like they have a pretty good tutorial on getting started on their wiki https://github.com/gosu/gosu/wiki/Ruby-Tutorial
-
A small sample of the large amount of content from the free and open source 2D platformer Super Bombinhas, written in Ruby. Download on https://victords.itch.io/super-bombinhas
Neither, I use Gosu and my own little library, MiniGL.
openapi-typescript-codegen
-
Django 5.0 Is Released
I’d also add that if you use Typescript with an OpenAPI client generator (https://github.com/ferdikoomen/openapi-typescript-codegen) it can immensely alleviate some of the biggest pain points of seperate backend and front-end. It always used to be a major pain in the ass with the amount of overhead an API change would incur - updating documentation, postman, constant communication between backend and front-end devs, etc. Now I just npm run generate, I see new API changes in my Git client and Typescript errors for code that needs updating.
Also, using a library like Tanstack Query or Rdtk Query can almost completely eliminate manual state management, and kinda makes the whole development experience feel almost like SSR.
-
Ask HN: What would you use to build a mostly CRUD back end today?
I have been in love with Loopback.io since v2 even though it was a bit of a rollercoaster.. Loopback v4 is a beautiful library. Its been around longer than nestjs but that's the easiest thing to compare it too. I recently have been creating lb4 servers that interface nextjs and react native clients. Initially, I identify my entities and use cases that I want to build. I then use the lb4 cli to auto generate models, relations, controllers, datasources, interceptors (add logic on methods/classes). I can start testing them with the OpenAPI explorer. With the openapi-typescript-codegen library I can generate services from my lb4 OpenAPI spec that I can use on the client side. From there, you can really query data easily with the loopback filter (which can be used on the client too). I initially started doing this with angular1/2+ but its been pleasant using many clients. Even though I have been leveraging it for years in production, I am still learning and exploring. There are many other awesome things I can expand on or explain if you are interested!
https://loopback.io/doc/en/lb4/
https://github.com/ferdikoomen/openapi-typescript-codegen/tr...
-
tRPC – Move Fast and Break Nothing. End-to-end typesafe APIs made easy
In our current project with a TS frontend and Python backend, we use an OpenAPI schema as the source of truth and openapi-typescript-codegen [0] to interface with it on the client side. While not perfect, it provides a very nice interface to our API with request/response typings.
I also wrote a 10-line mock API wrapper that you can call as mockApi((request) => response), and it will type-check that your mock function implements the API correctly.
[0]: https://github.com/ferdikoomen/openapi-typescript-codegen
-
Is it possible to create a dynamic type/interface from API response
Second step is to generate typescript types from the backend's spec. You can use a library like this.
- Voi va generați modele automat pe FE?
-
A minimalist backend REST API in NodeJS
openapi-typescript-codegen Generates a Typescript client with interfaces from an OpenAPI spec.
-
Merging duplicate interfaces
I'm not familiar with all the options openapi-generator has. I tried it awhile ago and found it quite buggy, and more of a pain to run, especially if you're not already doing Java development. I ended up preferring OpenAPI Typescript Codegen, which is written in Typescript. One option it has which would solve the problem you're running into here, is that you can tell it to use union types instead of enums. So your interfaces would be generated as
-
Don't make me think, or why I switched to Rails from JavaScript SPAs
I'm currently working on two separate projects, the first is a Django project with DRF and I codegen with drf-spectacular [1] and openapi-typescript-codegen [2]. The other project also uses Django, with the API through Hasura and codegen with graphql-codegen [3]. In both of these cases I've been able to largely avoid duplicating my models clientside, or at least it isn't manual.
1: https://github.com/ferdikoomen/openapi-typescript-codegen
2: https://drf-spectacular.readthedocs.io/en/latest/
3: https://github.com/dotansimha/graphql-code-generator
-
Need some advice on how do do my webapp (front + backend)
For typescript client code generation, I typically use something like openapi-typescript-codegen, but there are a lot more generators (like the openapi-generator project) that are imperfect in their own ways, I'm sure you can find one that works for you.
What are some alternatives?
ruby2d - 🎨 The Ruby 2D gem
openapi-client-axios - JavaScript client library for consuming OpenAPI-enabled APIs with axios
Gamebox - A game template for building and distributing Gosu apps.
orval - orval is able to generate client with appropriate type-signatures (TypeScript) from any valid OpenAPI v3 or Swagger v2 specification, either in yaml or json formats. 🍺
Yeah - Ruby video game framework
SvelteKit - web development, streamlined
ocra - One-Click Ruby Application Builder
Devise Token Auth - Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.
Phaser - Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering. [Moved to: https://github.com/phaserjs/phaser]
graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
minigl - A minimal Game Library built on top of the Gosu gem.
openapi-generator - OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)