Platformatic v0.18.0 - GraphQL and OpenAPI support for Service, automatic config update, and many more fixes

Search for a command to run...

No comments yet. Be the first to comment.
Nitro is a server toolkit used by many JavaScript applications. You can use it on its own for APIs or full-stack servers, or combine it with Vite to get a familiar frontend workflow with a Nitro serve

All durable execution engines give the same versioning advice: pin your runs. Temporal pins runs to worker builds. Vercel's Workflow SDK pins each run to the deployment that started it. Azure Durable

Eve organizes AI agents in a simple way: use Markdown for instructions and skills, TypeScript for tools, and separate files for channels, schedules, and subagents. Behind this setup, Eve relies on the

Picture an online store launching a new product and sending out a mailing list campaign. Thousands of users click the same link at once. The product page, built with a Node.js app like Next.js, needs

How Platformatic ICC Outperforms AWS ECS Target Tracking and Step Scaling

Hey Folks, we have been working hard in the last week to help reduce friction while building backend development. Unfortunately, this has led to a breaking change.
In Platformatic DB, you used to write:
{
"core": {
"connectionString": "..."
}
}
Now you should write instead:
{
"db": {
"connectionString": "..."
}
}
We made this change to better support Platformatic Service. However, you would not have to make any changes as your config file will automatically update while loading.
Platformatic Service can be configured to automatically expose OpenAPI and GraphQL schemas by providing the following configuration:
{
"service": {
"graphql": true,
"openapi": true
}
}
A complete set of options is also available! Make sure to check the configuration docs as well as @fastify/swagger and Mercurius.
This feature was implemented in #783
In version v0.17.0, we introduced a new platformatic upgrade command to allow you to upgrade to the latest configuration format easily. This same behavior is now applied whenever you start Platformatic DB or Platformatic Service, so you would not miss an update.
This feature was implemented in #784
Platformatic Service now has its own typescript generator in npx create-platformatic@latest:
import { FastifyInstance, FastifyPluginOptions } from 'fastify'
export default async function (fastify: FastifyInstance, opts: FastifyPluginOptions) {
fastify.get('/', async (request, reply) => {
return { hello: fastify.example }
})
}
This change was implemented by @dongheeleeme in [#757}(https://github.com/platformatic/platformatic/pull/757).
Platformatic DB and Platformatic Service now allows you to completely configure the OpenAPI schema:
{
"db": {
...
"openapi": {
...
"security": [{ "bearerAuth": [] }],
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"bearerFormat": "JWT"
}
}
}
}
}
}
This feature was implemented by @rozzilla in #779 and #785
server schema by @abdelrazzaq-dev in #738