orchid-orm-benchmarks
json-schema-spec
orchid-orm-benchmarks | json-schema-spec | |
---|---|---|
6 | 32 | |
12 | 3,366 | |
- | 4.4% | |
6.2 | 8.4 | |
7 months ago | 4 days ago | |
TypeScript | JavaScript | |
- | GNU General Public License v3.0 or later |
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.
orchid-orm-benchmarks
-
How do you create test cases for APIs?
Here are my tests for an example project. The logic is quite straightforward: create db records, make a request, check the response, and if it was a mutating request check how it affected the database.
-
Examples of APIs that follows the best practices and are production ready on Github?
And if you like to see a random example project here is mine, but my point is that a random project won't really help because each project has a unique set of frameworks/libs/practices and it changes almost everything.
-
Announcing a new TypeScript ORM
Or you can clone this examples repo and play with the Blog API code.
-
Is there a good example of a real world NodeJS API project?
I have an example app, and have written documentation based on it, and I'd appreciate it if you could look and give some feedback. Yes, the doc is about ORM, but imagine the ORM is just an implementation detail and instead look at how validations, controllers, repos, and especially tests are done. Source code, and long boring tutorial about it. Really, check the tests here, they are special. It doesn't have "service" because the app is too simple, but I usually have a service layer as a files with exported functions. Error handling is in app.ts.
-
Rate my project made with Express + TS
I keep all routes in a separate file: routes.ts, in case of multiple API versions it could be "routes.v1.ts", "routes.v2.ts" and so on. v1 and v2 can reuse the same controllers.
-
Writing & organizing Node.js API Tests the right way
I wrote some tests for sample app as well, maybe could be interesting for you to check it out: here, criticism is welcome, just as I like to criticize
json-schema-spec
-
Validating the right way: API gateway with JsonSchema
If the caller was the responsible, then I should try and find something to validate things at it's side. That's when I found the input validation with JSON Schema. As stated in its official website
-
Demystifying the Protobuf Wire Format
To be fair, if that's what you need ProtoBuf isn't the only option. Cap'n Proto[1], JSON Schema[2], or any other well supported message-definition language could probably achieve that as well, each with their own positives and negatives.
[1]: https://capnproto.org/
[2]: https://json-schema.org/
- Python JSON schema
-
TypeSpec: A New Language for API-Centric Development
Yep and that comes from JSON Schema: https://json-schema.org/
I believe recent versions of OpenAPI are "compatible" with JSON Schema (at least they "wanted to be" last I checked as I was implementing some schema converters).
Even TypeScript is not enough to represent all of JSON Schema! But it gets close (perhaps if you remove validation rules and stuff like that it's a full match).
But even something like Java can represent most of it pretty well, specially since sealed interfaces were added. I know because I've done it :).
- JSON Schema Blog
-
Deploy a simple data storage API with very little code using Amazon API Gateway and DynamoDB
models.tf where I centralized all the Data model that API Gateway uses to perform input and output checks. Those use the JSON-schema specification. GitHub - psantus/serverless.api-gateway-dynamodb-integration.terraform
- Unlocking the frontend – a call for standardizing component APIs pt.2
- JSON Schema
-
How to Automatically Consume RESTful APIs in Your Frontend
In the meantime, we are going to expand our backend with two endpoints: one for fetching data and another one for creating data. Fastify provides out-of-the-box support for API serialization and validation through its schema-based approach built on top of JSON Schema. Through the schema option, we can attach a schema definition to each route.
-
A View on Functional Software Architecture
JSON-schema to define templates for request and response contents.
What are some alternatives?
projecthunt-api - API for projecthunt a project hunting platform
outlines - Structured Text Generation
swagger-petstore
guidance - A guidance language for controlling large language models.
nodejs-integration-tests-best-practices - ✅ Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (March 2024)
uplaybook - A python-centric IT automation system.
survey-manager - A survey manager and creator project with node, typescript and react
nix-configs - My Nix{OS} configuration files
node-rest-starter - A Node.js starter containing common components and services as a reference API.
OpenAPI-Specification - The OpenAPI Specification Repository
kysely - A type-safe typescript SQL query builder [Moved to: https://github.com/kysely-org/kysely]
torch-grammar