Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
"react-sizes",
"react-b2b-demo",
"other-framework-demo",
"react-native-demo",
"react-native-b2b-demo",

"e2e-tests",
"clientside-services"
Expand Down
5 changes: 1 addition & 4 deletions .cursor/rules/project-overview.mdc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions .github/copilot-instructions.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

5 changes: 1 addition & 4 deletions CLAUDE.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,23 +215,22 @@ Our SDK packages are published to npm and are consumed by external developers (i
- [`vanilla-js`](./packages/vanilla-js): an SDK for frontend JavaScript projects. It includes a stateful headless client that integrates with browser features (such as cookies and local storage). It also includes prebuilt UI built using Preact and a framework-agnostic interface for integrating with arbitrary frontend frameworks.
- [`react`](./packages/react): React-specific bindings for `vanilla-js`. This package only supports client-side rendering.
- [`nextjs`](./packages/nextjs): Next.js specific bindings for `vanilla-js`. This package is compatible with server-side rendering, including React-based, non-Next.js frameworks.
- [`react-native`](./packages/react-native): an SDK for React Native projects. It includes a stateful headless client and prebuilt UI.

### Helper packages

We use some helper packages to better organize code. Some of these packages are published to npm as dependencies of other packages, but they are not intended to be referenced directly by external developers.

- [`core`](./packages/core): a package containing constants, types, and most of the business logic around our different product offerings
(EML, OTP, etc) as well as the logic for managing sessions (token refresh, etc), PKCE, and the Subscription Service which coordinates
sharing User and Session data across services. This package is consumed directly by `vanilla-js` and `react-native`.
sharing User and Session data across services. This package is consumed directly by `vanilla-js`.

It declares a template for the `StytchClient` (the main export of Stytch SDKs),
and includes all the logic that is SDK target agnostic. The components that are specific to individual SDKs
(`StorageClient` for handling persistent storage, `NetworkClient` for handling network calls/telemetry/metadata) are then implemented
by individual SDK packages and used to create and export a `StytchClient` object,
which is the export to be used by external developers leveraging Stytch SDKs for their own projects.

This package is published to npm as a dependency of other packages (including `vanilla-js` and `react-native`), but it is not intended to be used directly by external developers.
This package is published to npm as a dependency of other packages (including `vanilla-js`), but it is not intended to be used directly by external developers.

- [`js-utils`](./packages/js-utils): a package containing utility functions used by other packages, including `vanilla-js`, `react`, and `nextjs`. This package is not published to npm; its contents are bundled into other packages as part of the build process.

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ This monorepo contains the following published npm packages:
- **[@stytch/vanilla-js](https://www.npmjs.com/package/@stytch/vanilla-js)** - Core JavaScript SDK for frontend projects
- **[@stytch/react](https://www.npmjs.com/package/@stytch/react)** - React-specific bindings for the JavaScript SDK
- **[@stytch/nextjs](https://www.npmjs.com/package/@stytch/nextjs)** - Next.js specific bindings with SSR support
- **[@stytch/react-native](https://www.npmjs.com/package/@stytch/react-native)** - React Native SDK

### Installation

Expand Down
5 changes: 1 addition & 4 deletions ai/rules/project-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ This is a monorepo for Stytch JavaScript SDKs. The codebase is split between B2C
- `@stytch/vanilla-js` - Framework-agnostic bindings using custom elements. Re-exports from `@stytch/web`.
- `@stytch/react` - React-specific bindings (client-side only). Re-exports from `@stytch/web` and adds React Context/hooks.
- `@stytch/nextjs` - Next.js bindings with SSR support. Re-exports from `@stytch/web`.
- `@stytch/react-native` - Standalone SDK for React Native with native Kotlin/Swift/Objective-C code. Shares some copied code with web, but code reuse should be done primarily by lifting them to `@stytch/core`

**Helper Packages:**

- `@stytch/core` - Business logic, session management, PKCE, Subscription Service. Exports:
- `@stytch/core/public` - Public API (types, constants)
- `@stytch/core` - Internal implementation consumed by web and react-native
- `@stytch/core` - Internal implementation consumed by web
- Defines the `StytchClient` template with platform-agnostic logic
- `@stytch/js-utils` - Utility functions bundled into other packages (not published)

Expand Down Expand Up @@ -62,15 +61,13 @@ packages/ # Published and internal packages
vanilla-js/ # Framework-agnostic SDK
react/ # React bindings
nextjs/ # Next.js bindings
react-native/ # React Native SDK
core/ # Business logic and session management
js-utils/ # Utility functions (bundled, not published)
apps/ # Demo applications
react-demo/
react-b2b-demo/
next-demo/
passkey-demo/
react-native-demo/
other-framework-demo/
services/
clientside-services/ # Static files loaded from Stytch servers
Expand Down
10 changes: 0 additions & 10 deletions apps/react-native-b2b-demo/.envrc.template

This file was deleted.

19 changes: 0 additions & 19 deletions apps/react-native-b2b-demo/.gitignore

This file was deleted.

67 changes: 0 additions & 67 deletions apps/react-native-b2b-demo/App.tsx

This file was deleted.

Loading
Loading