Skip to content
Projects

About

The source code to the civic tech project Öppna Skolplattformen.

Web & App Development

How these counts are measured

Measured star growth

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Give us a ⭐ if you appreciate what we do!

Öppna skolplattformen

License Patreon Vercel Translation status Build Status

We are parents who got fed up with Skolplattformen, the City of Stockholm's school administration platform. \ We reverse-engineered the platform's API to create a simpler, faster, more consistent, and secure experience for parents and guardians. If you're simply looking for information about the app, our website can be found at https://skolplattformen.org/.
Check out the changelog to see what new features are added, and a list of fixed bugs.

This main repository for the project contains the source code for both the app and its website.
The sources for each can be found under apps and libs. The respective README files there contain more detailed descriptions.

Contents

Architecture

The project consists of several apps and libraries inside a NX monorepo.

Apps

/apps/ contains the application projects. This is the main entry point for a runnable application.

skolplattformen

The central part of the project is the app itself. It is written in TypeScript using React Native and React Native Kitten.

Our main goal with the app is to make it as fast and easy to use as possible. \

We're starting small, with more features being added over time.

For more information, check out the source code.

website

The code for the website at https://skolplattformen.org/. It's built using Next.js.

For more information, check out the source code.

Libs

/libs/ contains the library projects. There are many different kinds of libraries, and each library defines its own external API so that boundaries between libraries remain clear.

api

The base for all api implementations

api-vklass

The implementation for the school platform Vklass.

api-infomentor

The implementation for the school platform Infomentor.

api-skolplattformen

By not having to worry about the complex nature of the official API, the app becomes light-weight.
It also makes it easier for others to develop their own applications for the Skolplattformen API.

Pro tip: If you don't want the API to make requests to the back-end, you can turn on fake mode to return static data instead.
Do so by logging in using 12121212121212 or 1212121212 as your personal identity number. Check out the documentation here.

curriculum

Translations of curriculum codes (sv: ämneskoder på schemat) to clear text descriptions

hooks

To make it easier to use the the api in the app, we also created a set of React hooks. Check out the documentation here.

Getting started with Development

To clone and build the project, you first need to install git, node and yarn.

Clone the repo with

$ git clone https://github.com/kolplattformen/skolplattformen.git

Install dependencies

cd skolplattformen && yarn

Running the app with Expo

This project uses Expo for building and running the app. Make sure you have the Expo CLI installed:

npm install -g expo-cli

iOS

To run the iOS app, you need a Mac with Xcode installed.

Start the iOS app:

yarn ios

Or to run in the Expo Go app:

yarn start

Android

To run the Android app, you need Android Studio and an Android emulator or device.

Start the Android app:

yarn android

Or to run in the Expo Go app:

yarn start

Infomentor quick start

Infomentor (Stockholm) is the default school platform in the app. The app requires native cookie storage (@react-native-cookies/cookies), so Expo Go will not work — build and run with the embedded expo-dev-client instead (yarn ios / yarn android).

To work with Infomentor you need to log in via BankID. For local development you can shortcut that with a dev session (the verification order is auto-approved by Stockholm's BankID gateway for a device already registered with BankID — no scan needed):

# 1. Mint a fresh session (prints a DEV-SESSION line, ~40 min TTL)
cd libs/api-infomentor && npx tsx scripts/e2e-qr-server.ts

# 2. Paste the printed line into apps/skolplattformen-app/.env.local
#    (gitignored — NEVER commit it):
#    EXPO_PUBLIC_INFOMENTOR_DEV_SESSION=ASP.NET_SessionId=...; BIGipServer~...=~...; TS0116cbba=...; IMHome=...

# 3. Restart Metro WITH cache clear (EXPO_PUBLIC_* values are inlined into
#    the bundle at transform time — a plain restart will keep the old value)
npx expo start -c

With the dev session in place the app logs in automatically on launch (auto-login fires once per app session; logging out keeps you on the login screen).

Sessions expire after ~40 minutes — when they do, the hub answers 200 OK with an empty body (and expired/wrong cookies cause a 302 to the login page). Re-run the harness and repeat.

Detailed endpoints, quirks and implementation notes: libs/api-infomentor/README.md.

For AI/agent helpers, AGENTS.md documents repo conventions and the automated verify loop, plus .claude/skills with ready-made workflows.

Building for production

To generate native iOS and Android projects:

yarn prebuild

This will create ios/ and android/ directories with the native projects.

Website

Documentation coming soon.

Tests

Run all tests

yarn run test

Run a specific test

yarn run test:api-skolplattformen

Contributions

We want this project to be a citizen movement. If you find something you think needs fixing, we encourage you to do so yourself, and test it out on your machine first.
Once done, create a pull request where you explain why we should incorporate your fix into the project.
If you're new to GitHub, there's a number of excellent guides available, such as this one on forking projects and making pull requests.

There are many ways to contribute to the project.
If you don't know how to program and want help, you can file an issue to let us know when something isn't working properly.
We're super duper happy for both issues and pull requests, and we try to answer all of them as soon as humanly possible.

Another way to contribute is by helping translate Öppna skolplattformen on Hosted Weblate into a new language, or to improve existing translations.

Working together leverages available skills and experience in improving the project, ultimately creating the best possible experience.

Money

Even if we definitely stand by our claim that libre software doesn't mean gratis, we have now offered it free of charge on both the Apple App Store and on Google Play. With this different model, you can extend your appreciation to all our contributors. Send some köttbullar for the kids through voluntary donations on https://patreon.com/oppnaskolplattformen ❤️.

Disclaimer

This initiative was started by frustrated parents without any affiliation with the City of Stockholm.
We just want to find and read newsletters with greater ease, and register sick-leave in a convenient manner.

If you're offended by this initiative, rest assured there is no reason to be — we come in peace.

Contributors

License

Öppna skolplattformen is copyright 2020–2024 Not Free Beer AB.

Licensed under the Apache License, Version 2.0 (the "License"); you may use Öppna skolplattformen in compliance with the License. A copy of the License is included with this repository.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Explore related projects

Loading…