Library / SDK
pnp/sp-dev-fx-webparts avatar
pnp/sp-dev-fx-webparts

sp-dev-fx-webparts is a folder of standalone SPFx samples, and each one has to be built on its own

SharePoint Framework web part, Teams tab, personal app, app page samples

2,284 stars3,907 forksTypeScriptMIT

At a glance

What is it?
pnp/sp-dev-fx-webparts collects community SharePoint Framework web part samples under samples/, each a separate solution with its own Node version requirement. Pick a sample, match its Node version, then run gulp serve.
Who is it for?
Use it as a lookup shelf if you already write SPFx and want a working example of Angular, React, jQuery or Graph usage inside a web part. Skip it if you need one maintained starter project, because every sample pins its own tooling.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository last received commits 1 day ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • pnp/sp-dev-fx-webparts2,284 ★ · +7
Star history
Repository2026-10-082026-11-25
pnp/sp-dev-fx-webparts2.3k2.3k

7 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Each folder under samples/ is a separate solution, not part of one build

pnp/sp-dev-fx-webparts is a TypeScript repository under the MIT license, published by the PnP team with the description "SharePoint Framework web part, Teams tab, personal app, app page samples". Its top level holds .github/, .metadata/, .vscode/, samples/, templates/, tutorials/ and a samples.json file, plus CONTRIBUTING.md, SECURITY.md and SUPPORT.md.

There is no root build. Work happens inside samples/, where every sample sits in its own directory and carries its own README.md and its own package dependencies. The root package-lock.json does not make the samples share an install. That layout means you never clone the repository to run one thing, you clone it to reach one folder, and then you treat that folder as a project.

The sample names show which frameworks SPFx web parts were built with

The folder names under samples/ are the quickest index of what is in there. Angular is well represented: angular-aad-webapi, angular-greeting, angular-migration, angular-msgraph, angular-multipage, angular-search, angular-todo, angular2-prototype, angularelements-helloworld and angularelements-html-templatefile. There are two ngofficeuifabric samples, one for file upload and one for a to-do list.

Outside Angular you find bootstrap-slider, handlebarsjs-webpack-loader, jquery-cdn and jquery-photopile. The js- prefix covers js-advanced-commenting, js-applicationinsights-api-calls-tracking, js-demo-time, js-display-list, js-dynamic-bundling-libraries, js-employee-spotlight and js-extend-gulp. Two more, aad-api-spo-cookie and ace-strategy-pattern, deal with API access and adaptive card extension structure respectively by name alone.

Only the first twenty-five entries are visible, and they run alphabetically from aad to js-extend-gulp. Anything later in the alphabet exists but cannot be described here.

Getting a sample running takes five commands in a fixed order

The clone-and-run path is spelled out in full. Clone the repository, enter it, then enter the sample you want:

shell
git clone https://github.com/pnp/sp-dev-fx-webparts.git
shell
cd sp-dev-fx-webparts
shell
cd samples
cd sample-folder-name

Replace sample-folder-name with the real folder. Then install and serve:

shell
npm install
shell
gulp serve

gulp serve previews the web part in the SharePoint Workbench, the development test surface. That is a preview only. Nothing in this sequence deploys to a tenant, and the Workbench is not the same as a page in SharePoint Online.

One ordering point matters: switch Node version before npm install, not after. An install under the wrong Node version is the usual way to end up with a broken node_modules in a sample that is otherwise fine.

Node version is chosen per sample, and nothing at the root decides it for you

Before installing, check the Node recommendation in the README.md of the sample folder you chose. Where that is unclear, the SPFx Compatibility Matrix at https://aka.ms/spfx-matrix lists supported Node versions for each SPFx version a sample uses.

Some samples also ship a .nvmrc file. With nvm for Windows, run this inside the folder that contains it:

shell
nvm use

With nvs the equivalent is:

shell
nvs use

Because samples were contributed over several years, two folders in the same checkout can need different Node versions. Moving from one to the next means switching again. A single global Node install will fit some samples and fail on others, and the failure shows up at npm install or gulp serve, not at clone time.

