strapi / Strapi Sdk Javascript
Licence: mit
π Official JavaScript SDK for APIs built with Strapi.
Stars: β 247
Programming Languages
javascript
184084 projects - #8 most used programming language
typescript
32286 projects
es6
455 projects
Projects that are alternatives of or similar to Strapi Sdk Javascript
Strapi
π Open source Node.js Headless CMS to easily build customisable APIs
Stars: β 41,786 (+16817.41%)
Mutual labels: api, graphql, cms, headless-cms, koa, koa2, dashboard
Payload
Headless CMS and Application Framework built with Node.js, React and MongoDB
Stars: β 154 (-37.65%)
Mutual labels: api, graphql, cms, headless-cms, dashboard
Tipe
π Next Generation API-first CMS for developers. Generate an API-first CMS from a GraphQL schema with offline prototyping and an inline editor
Stars: β 2,157 (+773.28%)
Mutual labels: graphql, rest-api, cms, headless-cms, dashboard
Directus
Open-Source Data Platform π° β Directus wraps any SQL database with a real-time GraphQL+REST API and an intuitive app for non-technical users.
Stars: β 13,190 (+5240.08%)
Mutual labels: api, graphql, cms, headless-cms, dashboard
App
Directus Admin Application β An Intuitive WebApp for Managing Database Content
Stars: β 464 (+87.85%)
Mutual labels: api, cms, headless-cms, sdk
Postgraphile
GraphQL is a new way of communicating with your server. It eliminates the problems of over- and under-fetching, incorporates strong data types, has built-in introspection, documentation and deprecation capabilities, and is implemented in many programming languages. This all leads to gloriously low-latency user experiences, better developer experiences, and much increased productivity. Because of all this, GraphQL is typically used as a replacement for (or companion to) RESTful API services.
Stars: β 10,967 (+4340.08%)
Mutual labels: api, graphql, koa, koa2
Next
Directus is a real-time API and App dashboard for managing SQL database content. π°
Stars: β 111 (-55.06%)
Mutual labels: api, graphql, cms, dashboard
Contentjet Ui
Headless API-first content management system
Stars: β 42 (-83%)
Mutual labels: api, rest-api, cms, headless-cms
Koa2 Api Scaffold
δΈδΈͺεΊδΊKoa2ηθ½»ιηΊ§RESTful API ServerθζζΆγ
Stars: β 694 (+180.97%)
Mutual labels: api, rest-api, koa, koa2
V8 Archive
Directus Database API β Wraps Custom SQL Databases with a REST/GraphQL API
Stars: β 486 (+96.76%)
Mutual labels: api, graphql, rest-api, cms
Pop
Monorepo of the PoP project, including: a server-side component model in PHP, a GraphQL server, a GraphQL API plugin for WordPress, and a website builder
Stars: β 160 (-35.22%)
Mutual labels: api, graphql, rest-api, headless-cms
Json Serverless
Transform a JSON file into a serverless REST API in AWS cloud
Stars: β 108 (-56.28%)
Mutual labels: api, graphql, rest-api
Elepy
Elepy, The Headless Content Management Framework
Stars: β 109 (-55.87%)
Mutual labels: rest-api, cms, headless-cms
Laqul
A complete starter kit that allows you create amazing apps that look native thanks to the Quasar Framework. Powered by an API developed in Laravel Framework using the easy GraphQL queries language. And ready to use the Google Firebase features.
Stars: β 110 (-55.47%)
Mutual labels: api, graphql, dashboard
Tensei
π Content management and distribution with a touch of elegance.
Stars: β 217 (-12.15%)
Mutual labels: api, graphql, cms
Docker
Directus Docker β The Official Docker Container for the Directus Suite
Stars: β 93 (-62.35%)
Mutual labels: graphql, cms, headless-cms
Sdk Js
Directus JS SDK β JavaScript Software Development Kit for Node and Browser
Stars: β 117 (-52.63%)
Mutual labels: api, headless-cms, sdk
Shio
β¨ :dna: Shio CMS - Model Content, Use GraphQL and Create Site using Javascript with Native Cache and Search.
Stars: β 119 (-51.82%)
Mutual labels: graphql, cms, headless-cms
Graphql2rest
GraphQL to REST converter: automatically generate a RESTful API from your existing GraphQL API
Stars: β 181 (-26.72%)
Mutual labels: api, graphql, rest-api
β οΈ This package not up to date and maintained β οΈ
We recommend you not to use this package. We stopped to maintained it by lack of time and also because the features provided by this SDK are the same as a good HTTP client well configured. So I suggest you use the best HTTP client for the technology you use. To configure it to target your Strapi API. Here so usefull ressources to help you:
The official Strapi SDK for JavaScript, available for browsers or Node.js backends.
Install
npm install strapi-sdk-javascript
Start now
New instance
import Strapi from 'strapi-sdk-javascript';
const strapi = new Strapi('http://localhost:1337');
Authentications
Local
await strapi.login('username_or_email', 's3cr3t');
Providers
// Redirect your user to the provider's authentication page.
window.location = strapi.getProviderAuthenticationUrl('facebook');
Once authorized, the provider will redirects the user to your app with an access token in the URL.
// Complete the authentication: (The SDK will store the access token for you)
await strapi.authenticateProvider('facebook');
You can now fetch private APIs
const posts = await strapi.getEntries('posts');
Files management
Browser
const form = new FormData();
form.append('files', fileInputElement.files[0], 'file-name.ext');
form.append('files', fileInputElement.files[1], 'file-2-name.ext');
const files = await strapi.upload(form);
Node.js
const FormData = require('form-data');
const fs = require('fs');
const form = new FormData();
form.append('files', fs.createReadStream('./file-name.ext'), 'file-name.ext');
const files = await strapi.upload(form, {
headers: form.getHeaders()
});
API
Strapi(baseURL, storeConfig, requestConfig)
request(method, url, requestConfig)
register(username, email, password)
login(identifier, password)
forgotPassword(email, url)
resetPassword(code, password, passwordConfirmation)
getProviderAuthenticationUrl(provider)
authenticateProvider(provider, params)
setToken(token, comesFromStorage)
clearToken(token)
getEntries(contentTypePluralized, params)
getEntry(contentTypePluralized, id)
getEntryCount(contentTypePluralized, params)
createEntry(contentTypePluralized, data)
updateEntry(contentTypePluralized, id, data)
deleteEntry(contentTypePluralized, id)
searchFiles(query)
getFiles(params)
getFile(id)
upload(data)
requestConfig
Custom axios request configuration. See documentation
Resources
Roadmap
- GraphQL
- Attach/Detach entry relationship
- Real time with Socket.io
Credits
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].