• This repository has been archived on 18/May/2024
  • Stars
    star
    227
  • Rank 175,900 (Top 4 %)
  • Language
    TypeScript
  • Created almost 4 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TypeORM helper library enhancing safety in the compilation level

Safe-TypeORM

logo

GitHub license npm version Downloads Build Status Guide Documents

Make anyorm to be real typeorm.

safe-typeorm is a helper library of typeorm, enhancing type safety like below:

  • When writing SQL query,
    • Errors would be detected in the compilation level
    • Auto Completion would be provided
    • Type Hint would be supported
  • You can implement App-join very conveniently
  • When SELECTing for JSON conversion
    • App-Join with the related entities would be automatically done
    • Exact JSON type would be automatically deduced
    • The performance would be automatically tuned

JoinQueryBuilder

Setup

npm install --save [email protected]
npm install --save safe-typeorm

Just install through npm install command.

Note that, safe-typeorm supports only typeorm v0.2 yet.

Features

About supported features, see Guide Documents

Appendix

Typia

GitHub license npm version Downloads Build Status Guide Documents

// RUNTIME VALIDATORS
export function is<T>(input: unknown | T): input is T; // returns boolean
export function assert<T>(input: unknown | T): T; // throws TypeGuardError
export function validate<T>(input: unknown | T): IValidation<T>; // detailed

// STRICT VALIDATORS
export function equals<T>(input: unknown | T): input is T;
export function assertEquals<T>(input: unknown | T): T;
export function validateEquals<T>(input: unknown | T): IValidation<T>;

// JSON
export function application<T>(): IJsonApplication; // JSON schema
export function assertParse<T>(input: string): T; // type safe parser
export function assertStringify<T>(input: T): string; // safe and faster
    // +) isParse, validateParse 
    // +) stringify, isStringify, validateStringify

Typia is a transformer library of TypeScript, supporting below features:

  • Super-fast Runtime Validators
  • Safe JSON parse and fast stringify functions
  • JSON schema generator

All functions in typia require only one line. You don't need any extra dedication like JSON schema definitions or decorator function calls. Just call typia function with only one line like typia.assert<T>(input).

Also, as typia performs AOT (Ahead of Time) compilation skill, its performance is much faster than other competitive libaries. For an example, when comparing validate function is() with other competitive libraries, typia is maximum 15,000x times faster than class-validator.

Nestia

GitHub license npm version Downloads Build Status Guide Documents

Nestia is a set of helper libraries for NestJS, supporting below features:

  • @nestia/core: 15,000x times faster validation decorators
  • @nestia/sdk: evolved SDK and Swagger generators
    • SDK (Software Development Kit)
      • interaction library for client developers
      • almost same with tRPC
  • nestia: just CLI (command line interface) tool

nestia-sdk-demo

Reactia

Not published yet, but soon

GitHub license Build Status Guide Documents

Reactia is an automatic React components generator, just by analyzing TypeScript type.

  • @reactia/core: Core Library analyzing TypeScript type
  • @reactia/mui: Material UI Theme for core and nest
  • @reactia/nest: Automatic Frontend Application Builder for NestJS

Sample

When you want to automate an individual component, just use @reactia/core.

import ReactDOM from "react-dom";

import typia from "typia";
import { ReactiaComponent } from "@reactia/core";
import { MuiInputTheme } from "@reactia/mui";

const RequestInput = ReactiaComponent<IRequestDto>(MuiInputTheme());
const input: IRequestDto = { ... };

ReactDOM.render(
    <RequestInput input={input} />,
    document.body
);

Otherwise, you can fully automate frontend application development through @reactia/nest.

import React from "react";
import ReactDOM from "react-dom";

import { ISwagger } "@nestia/swagger";
import { MuiApplicationTheme } from "@reactia/mui";
import { ReactiaApplication } from "@reactia/nest";

// swagger.json must be generated by @nestia/sdk
const swagger: ISwagger = await import("./swagger.json");
const App: React.FC = ReactiaApplication(MuiApplicationTheme())(swagger);

ReactDOM.render(
    <App />,
    document.body
);

More Repositories

1

typia

Super-fast/easy runtime validators and serializers via transformation
TypeScript
4,547
star
2

