MCPcopy Index your code
hub / github.com/accounts-js/accounts

github.com/accounts-js/accounts @v0.32.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.32.0 ↗ · + Follow
631 symbols 1,696 edges 277 files 92 documented · 15% 2 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

accounts-js logo

npm npm downloads codecov License

Fullstack authentication and accounts-management for GraphQL and REST.

Note: Although accounts-js is production ready, the packages within this repo are under active development — expect breaking changes with minor version updates.

The @accounts suite of packages aims to provide all the tools you need to build a flexible authentication and accounts management solution for your application.

🔐 We got you covered! The packages come with strong opinionated security defaults while preserving options for configuration.

📚 Ready to get started? Take a look at our documentation to learn how to use the packages. For more advanced usage, head to our API documentation.

🙋‍♀️ A bit lost? Here are some examples where you can see working clients and severs with react, GraphQL or Rest.

Features

  • Create and manage users
  • Create and manage sessions (JWT)
  • Pick your transport layer
  • GraphQL
  • Rest
  • Compatible with all the modern js frameworks (react, react-native, vue, angular...)
  • Use the database you want
  • Mongo
  • Typeorm
  • Redis (sessions only)
  • Add all the strategies you need
  • password
  • Oauth (WIP)

Contributing and community

Join our Spectrum community to get some help!

Any contribution is very welcome, read our contributing guide to see how to locally setup the repository and see our development process.

Sponsors

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

Backers

Thank you to all our backers! 🙏

Contributors

This project exists thanks to all the amazing people who contribute.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Method 335
Function 124
Interface 86
Class 68
Enum 18

Languages

TypeScript100%

Modules by API surface

packages/database-typeorm/src/typeorm.ts30 symbols
packages/database-mongo/src/mongo.ts30 symbols
packages/database-manager/src/database-manager.ts29 symbols
packages/server/src/accounts-server.ts28 symbols
packages/database-manager/__tests__/database-manager.ts28 symbols
packages/password/src/accounts-password.ts25 symbols
packages/graphql-client/src/graphql-client.ts23 symbols
packages/rest-client/src/rest-client.ts22 symbols
packages/database-mongo-password/src/mongo-password.ts21 symbols
packages/types/src/types/services/password/database-interface.ts15 symbols
packages/client/src/accounts-client.ts15 symbols
packages/client/src/transport-interface.ts14 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Datastores touched

UserCollection · 1 repos
(mongodb)Database · 1 repos
accounts-js-tests-e2eDatabase · 1 repos
accounts-js-graphql-exampleDatabase · 1 repos
accounts-js-rest-exampleDatabase · 1 repos
accounts-js-tests-e2eDatabase · 1 repos
dbnameDatabase · 1 repos

For agents

$ claude mcp add accounts \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page