A sample without a .nvmrc leaves you to read its README.md for the version. There is no root file that fills the gap.

The release list stops in 2021 even though commits kept landing

Releases are a poor signal here. The three listed are 1.1.0 (Content Query Online) dated 2021-04-09, one titled "SharePoint Framework Client-Side Web Part Samples & Tutorial Materials" from 2020-12-31, and one titled "Using @pnp/sp with Knockoutjs" from 2020-12-12. The last two have numeric tags, 265958 and 249729, rather than version numbers.

Those entries describe individual samples more than the repository as a whole, and nothing tags the repository at any point in time. The repository is not archived, and its last push was 2026-10-25. Activity is better read from commit history than from releases.

Consequence for you: there is no version to pin. If a sample works today and you want it to keep working, copy the folder out or note the commit hash you built from. A fresh clone later gets whatever main holds then.

Contributed samples carry their authors' licensing choices for third-party libraries

The repository accepts community contributions to samples/. The contribution note asks that anyone using third-party libraries confirm the library license allows distribution as part of a sample. That puts the burden on each contributor, and the repository itself is MIT.

For a reader reusing code, the practical step is to open the sample's package.json and check what it pulls in before you copy it into a product. jquery-cdn, handlebarsjs-webpack-loader and bootstrap-slider all clearly involve outside libraries by name. The root MIT license covers the repository, and it does not substitute for reading what a sample depends on.

Contributors are volunteers. Authorship is community work, with each sample contained in its own solution, so there is no single maintainer standing behind every folder. Some samples come directly from feature teams or the SharePoint PnP core team, and others from the community. The folder listing does not label which is which.

Two issue trackers handle two kinds of problem

A problem with a particular sample goes to the issue list in pnp/sp-dev-fx-webparts. A general question or challenge with SPFx itself goes to the SharePoint/sp-dev-docs repository issue list instead. Posting in the wrong one slows the answer, because maintainers of a sample folder cannot fix a framework behavior, and the docs repository cannot debug someone's sample.

Before a pull request, read CONTRIBUTING.md. The repository also adopts the Microsoft Open Source Code of Conduct, with a contact address at [email protected] for questions. Weekly community calls cover Copilot, Microsoft 365 and Power Platform topics, with a schedule at https://aka.ms/community/calls.

For learning material beyond the samples, the top-level tutorials/ folder is there, and the Microsoft Learn pages on the SharePoint Framework overview, tools and libraries, and setting up a developer tenant are the linked starting points. The Workbench preview will not replace a developer tenant when you want to deploy to Microsoft 365.

Editorial conclusion

Use it as a lookup shelf if you already write SPFx and want a working example of Angular, React, jQuery or Graph usage inside a web part. Skip it if you need one maintained starter project, because every sample pins its own tooling. Before cloning anything, open the sample's own README.md and check its Node version against the SPFx Compatibility Matrix at https://aka.ms/spfx-matrix.

Frequently asked questions

What is SPFx used for? Is it what sp-dev-fx-webparts demonstrates?

SPFx is the SharePoint Framework, used to build client-side web parts that appear in SharePoint pages. sp-dev-fx-webparts holds community samples showing different usage patterns for those web parts, including Teams tab and personal app samples.

What are SharePoint web parts in the sp-dev-fx-webparts repository?

Client-side web parts are controls that appear inside a SharePoint page but run locally in the browser. They are building blocks of pages on a SharePoint site and can be built with plain JavaScript or frameworks such as AngularJS and React.

Is SharePoint being phased out, going by sp-dev-fx-webparts?

The repository makes no statement about SharePoint's future. It is not archived, and its last push was 2026-10-25.

Official sources

  1. License: MIT
  2. pnp/sp-dev-fx-webparts on GitHub
  3. Project website
  4. README
  5. Releases
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/pnp-sp-dev-fx-webparts.svg)](https://hysenlabs.com/projects/pnp-sp-dev-fx-webparts)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/pnp-sp-dev-fx-webparts.svg)](https://hysenlabs.com/projects/pnp-sp-dev-fx-webparts)

Was this useful?