TypeScript Code Design

Open-source TypeScript projects categorized as Code Design

Top 23 TypeScript Code Design Projects

  • react-router

    Declarative routing for React

    Project mention: Beginner's Guide To React Router (v6) | dev.to | 2022-11-28
  • react-hook-form

    📋 React Hooks for form state management and validation (Web + React Native)

    Project mention: How to Confidently Write Unit Tests using React Testing Library | dev.to | 2022-12-01

    Also, instead of managing the state and onChange handler yourself, you can use a very popular react-hook-form library.

  • Zigi

    Workflow assistant built for devs & their teams. Automate the mundane part of your day, with live actionable messages for your GitHub & Jira tasks.

  • TanStack Query

    🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue.

    Project mention: Consuming a Rails API with a NextJs client | dev.to | 2022-11-28

    **React Query is the link between the Rails and NextJs **Working together with Axios (my code), it is a great option to consume the REST API (and GraphQL). You have the access to: isLoading, isError, data, error, and others. It is a very easy way to load data and rescue errors.

  • react-redux

    Official React bindings for Redux

    Project mention: Consuming a Rails API with a NextJs client | dev.to | 2022-11-28

    tl;dr; Previously here, I wrote about how to write a modern web application using Rails as a full-stack framework. Just writing HTML and Vanilla Javascript. Now we will go ahead creating a React client App using NextJs. The existing API has the following endpoints: GET /api/kit/products(.:format) POST /api/kit/products(.:format) GET /api/kit/products/:id(.:format) PATCH /api/kit/products/:id(.:format) PUT /api/kit/products/:id(.:format) DELETE /api/kit/products/:id(.:format) Enter fullscreen mode Exit fullscreen mode In the new project, we have the same screen as before: We have a lot of customized components: src/components/ ├── Form │ ├── Actions.tsx │ ├── Input.tsx │ └── index.tsx ├── Layout │ ├── Page.tsx │ ├── Sidebar.tsx │ └── index.tsx ├── Loading.tsx ├── LoadingOverlay.tsx ├── Notification.tsx ├── Products │ ├── Form.tsx │ └── Sidebar.tsx └── SearchList ├── Form.tsx ├── ListItem.tsx └── index.tsx Enter fullscreen mode Exit fullscreen mode But our pages are simple and short. For example, take a look at the products page code: Highlights **NextJs is just a choice, not a requirement **The API made using Ruby on Rails is completely independent of the Next JS client application developed with NextJs. You could use any RESTfull client application to consume the existing API. In my project, I am using the NextJs project as a subfolder of my Rails repository, but you could put it anywhere. Why Next JS **I already worked with React Router and React Navigation, but when I knew the **Next/Router and all related features, as the **Next/Link**, I loved it. We can use partial load and caches. Get more info here. **Conventions **You can create your own convention for your own projects. But, in my opinion, it is beneficial to use a convention that is popular and validated in production by many other developers. Like Ruby on Rails, NextJs gives you a directory structure, core resources (link, routes, image, etc.) and rich documentation. **SSR **After to create a few projects using SPA, it doesn’t seem to me a good choice for big projects. So, for now, I am using SSR with NextJs. The main use of SSR is to improve the SEO, but like this approach to offer the a better UX. **React Query is the link between the Rails and NextJs **Working together with Axios (my code), it is a great option to consume the REST API (and GraphQL). You have the access to: isLoading, isError, data, error, and others. It is a very easy way to load data and rescue errors. **React Context **I don’t like https://react-redux.js.org/, it brings a complexity to the project that I don’t think soo is a good thing. But we can use the React Context and React Reducer to offer a store and events to manager states of the application. You can see the it on the project here https://github.com/raphox/rails-7-fullstack/tree/nextjs/frontend/src/contexts/products. *React components with namespace **It is something that I learned recently. I used it in my project to offer a way to override children of some components and prevent to set many properties throth the parent. Like in the following code: In the previous code, we have the namespace *SidebarPrimitive with nested Root, Header, and List components. I am using the Root component to wrap the content and I am passing the props to the respected child. **Tailwind **There are controversies related to it, but trust me, create a project using it and make sure that you don’t like or love it. Dependencies: https://tailwindcss.com/ “Tailwind CSS works by scanning all of your HTML files, JavaScript components, and any other templates for class names, generating the corresponding styles and then writing them to a static CSS file.” https://www.radix-ui.com/docs/primitives/utilities/slot “Merges its props onto its immediate child.” https://tanstack.com/query/ “Powerful asynchronous state management for TS/JS, React, Solid, Vue and Svelte” https://axios-http.com/ “Axios is a simple promise based HTTP client for the browser and node.js. Axios provides a simple to use library in a small package with a very extensible interface.” https://github.com/lukeed/clsx “A tiny (228B) utility for constructing className strings conditionally.” https://lodash.com/ “A modern JavaScript utility library delivering modularity, performance & extras.” https://react-hook-form.com/ “Performant, flexible and extensible forms with easy-to-use validation” https://github.com/jquense/yup “Yup is a schema builder for runtime value parsing and validation. Define a schema, transform a value to match, assert the shape of an existing value, or both.” The project rails-7-fullstack/frontend at nextjs · raphox/rails-7-fullstack External references: https://www.typescriptlang.org/ https://www.radix-ui.com https://reactjs.org/docs/context.html https://medium.com/@kunukn_95852/react-components-with-namespace-f3d169feaf91

  • electron-react-boilerplate

    A Foundation for Scalable Cross-Platform Apps

    Project mention: Implement sqlite3 with electron | reddit.com/r/electronjs | 2022-11-15

    Hi guys I'm using this electron-react boilerplate https://github.com/electron-react-boilerplate/electron-react-boilerplate and I want to use sqlite3 with it. The problem is I dont have the idea on how to implement it, I've been looking online for guides to follow but it's so confusing and doesn't work. What I want is the database can be access in development and production. Any help will be appreciated thanks.

  • reselect

    Selector library for Redux

    Project mention: Killing mutants to improve your tests | dev.to | 2022-11-07

    At my current client we're working on having a frontend architecture for writing SPAs in JavaScript similar to re-frame's one: an event-driven bus with effects and coeffects for state management[1] (commands) and subscriptions using reselect's selectors (queries).

  • apollo-client

    :rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.

    Project mention: React Server Components | reddit.com/r/reactjs | 2022-11-26
  • Sonar

    Write Clean JavaScript Code. Always.. Sonar helps you commit clean code every time. With over 300 unique rules to find JavaScript bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • nx

    Smart, Fast and Extensible Build System

    Project mention: How to Optimize Full-stack Development with Monorepos & Nx Monorepo | dev.to | 2022-12-01

    We now move onto Nx as a built tool. This tool provides the following benefits:

  • react-jsonschema-form

    A React component for building Web forms from JSON Schema.

    Project mention: How to build forms using the schema-first approach in React | reddit.com/r/javascript | 2022-11-09
  • formily

    📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3

    Project mention: Nativescript & Formily: A match made in heaven. | dev.to | 2022-10-21

    Enter Formily, by Alibaba which does exactly the above. With a JSON schema, forms can be generated whilst keeping control of the data model.

  • react-responsive

    CSS media queries in react - for responsive design, and more.

    Project mention: TailwindCSS + React Components, How do you handle responsiveness? | reddit.com/r/reactjs | 2022-11-25

    You can use react-responsive for JS media queries. Then pass props conditionally based on the media query. Alternatively make a "responsive" boolean prop and apply styles with Tailwind's responsive helpers if the prop is true.

  • effector-react

    Business logic with ease ☄️

    Project mention: [Question] Recommendations for an agnostic state management? | reddit.com/r/reactjs | 2022-10-05
  • React Figma

    ⚛️ A React renderer for Figma

  • Router5

    Flexible and powerful universal routing solution

  • universal-router

    A simple middleware-style router for isomorphic JavaScript web apps

    Project mention: Routing in React with Universal Router | dev.to | 2022-07-14

    A quick showcase of UniversalRouter (1.6kB zip) as an "easy" alternative to React Router.

  • JSONForms

    Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.

    Project mention: JSONForms | news.ycombinator.com | 2022-12-02
  • react-inlinesvg

    An SVG loader component for ReactJS

  • teaful

    🍵 Tiny, easy and powerful React state management

    Project mention: How to add custom types to a javascript library | dev.to | 2021-12-06

    Few weeks ago, I started contributing to an open source library called Teaful, a Tiny, EAsy, and powerFUL for React state management, with ambitious roadmap. Now Teaful reached more than 500 GitHub ⭐️ Stars, the library and his community are growing fast.

  • redux-first-history

    Redux history binding support react-router - @reach/router - wouter - react-location

    Project mention: Query parameter state with Redux | reddit.com/r/reactjs | 2022-04-17

    checkout https://github.com/salvoravida/redux-first-history

  • aesthetic

    🎨 Aesthetic is an end-to-end multi-platform styling framework that offers a strict design system, robust atomic CSS-in-JS engine, a structural style sheet specification (SSS), a low-runtime solution, and much more! (by aesthetic-suite)

  • crisp-react

    React boilerplate written in TypeScript with a variety of Jamstack and full stack deployments. Comes with SSR and without need to learn a framework. Helps to split a monolithic React app into multiple SPAs and avoid vendor lock-in.

    Project mention: Best way to create Express websites | reddit.com/r/node | 2022-04-29

    If TypeScript doesn't put you off (it's really a good choice for both backend and frontend), have a look at Crisp React.

  • axios-react

    🌐 HTTP client component for React based on Axios

  • reactponsive

    Responsive components and Hooks ⚒ for your favorite framework ⚛️

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-12-02.

TypeScript Code Design related posts

Index

What are some of the best open-source Code Design projects in TypeScript? This list will help you:

Project Stars
1 react-router 48,935
2 react-hook-form 31,998
3 TanStack Query 31,386
4 react-redux 22,477
5 electron-react-boilerplate 20,534
6 reselect 18,797
7 apollo-client 18,269
8 nx 15,510
9 react-jsonschema-form 12,036
10 formily 8,855
11 react-responsive 6,455
12 effector-react 3,998
13 React Figma 2,141
14 Router5 1,711
15 universal-router 1,628
16 JSONForms 1,264
17 react-inlinesvg 1,112
18 teaful 664
19 redux-first-history 362
20 aesthetic 199
21 crisp-react 155
22 axios-react 38
23 reactponsive 12
Truly a developer’s best friend
Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.
scoutapm.com