refinedev/refine
Fork: 2274 Star: 28967 (更新于 2024-12-17 05:14:52)
license: MIT
Language: TypeScript .
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility.
最后发布版本: @refinedev/core@4.54.1 ( 2024-09-03 19:48:43)
Refine is as an open source, React meta-framework for enterprise. It provides a headless solution for everything from admin panels to dashboards and internal tools.
What is Refine?
Refine is a React meta-framework for CRUD-heavy web applications. It addresses a wide range of enterprise use cases including internal tools, admin panels, dashboards and B2B apps.
Refine's core hooks and components streamline the development process by offering industry-standard solutions for crucial aspects of a project, including authentication, access control, routing, networking, state management, and i18n.
Refine's headless architecture enables the building of highly customizable applications by decoupling business logic from UI and routing. This allows integration with:
-
Any custom designs or UI frameworks like TailwindCSS, along with built-in support for Ant Design, Material UI, Mantine, and Chakra UI.
-
Various platforms, including Next.js, Remix, React Native, Electron, etc., by a simple routing interface without the need for additional setup steps.
⚡ Try Refine
Start a new project with Refine in seconds using the following command:
npm create refine-app@latest my-refine-app
Or you can create a new project on your browser:
Quick Start
Here's Refine in action, the below code is an example of a simple CRUD application using Refine + React Router + Material UI:
import React from "react";
import { Refine, useMany } from "@refinedev/core";
import { ThemedLayoutV2 } from "@refinedev/mui";
import dataProvider from "@refinedev/simple-rest";
import routerProvider from "@refinedev/react-router";
import { BrowserRouter, Outlet, Route, Routes } from "react-router";
import CssBaseline from "@mui/material/CssBaseline";
export default function App() {
return (
<BrowserRouter>
<CssBaseline />
<Refine
dataProvider={dataProvider("https://api.fake-rest.refine.dev")}
routerProvider={routerProvider}
resources={[
{
name: "products",
list: "/products",
},
]}
>
<Routes>
<Route
element={
<ThemedLayoutV2>
<Outlet />
</ThemedLayoutV2>
}
>
<Route path="/products">
<Route index element={<ProductList />} />
</Route>
</Route>
</Routes>
</Refine>
</BrowserRouter>
);
}
// src/pages/products/list.tsx
import { List, useDataGrid, DateField } from "@refinedev/mui";
import { DataGrid, GridColDef } from "@mui/x-data-grid";
export const ProductList = () => {
const { dataGridProps } = useDataGrid();
const { data: categories, isLoading } = useMany({
resource: "categories",
ids:
dataGridProps?.rows?.map((item) => item?.category?.id).filter(Boolean) ??
[],
queryOptions: {
enabled: !!dataGridProps?.rows,
},
});
const columns = React.useMemo<GridColDef[]>(
() => [
{ field: "id", headerName: "ID", type: "number" },
{ field: "name", flex: 1, headerName: "Name" },
{
field: "category",
flex: 1,
headerName: "Category",
display: "flex",
renderCell: ({ value }) =>
isLoading
? "Loading..."
: categories?.data?.find((item) => item.id === value?.id)?.title,
},
{
field: "createdAt",
flex: 1,
headerName: "Created at",
display: "flex",
renderCell: ({ value }) => <DateField value={value} />,
},
],
[categories?.data, isLoading],
);
return (
<List>
<DataGrid {...dataGridProps} columns={columns} />
</List>
);
};
The result will look like this:
Use cases
Refine shines on data-intensive⚡ enterprise B2B applications like admin panels, dashboards and internal tools. Thanks to the built-in SSR support, it can also power customer-facing applications like storefronts.
You can take a look at some live examples that can be built using Refine from scratch:
- Fully-functional CRM Application
- Fully-functional Admin Panel
- Win95 Style Admin panel 🪟
- PDF Invoice Generator
- Medium Clone - Real World Example
- Multitenancy Example
- Storefront
- Refer to templates page for more examples
- More Refine powered different usage scenarios can be found here
Key Features
- Refine Devtools - dive deeper into your app and provide useful insights
- Connectors for 15+ backend services including REST API, GraphQL, NestJs CRUD, Airtable, Strapi, Strapi v4, Supabase, Hasura, Appwrite, Nestjs-Query, Firebase, Sanity, and Directus.
- SSR support with Next.js & Remix and Advanced routing with any router library of your choice
- Auto-generation of CRUD UIs based on your API data structure
- Perfect state management & mutations with React Query
- Providers for seamless authentication and access control flows
- Out-of-the-box support for live / real-time applications
- Easy audit logs & document versioning
Learning Refine
- Navigate to the Tutorial on building comprehensive CRUD application guides you through each step of the process.
- Visit the Guides & Concepts to get informed about the fundamental concepts.
- Read more on Advanced Tutorials for different usage scenarios.
Contribution
Refer to the contribution docs for more information.
If you have any doubts related to the project or want to discuss something, then join our Discord server.
Contributors ♥️ Thanks
We extend our gratitude to all our numerous contributors who create plugins, assist with issues and pull requests, and respond to questions on Discord and GitHub Discussions.
Refine is a community-driven project, and your contributions continually improve it.
License
Licensed under the MIT License, Copyright © 2021-present Refinedev
最近版本更新:(数据更新于 2024-10-07 09:16:45)
2024-09-03 19:48:43 @refinedev/core@4.54.1
2024-09-03 19:48:40 @refinedev/mui@5.21.0
2024-09-03 19:48:37 @refinedev/supabase@5.9.4
2024-09-03 19:48:34 @refinedev/hasura@6.6.7
2024-09-03 19:48:31 @refinedev/devtools@1.2.8
2024-09-03 19:48:28 @refinedev/antd@5.43.1
2024-09-03 19:48:25 @refinedev/devtools-server@1.1.36
2024-09-03 19:48:22 @refinedev/cli@2.16.38
2024-09-03 19:48:19 @refinedev/appwrite@7.0.1
2024-08-06 20:17:27 @refinedev/inferencer@4.7.0
主题(topics):
admin, admin-ui, ant-design, crud, developer-tools, frontend-framework, good-first-issue, graphql, hacktoberfest, headless, internal-tools, javascript, low-code, nestjs, nextjs, open-source-project, react, react-framework, react-hooks, typescript
refinedev/refine同语言 TypeScript最近更新仓库
2024-12-21 21:40:12 lobehub/lobe-chat
2024-12-21 12:01:51 siyuan-note/siyuan
2024-12-21 10:57:01 ai16z/eliza
2024-12-21 09:15:35 MetaCubeX/metacubexd
2024-12-20 19:36:48 vitejs/vite
2024-12-20 15:46:43 x-extends/vxe-table