Introducing Yedra: An Open-Source Library by 0CodeKit

Meet Yedra, a reliable open-source library designed for faster & more efficient web development that simplifies data validation, endpoint documentation & more!

Published
July 11, 2024

Yedra is a next-generation web framework dedicated to TypeScript web development. It allows experienced developers to build web applications faster, optimize reliability, and generate high-quality documentation. This framework needs some programming knowledge, which of course makes it an ideal tool for skilled developers.

But First, What is an Open-Source Library?

In computer science, an open-source library refers to a collection of pre-written that a developer can use as the base of their programs. These libraries facilitate the work of many programmers by offering pre-determined classes, functions and templates that can later be modified to meet specific requirements or create mew functions just by changing the source code.

The main characteristic of open-source libraries is that anyone can use, change, and share them under certain rules called licenses. Some popular licenses are MIT, GPL, and Apache. This means that the code is open for everyone to look at how it works, learn from it, and even improve it.

What is Yedra?

Yedra is a web development framework for TypeScript, which facilitates simple tasks like data validation and routing. We take other developer's open-source libraries as a base to create our own, integrating features like validity systems from Zod and a route system like Express. Yedra is designed to be simple and easy to use for specific tasks. However, it doesn't allow custom middleware or handle data formats other than JSON.

Why We Created Yedra

While performing the infrastructure migration, we realized that there was a need to improve the documentation of our endpoints. Consequently, Yedra was created to solve this problem by building a well-built documentation with automatic data validation and better error messages. It not only improves our internal systems, but it also shows users our dedication to innovative and qualitative development.

Key Features

  • Automatic Documentation: Enables automatic creation of OpenAPI documentation for every endpoint.
  • Data Validation: Checks the query parameters, headers and the request/response body for data consistency.  

Final Remarks

Take your chance on Yedra and make web development less complicated.  

For more details, you can visit our GitHub repository or npm.js!

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.