remix README

README проекта с github.com/remix-run/remix. Одним файлом markdown: README.md.



Remix



Remix is a full-stack TypeScript framework for building web applications. It comes with everything you need to build fast, safe, modern web applications. We use it to build many of our production applications at Shopify.

Get started

With Node.js 24.3 or later, create an app and start the development server.

npx remix new my-remix-app
cd my-remix-app
npm i
npm run dev

To add Remix to an existing project, install the package.

npm i remix

Follow the Getting Started tutorial to build a page with an editable form. Explore the record store demo to see how sign-in, a shopping cart, and checkout fit together.

Install from main

To try a new feature or test a fix before the next release, install the latest build from main in your project.

pnpm add "$(curl -fsSL https://github.com/remix-run/previews/releases/latest/download/remix.url)"

This pins your project to a specific commit. Run the command again when you want a newer build. You can find the source commit and tarballs for individual packages in the latest preview release.

If pnpm blocks tarball dependencies, set blockExoticSubdeps: false in your project's pnpm-workspace.yaml.

Design principles

  1. Model-First Development. We design Remix for developers who build with coding agents and use models in their apps. New apps include the Remix skill for coding agents, and node_modules/remix/INDEX.md points to the guides and API docs for your installed version.
  2. Build on Web APIs. The router accepts a standard Request and returns a Response. The generated app connects it to Node.js through a server adapter. You can test the same routes by passing requests directly to the router.
  3. Religiously Runtime. Routes and middleware run directly from source. You can test them without bundling your app or generating types.
  4. Avoid Dependencies. A new Remix app has one runtime dependency, remix. Where Remix uses third-party code, it wraps that code behind its own APIs.
  5. Demand Composition. Each package does one job. You can use the router in an existing Fetch handler or add the session package to an app that already has a router.
  6. Distribute Cohesively. Import what you need from a single package, such as remix/router for routing or remix/component for UI.

For the ideas behind these principles, read Wake up, Remix!.

Packages

Contributing

See the contributing guide to report a bug, propose a feature, or submit a pull request. To test a pull request, use the preview install command posted on the PR.

License

See LICENSE

remix (remix-run/remix)

Ищем в базе…

33.5K ·GitHub
Что это?Remix 3 — полноценный фреймворк для разработки фронтенда и бэкенда, построенный непосредственно на Web API (Streams, Fetch, Web Crypto), а не на абстракциях, привязанных к конкретным сборщикам. Распространяется как один зонтичный пакет 'remix', который состоит из множества самостоятельных инструментов на JS/TS.
Это один пакет или набор отдельных инструментов?Это монорепозиторий из множества пакетов, каждый из которых решает одну задачу и может использоваться отдельно (router, auth, session, cli, data-table, ui и др.). Они объединены в основной пакет 'remix' для удобного распространения.
Как создать новое приложение Remix?Выполните 'npx remix@next new' через CLI, чтобы создать новое приложение Remix 3, или установите dist-tag 'next', чтобы попробовать текущую бета-версию. Самые свежие сборки ветки main также публикуются в ветку preview/main, которую можно установить с помощью pnpm 9+.
Работает ли это только на Node.js?Нет. Пакеты Remix 3 построены на серверных Web API, поэтому они без проблем работают в Node.js, Bun, Deno, Cloudflare Workers и других средах выполнения JS. Для разработки самого репозитория требуется Node >=24.3.0.
Готов ли Remix 3 к использованию в продакшене?Пока нет. Это только бета-версия, доступная через dist-tag 'next'. Она всё ещё активно разрабатывается, поэтому API могут измениться.
Что означает Model-First Development для этого фреймворка?Это один из ключевых принципов проектирования Remix 3: оптимизировать исходный код, документацию и инструменты для LLM и создавать абстракции, которые позволяют приложениям напрямую использовать модели ИИ внутри продукта, а не только как инструмент для разработчика.
Включает ли Remix 3 собственную библиотеку UI?Да. Пакет 'ui' — это собственный слой представления Remix с реконсилером, моделью компонентов и собственными UI-компонентами, созданный независимо от React.
Что такое Agent Skill 'remix app', упомянутый в README?Это Agent Skill, который ИИ-агенты для написания кода должны использовать при создании нового приложения Remix 3 из этого репозитория. Шаг prepack в CLI копирует его в генерируемые шаблоны приложений, чтобы созданные приложения получали те же рекомендации.
Почему Remix избегает сборщиков и внешних зависимостей?Этим управляют два руководящих принципа. 'Religiously Runtime' означает, что ни один пакет не должен полагаться на сборщики, компиляторы или статический анализ. 'Avoid Dependencies' стремится к нулю сторонних зависимостей и оборачивает в собственные обёртки всё, без чего не обойтись.
Какие есть похожие проекты?hono, open-agents, next-auth, emdash, react-starter-kit, kysely, new-api, DoulorCloud
Автор
remix-run
Размер
121.1 MB
Звёзды
33.5K
Возраст
6 г
Коммиты · 90 дней