Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@refinedev/core
Advanced tools
refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.
Refine is a meta React framework that enables the rapid✨ development of a wide range of web applications.
From internal tools to admin panels, B2B apps, and dashboards, it serves as a comprehensive solution for building any type of CRUD application.
Refine's internal hooks and components simplify the development process and eliminate repetitive tasks by providing industry-standard solutions for crucial aspects of a project, including authentication, access control, routing, networking, state management, and i18n.
Refine is headless by design, thereby offering unlimited styling and customization options.
Instead of being limited to a set of pre-styled components, Refine provides collections of helper hooks
, components
, providers
, and more. Since business logic and the UI are completely decoupled, you can customize the UI without constraints.
It means that Refine just works seamlessly with any custom designs or UI frameworks. Thanks to it's headless architecture, you can use popular CSS frameworks like TailwindCSS or even create your own styles from scratch.
Refine also provides integrations with Ant Design, Material UI, Mantine, and Chakra UI to get you started quickly. These libraries are a set of components that are nicely integrated with the headless @refinedev/core
package.
For the routing, Refine's headless approach shines too. It doesn't tie you to a single routing method or library. Instead, it offers a simple routing interface with built-in integrations for popular libraries.
This means you can use Refine seamlessly on different platforms like React Native, Electron, Next.js, Remix, etc. without any extra setup steps.
Refine's browser-based app scaffolder enables you to build a Refine app through an interactive, step-by-step process in your browser.
You have the freedom to select your preferred libraries and frameworks, and the tool generates a ready-to-download boilerplate code. This feature not only lets you preview and tweak your project on the fly but also accelerates the overall development workflow.
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:
👉 Refer to most popular real use case examples
👉 More Refine powered different usage scenarios can be found here
⚙️ Zero-config, one-minute setup with a single CLI command
🔌 Connectors for 15+ backend services including REST API, GraphQL, NestJs CRUD, Airtable, Strapi, Strapi v4, Strapi GraphQL, Supabase, Hasura, Appwrite, Nestjs-Query, Firebase, Sanity, and Directus.
🌐 SSR support with Next.js or Remix
🔍 Auto-generated CRUD UIs from your API data structure
⚛ Perfect state management & mutations with React Query
🔀 Advanced routing with any router library of your choice
🔐 Providers for seamless authentication and access control flows
⚡ Out-of-the-box support for live / real-time applications
📄 Easy audit logs & document versioning
💬 Support for any i18n framework
💪 Future-proof, robust architecture
⌛️ Built-in CLI with time-saving features
💻 Refine Devtools - dive deeper into your app and provide useful insights
✅ Full test coverage
There are two ways to create a Refine app: either by using the create refine-app
CLI tool or the browser-based app scaffolder.
To quickly start a Refine project with Ant Design as the default UI framework, run the following command.
npm create refine-app@latest -- -o refine-antd
Once the setup is complete, navigate to the project folder and start your project with:
npm run dev
Your Refine application will be accessible at http://localhost:5173:
Note: The command above uses pre-set options for ease. For a different tech stack, simply run:
npm create refine-app@latest
Let's consume a public fake REST API
and add two resources (blog_posts and categories) to our project. Replace the contents of src/App.tsx
with the following code:
import { Refine } from "@refinedev/core";
import {
notificationProvider,
ErrorComponent,
ThemedLayout,
} from "@refinedev/antd";
import routerProvider, { NavigateToResource } from "@refinedev/react-router-v6";
import dataProvider from "@refinedev/simple-rest";
import { BrowserRouter, Routes, Route, Outlet } from "react-router-dom";
import { AntdInferencer } from "@refinedev/inferencer/antd";
import "@refinedev/antd/dist/reset.css";
const App: React.FC = () => {
return (
<BrowserRouter>
<Refine
routerProvider={routerProvider}
dataProvider={dataProvider("https://api.fake-rest.refine.dev")}
notificationProvider={notificationProvider}
resources={[
{
name: "blog_posts",
list: "/blog-posts",
show: "/blog-posts/show/:id",
create: "/blog-posts/create",
edit: "/blog-posts/edit/:id",
meta: { canDelete: true },
},
{
name: "categories",
list: "/categories",
show: "/categories/show/:id",
},
]}
>
<Routes>
<Route
element={
<ThemedLayout>
<Outlet />
</ThemedLayout>
}
>
<Route index element={<NavigateToResource />} />
<Route path="blog-posts">
<Route index element={<AntdInferencer />} />
<Route path="show/:id" element={<AntdInferencer />} />
<Route path="create" element={<AntdInferencer />} />
<Route path="edit/:id" element={<AntdInferencer />} />
</Route>
<Route path="categories">
<Route index element={<AntdInferencer />} />
<Route path="show/:id" element={<AntdInferencer />} />
</Route>
<Route path="*" element={<ErrorComponent />} />
</Route>
</Routes>
</Refine>
</BrowserRouter>
);
};
export default App;
🚀 The Refine Inferencer package automatically generates list
, show
, create
, and edit
pages by guessing configurations from API data. We've used it here for a quick, clear start, but you can also choose to code your pages from scratch instead of using the Inferencer feature.
Now, you should see the output as a table populated with blog_posts
& category
data:
You can get the auto-generated page codes by clicking the Show Code
button on each page. Afterward, simply pass the pages to the resources
array by replacing them with the Inferencer components.
👉 Jump to Tutorial to continue your work and turn the example into a full-blown CRUD application.
👉 Visit the Learn the Basics page to get informed about the fundamental concepts.
👉 Read more on Advanced Tutorials for different usage scenarios.
👉 See the real-life CRM Application project built using Refine.
👉 Play with interactive examples.
👉 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.
Licensed under the MIT License, Copyright © 2021-present Refinedev
FAQs
refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.
The npm package @refinedev/core receives a total of 27,736 weekly downloads. As such, @refinedev/core popularity was classified as popular.
We found that @refinedev/core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.