nestia

NestJS Helper Libraries + TypeScript OpenAPI generator
TypeScript
1,814
star
3

backend

A template repository for TypeScript backend server
TypeScript
639
star
4

tstl

TypeScript-STL (Standard Template Library, migrated from C++)
TypeScript
603
star
5

prisma-markdown

Markdown generator of Prisma, including ERD and descriptions
TypeScript
432
star
6

payments

Korean Payment System with Mockup servers of PGs
TypeScript
332
star
7

tgrid

TypeScript RPC (Remote Procedure Call) for WebSocket and Worker protocols
TypeScript
142
star
8

fake-iamport-server

Fake Iamport Server with Real SDK
93
star
9

framework

Deprecated, use TGrid instead
C++
71
star
10

resume

CSS
53
star
11

astl

Standard Template Library for AssemblyScript
TypeScript
38
star
12

nestia-helper

NestJS helper with Type level
TypeScript
34
star
13

mutex

Mutex Server using WebSocket
TypeScript
29
star
14

openapi

OpenAPI definitions, converters and LLM function calling application composer.
TypeScript
28
star
15

bbs-backend

Simple Bullet-in Board System Backend
TypeScript
24
star
16

sxml

Simple XML Library for TypeScript (JavaScript)
TypeScript
16
star
17

nestia-start

Nestia template project installed by "npx nestia start"
TypeScript
16
star
18

fast-object

Fast object creator, via JSON.parse(), but type safe
TypeScript
16
star
19

shopping-backend

Shopping Mall Backend Server made by NestJS + Prisma for Education
TypeScript
11
star
20

websocket-polyfill

WebSocket class from Browser to NodeJS
TypeScript
11
star
21

ecol

Event Collections
TypeScript
9
star
22

samchon

8
star
23

json-translator

Translate JSON file via Google Translate API with optimization strategies
TypeScript
6
star
24

cagen

Number of Case Generator
TypeScript
5
star
25

schedules

Open source development schedule of Samchon
5
star
26

big-associative

Big associative containers who can store over 14M elements.
TypeScript
5
star
27

encrypted-fetcher

Rest API Fetcher with AES Encryption
TypeScript
4
star
28

typedoc-plugin-exclude-references

temporary plug-in
TypeScript
4
star
29

environments

My development environments
4
star
30

import2

lazy import function who can prevent transpiled to require
JavaScript
4
star
31

tgrid.project.chat

Demo Project - Chat Application
TypeScript
4
star
32

safeorm

Ultimate Safe ORM for the TypeScript
TypeScript
4
star
33

nestjs-websocket-example

Example WebSocket server of NestJS with Nestia
TypeScript
3
star
34

nestia-fetcher

Fetcher library for the Nestia
TypeScript
3
star
35

oss-2019

κ³΅κ°œμ†Œν”„νŠΈμ›¨μ–΄ κ°œλ°œμžλŒ€νšŒ 2019
CSS
2
star
36

URLVariables

URLVariables class for TypeScript
TypeScript
2
star
37

nestjs-custom-decorator-exception-filter

2
star
38

nestjs-study-router-module

To support RouterModule in Nestia
TypeScript
1
star
39

prisma-bug-report-postgres-timestampz

A prisma bug reproduction repo for reporting about `timestampz` type in Postgres
1
star
40

nestia-auto-crud-example

For https://github.com/samchon/nestia/issues/670
TypeScript
1
star
41

tgrid.com

Guide Documents for TGrid
HTML
1
star
42

tgrid.projects.market

Demo Project - Grid Market
TypeScript
1
star
43

gitbook-plugin-hide-navigation-buttons

Gitbook Plugin: Hide Navigation Buttons
CSS
1
star
44

timetable

Hansung Timetable
ActionScript
1
star
45

tgrid.examples

Example Source Codes for TGrid
TypeScript
1
star
46

samchon.github.io

My homepage
HTML
1
star
47

gitbook-plugin-scroll-to-top

JavaScript
1
star
48

ts-patch-typescript-v5.3-test

JavaScript
1
star
49

nestia-sdk-template

Nestia SDK Template Repository for `@nestia/migrate`
TypeScript
1
star