GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - daangn/stackflow: 🧱 Mobile-first stack navigator framework with composable plugin system

BranchesTags
Open more actions menu

Latest commit

 

History

759 Commits
759 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills/review-react
.agents/skills/review-react
 
 
.changeset
.changeset
 
 
.claude/skills
.claude/skills
 
 
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
.yarn
.yarn
 
 
config
config
 
 
core
core
 
 
demo
demo
 
 
docs
docs
 
 
extensions
extensions
 
 
integrations/react
integrations/react
 
 
packages/esbuild-config
packages/esbuild-config
 
 
scripts
scripts
 
 
.coderabbit.yaml
.coderabbit.yaml
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
.pnp.cjs
.pnp.cjs
 
 
.pnp.loader.mjs
.pnp.loader.mjs
 
 
.yarnrc.yml
.yarnrc.yml
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
demo.png
demo.png
 
 
logo-dark.svg
logo-dark.svg
 
 
logo-light.svg
logo-light.svg
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

demo

logo logo

Introduction

View full documentation and demo on https://stackflow.so

Stackflow is a project that implements Stack Navigation UX, which is mainly used in mobile devices (iOS/Android, etc.) in a JavaScript environment. So, it can help to easily develop hybrid apps and webviews.

  • Stack screens and keep scrolling state.
  • It supports transition effects that stack up the screen and the transition effect that disappears when you go back.
  • Supports iOS-style swipe back.
  • It passes the necessary parameters to the screen to be switched.

So, what advantages does Stackflow have compared to the existing navigation library?

  • You can only use the state for stacks and transitions separately without UI. You can tear off the UI and use it as you like.
  • You can inject any additional extensions you want between lifecycles through the plugin interface.
  • Since the core logic and integration layers are separated, it can be integrated with various front-end frameworks. (Now only supports React)
  • Because render logic and UI can be injected from the outside, mobile webview and desktop development can be done in one codebase.
  • Server-Side Rendering is supported. (ReactDOMServer.renderToString)

Getting Started

$ yarn add @stackflow/config @stackflow/core @stackflow/react
import ReactDOM from "react-dom";
import { defineConfig } from "@stackflow/config";
import { stackflow } from "@stackflow/react";
import MyActivity from "./MyActivity";

const config = defineConfig({
  activities: [
    {
      name: "MyActivity",
    },
  ],
  initialActivity: () => "MyActivity",
  transitionDuration: 350,
});

const { Stack } = stackflow({
  config,
  components: {
    MyActivity,
  },
  plugins: [],
});

const App = () => {
  return (
    <Stack />
  );
};

ReactDOM.render(<App />, ...)

Integration Examples

  • Standalone
  • Gatsby
  • Next.js (💥 Not Recommended)

To integrate Stackflow with a specific framework with routing capabilities, the framework requires an extension to manually call the preload API. However, Next.js does not officially support the preload API.

Contributors

To contribute new features or options to Stackflow, please check Contribution Guide

License

MIT

About

🧱 Mobile-first stack navigator framework with composable plugin system

stackflow.so

Topics

frameworkmobilenavigatorpluginreactstacksystemtypescriptwebview

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

1.0k stars

Watchers

23 watching

Forks

114 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.